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
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
Find this function:
Change it to this:Code:function rotatelink(){ if (droplinks[linkindex]!="") window.location=droplinks[linkindex] }
Code:function rotatelink(){ if (droplinks[linkindex]!="") window.open(droplinks[linkindex]) }
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
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
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()):
to:Code:tempobj.innerHTML=(droplinks[curimageindex]!="")? '<a href="'+droplinks[curimageindex]+'">'+slideimage+'</a>' : slideimage
and (in function startit()):Code:tempobj.innerHTML=(droplinks[curimageindex]!="")? '<a href="'+droplinks[curimageindex]+'" target="_blank">'+slideimage+'</a>' : slideimage
to:Code:crossobj.innerHTML='<a href="'+droplinks[curimageindex]+'"><img src="'+dropimages[curimageindex]+'" border=0></a>'
Code:crossobj.innerHTML='<a href="'+droplinks[curimageindex]+'" target="_blank"><img src="'+dropimages[curimageindex]+'" border=0></a>'
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Thanks very much, It worked. Appreciate your help.
coolmate
Bookmarks