View Full Version : Linking lightbox caption to a subfolder??

03-05-2009, 11:42 PM
1) Script Title: Lightbox view 2.03

2) Script URL (on DD): http://www.dynamicdrive.com/forums/showthread.php?t=20140

3) Describe problem: The script works fine when I want to link my lightbox image caption to the url of a website, but I run into trouble when I want to link to a subfolder inside my own website.

Here's an example of my code:

a href="IMAGES/dd_mungo_b.jpg" rel="lightbox" onmousedown="this.title='<a target=\'_blank/\' href=\'http://www.voodazz.com/html/mungo.html/\'>View Template</a>';" onmouseout="this.title='';">

I always get a blank window with a big fat 404 Error. :(

I'm probably messing up with the whole /\ syntax because I'm not really familiar with it. Hopefully it's something really simple like that.
I have spent at least 2 hours looking everywhere for a solution. Hopefully I'll finally get the help I need here.
Thank you for your patience :)

03-06-2009, 02:38 AM

03-06-2009, 03:04 AM
If you use this script:


You don't need to mess with all of that (from the demo page):

The rel attribute is mandatory in order to activate the effect for this particular image. The "title" attribute is optional, and when defined, adds a caption beneath the enlarged image. The "href" attribute obviously should contain the path to the enlarged image. If you wish a particular caption ("title") to be hyperlinked to a specific URL, throw in a "rev" attribute pointing to the desired URL. For example:

<a href="images/image-1.jpg" rel="lightbox" title="my caption" rev="http://www.dynamicdrive.com">image #1</a>

03-06-2009, 04:20 PM

isn't it supposed to be: target=\'_blank\'

03-06-2009, 04:59 PM
isn't it supposed to be: target=\'_blank\'

Probably, but they'll be much better off upgrading, that will eliminate the need for all those eye straining, mind numbing slash escapes.

03-06-2009, 07:25 PM
THANK YOU so much for your help! Once I upgraded and followed the directions everything worked out great! Sooo much simpler than the pain in the neck way I was doing it.
This site is exactly what I've been looking for because I've managed to find answers to several other personal tweeks concerning lightbox.

Thanks again! :D