View Full Version : Unsure how to write path to link from javascript to slimbox

04-30-2009, 04:59 AM
I was just wondering if it was possible to link to slimbox effect from a javascript image scroller? A sample image on my page is working with this link:

<a href="example.jpg" rel="lightbox" title="My example"><img src="example.jpg" width="106" height="70" border="0"/></a>

The external javascript for the images is:

//Specify images, optional link, optional target:
photos[0]=['images/graphic1.png', 'images/1.pdf', '_blank']
photos[2]=['images/graphic2.png', 'images/2.pdf', '_blank']
photos[4]=['images/graphic3.png', 'images/3.pdf', '_blank']

I can't work out the correct path to get the effect working although managed to get the image appear by itself without effect. I have looked hard to get a solution but can't understand how to write the path correctly. Any help much appreciated.