Results 1 to 2 of 2

Thread: Lightbox image viewer 2.03a caption question

  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Lightbox image viewer 2.03a caption question

    http://www.dynamicdrive.com/dynamici...box2/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

    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>
    Last edited by jscheuer1; 02-15-2012 at 04:06 PM. Reason: Format

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    <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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •