View Full Version : DHTML Slideshow Script & Links

01-30-2006, 01:57 PM
I am currently creating a photo gallery for my website (unfortunately isn't available on the web as yet) and a few of the pictures are using iframe linked back to a file containing the dhtml slideshow script. So I can have more than one slide show playing on the same page at once, it works rather well.

Now the problem is I cannot get the script to load a new (_blank) page that contains the full size picture, I can get it to open inside the iframe, and I can get it to open a new window but no picture appears. using the below.

<td height="150" colspan="3" valign="top">
if (linkornot==1)
document.write('<a href="javascript:transport()" target="_blank">')
document.write('<img src="'+photos[0]+'" name="photoslider" style="filter:revealTrans(duration=2,transition=23)" border=0 >')
if (linkornot==1)

Can anyone please point me in the right direction, I really prefer to use this script as it allows me to have previous and next buttons with ease.

01-31-2006, 08:51 AM

I'll have to guess which script you're referring to on DD, as you didn't post a link. Assuming it's DHTML Slideshow (http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm), you can get the links to open in a new window by changing the function:

function transport(){


function transport(){

02-01-2006, 02:57 AM
Yes it was DHTML Slideshow (http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm), sorry I said it but didn't link it.
Thank you, that has solved my issue.