PDA

View Full Version : Slide Show-Presentation



coolmate
06-15-2006, 01:44 PM
Hi! I am using the above slide show on my site. Is there any way to alter the code, so that the hyperlink from the images open in a new window?

Please help.

http://realestate-ontario.com/Toronto-Condo-Hotels.htm

Thanks,

Coolmate

jscheuer1
06-15-2006, 05:02 PM
Find this function:


function rotatelink(){
if (droplinks[linkindex]!="")
window.location=droplinks[linkindex]
}

Change it to this:


function rotatelink(){
if (droplinks[linkindex]!="")
window.open(droplinks[linkindex])
}

coolmate
06-15-2006, 10:53 PM
Thanks for your help.

I did the above, but click on the picture still opens the hyperlink in full window and NOT in a new window.

You can see in the source that I have changed the source code, as per your advise.

What more needs to be done?

Cheers,

Coolmate

jscheuer1
06-16-2006, 04:01 AM
I see now that the function we updated was for older browsers. For modern browsers we need to update these two lines, this (in function movepic()):


tempobj.innerHTML=(droplinks[curimageindex]!="")? '<a href="'+droplinks[curimageindex]+'">'+slideimage+'</a>' : slideimage

to:


tempobj.innerHTML=(droplinks[curimageindex]!="")? '<a href="'+droplinks[curimageindex]+'" target="_blank">'+slideimage+'</a>' : slideimage

and (in function startit()):


crossobj.innerHTML='<a href="'+droplinks[curimageindex]+'"><img src="'+dropimages[curimageindex]+'" border=0></a>'

to:


crossobj.innerHTML='<a href="'+droplinks[curimageindex]+'" target="_blank"><img src="'+dropimages[curimageindex]+'" border=0></a>'

coolmate
06-16-2006, 11:49 AM
Thanks very much, It worked. Appreciate your help.


coolmate