PDA

View Full Version : Lightbox image viewer 2.03a caption question



Chiqie
02-15-2012, 02:18 PM
http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

I want to have a "Click here to download" link as the caption that then opens the original size image for download. How do I do that?

This is the existing code


<a href="images/Screen Savers 1024x768/preview/15.jpg" title="Click here to download"><img src="images/15.jpg" width="72" height="72" alt="" /></a>

jscheuer1
02-15-2012, 03:54 PM
Assuming you're actually using Dynamic Drive's Lightbox version 2.03a, simply add the the image address a second time as the rev attribute, like so:


<a href="images/Screen Savers 1024x768/preview/15.jpg" rev="images/Screen Savers 1024x768/preview/15.jpg" title="Click here to download"><img src="images/15.jpg" width="72" height="72" alt="" /></a>

If you're using some other version of Lightbox, chances are this syntax is not supported.

If you want more help, please post a link to the page on your site that contains the problematic code so we can check it out.