Hi - I am playing around with a php image gallery and Im stuck trying to add lightbox to it. The script automatically builds the gallery, and all anchors to the full size picture are generated. How can I add the rel="lightbox" tag?
echo "<center><a href=\"$PHP_SELF?path=$aPath&page=$aThisPage&img=$aFn&idx=$aIdx\"><img border=\"4\" width=\"$twidth\" height=\"$theight\" src=\"genthumbs.php?image=$fullpath&w=$twidth\"></img></a></center>";
I have tried this to no avail
echo "<center><a href=\"$PHP_SELF?path=$aPath&page=$aThisPage&img=$aFn&idx=$aIdx\"><img rel=\"lightbox\" border=\"4\" width=\"$twidth\" height=\"$theight\" src=\"genthumbs.php?image=$fullpath&w=$twidth\" rel=\"lightbox\"></img></a></center>";
Any Ideas?
Thanks