Results 1 to 2 of 2

Thread: lightbox

  1. #1
    Join Date
    Mar 2009
    Posts
    42
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Default lightbox

    Hi all,

    This is one that has been buggin me for a while

    Some php that drags the data out, href to open the linked image.

    PHP Code:
    <a href="<?php echo $_SERVER['PHP_SELF']; ?>?img/galleries/paintings=<?php echo $row['filename']; ?>&amp;curPage=<?php echo $curPage?>"><img src="img/galleries/paintings/thumbs/<?php echo $row['filename']; ?>" alt="<?php echo $row['caption']; ?>" width="152" height="152" /></a>
    How do I correctly add the (rel="lightbox") attribute to the above? I have had lightbox initiate but not display the image?

    Any help would be awsome! Thanks
    Last edited by john0611; 08-06-2009 at 05:02 AM.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Like this? If not can you post a link to where it is occuring.
    PHP Code:
    <a href="<?php echo $_SERVER['PHP_SELF']; ?>?img/galleries/paintings=<?php echo $row['filename']; ?>&amp;curPage=<?php echo $curPage?>" rel="lightbox">
    <img src="img/galleries/paintings/thumbs/<?php echo $row['filename']; ?>" alt="<?php echo $row['caption']; ?>" width="152" height="152" /></a>

  3. The Following User Says Thank You to bluewalrus For This Useful Post:

    john0611 (08-06-2009)

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
  •