PDA

View Full Version : DHTML slide show(manual)



robbflynn
06-18-2005, 12:46 AM
DHTML slide show(manual)
http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm


I was wondering how one could modify it so that the pictures would open up(when clicked) in a new window(I tried myself to do so, but didn't manage - I'm lame at js :rolleyes: )

robb

jscheuer1
06-18-2005, 04:12 AM
Change this:
function transport(){
window.location=photoslink[which]
}to this:
function transport(){
window.open(photoslink[which],'photoWin','width=300, height=300, top=250, left=250')
}Set the width and height to the maximum for the displayed images plus about 15 for each dimension, top and left to the position on the screen where you want the window to appear.

robbflynn
06-18-2005, 11:36 AM
thank you :)