Jump to content

Fancybox for the list of pictures


Surfoo

Recommended Posts

Hello,

 

The list of images (for the description) open in the tab, and it's really annoying... (click, back, click, back, click, back,...)

 

And the code is almost ready!!

 

Actual code for an image:

<a rel="lightbox" href="http://imgcdn.geocaching.com/cache/large/6d659200-b046-4db5-8fdf-xxxxx.jpg">Spoiler</a>

rel="lightbox" is a reference to a jquery plugin, fancybox. And this plugin is already loaded for pictures in logs...

So, the only code to add in your script is just:

$('a[rel="lightbox"]').fancybox();

 

Please, can you fix the fancybox ?

 

PS: Personally, I added this line of code in GC little helper, and it works like a charm.

Edited by Surfoo
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...