PDA

View Full Version : Pixelating Slideshow Script



raydona
01-31-2010, 05:39 PM
1) Script Title: Pixelating Slideshow Script

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

3) Describe problem: When an image is clicked and the user is redirected it is on the same page and not on a new page. I want the user to be redirected to a new page. I've inserted target="_blank" at several points in the code but I cannot get it to work. I'm sure there must be a simple way of ensuring that the link will open in a new window. I'll be very grateful for all help.

Nile
01-31-2010, 05:42 PM
Change:


function gotoshow(){
window.location=slidelinks[whichlink]
}
To:


function gotoshow(){
window.open(slidelinks[whichlink]);
}

raydona
01-31-2010, 09:20 PM
Nile,
Many thanks for the reply. I altered the code as you suggested and it worked perfectly. I wanted to do the same for Book Flip Slideshow. url: http://www.dynamicdrive.com/dynamicindex14/bookflip.htm
I tried altering 'location' to 'open' in:
function B_LdLnk()
{ if(this.lnk)window.location.href=this.lnk
}
but I couldn't get it to work. Maybe my syntax wasn't correct. I wonder if you might have a solution? Again many thanks for your solution.

Nile
02-01-2010, 02:47 AM
Try:


if(this.lnk)window.open(this.lnk);