PDA

View Full Version : DHTML Slideshow (Manual) - Open link in new page



MarcLodge
05-26-2010, 02:51 PM
1) Script Title: DHTML Slide Show Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm

3) Describe problem:
I wish to have the links open in a new page. Using the script as it is at the moment, all links open in the same page, which is not what I require.

I am afraid I know nothing of Javascript and even this seemingly minor problem is beyond me for which I apologise.

Regards.
MarcL

ddadmin
05-26-2010, 10:33 PM
Try finding the below line inside the script:


window.location=photoslink[which]

and change that to:


window.open(photoslink[which])

MarcLodge
05-26-2010, 11:11 PM
ddadmin, your suggested change worked like a dream and the really useful script now does EXACTLY what I want it to do.

Heartfelt thanks are sent to you.

Regards,
Marc L