View Full Version : Help with Conveyor and iframes
aerosurfer
10-31-2007, 05:23 PM
I've set up the conveyor script on my page but I want each individual image click to open two iframes on the same page. I've found another script that will open two iframes on the page from a static link but when I copy the latter link code into the scroller script - it dosen't work. Can anyone advise on how I should change the scroller script to make this work.
ref: www.newspublisher.co.uk/florentynadawn/outfits.htm
(links as the bottom of page in white)
jscheuer1
11-01-2007, 05:27 AM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.
I think you just need to learn proper technique for escaping nested quotes.
Like I see you have this:
<a href="javascript:loadTwo('picture9trio.htm','picture9.htm')">Link1</a>
that works. You just need to get it into this:
leftrightslide[0]='<a href="mother_of_the_bride_1.shtml"><img src="images/mother1/small1.jpg" style="border:1px solid white;"></a>'
But you will notice that the second bit of code already has single quotes around it, so if you do this:
leftrightslide[0]='<a href="javascript:loadTwo('picture9trio.htm','picture9.htm')"><img src="images/mother1/small1.jpg" style="border:1px solid white;"></a>'
you are ending the string at wo('picture
This can be fixed by escaping the nested delimiters:
leftrightslide[0]='<a href="javascript:loadTwo(\'picture9trio.htm\',\'picture9.htm\')"><img src="images/mother1/small1.jpg" style="border:1px solid white;"></a>'
aerosurfer
11-02-2007, 12:11 PM
Thanks John - that works great !
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.