cjkoenig
02-03-2006, 05:56 PM
I was trying to tie these two scripts together cause I think the effect would be awesome. But I keep getting stuck with errors.
Here is what I was trying to do....
leftrightslide[0]='<a href="images/1_full.jpg" rel="lightbox" ><img src="1.jpg" /></a>'
or I was trying
leftrightslide[0]='<a href="images/1_full.jpg" onclick="lightbox" ><img src="1.jpg" /></a>'
neither works, actually I don't even think they are correct syntax.
In lightbox, a simple
<a href="Image1_full.jpg" rel="lightbox" ><img src="1_thumb.jpg" /></a> works to call for the effect, I just can't get it to translate to the conveyor belt script.
I can open pop-ups in conveyor using this
leftrightslide[0]='<a href="#" onclick=NewWindow("images/Image1_full.jpg",\'mywin\',\'500\',\'500\',\'no\',\'center\');return false" onfocus="this.blur()"><img src="Images/Thumbnails/1.jpg" border=1></a>'after reading about it in these forums (thank you to jscheuer1 :D )
...Can I use the same principle to call the lightbox.js? How? I'm stumped and my understanding of javascript is lacking, so I appreciate all the help I can get!:)
Scripts:
http://www.dynamicdrive.com/dynamicindex4/lightbox/index.htm [Lightbox]
http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm [Conveyor]
--Cj--
Here is what I was trying to do....
leftrightslide[0]='<a href="images/1_full.jpg" rel="lightbox" ><img src="1.jpg" /></a>'
or I was trying
leftrightslide[0]='<a href="images/1_full.jpg" onclick="lightbox" ><img src="1.jpg" /></a>'
neither works, actually I don't even think they are correct syntax.
In lightbox, a simple
<a href="Image1_full.jpg" rel="lightbox" ><img src="1_thumb.jpg" /></a> works to call for the effect, I just can't get it to translate to the conveyor belt script.
I can open pop-ups in conveyor using this
leftrightslide[0]='<a href="#" onclick=NewWindow("images/Image1_full.jpg",\'mywin\',\'500\',\'500\',\'no\',\'center\');return false" onfocus="this.blur()"><img src="Images/Thumbnails/1.jpg" border=1></a>'after reading about it in these forums (thank you to jscheuer1 :D )
...Can I use the same principle to call the lightbox.js? How? I'm stumped and my understanding of javascript is lacking, so I appreciate all the help I can get!:)
Scripts:
http://www.dynamicdrive.com/dynamicindex4/lightbox/index.htm [Lightbox]
http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm [Conveyor]
--Cj--