PDA

View Full Version : Pixelating Slideshow link wanted in new window



Newco
11-16-2010, 05:25 AM
1) Script Title: Pixelating Slideshow script

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

3) Describe problem:Hi, I would like to know how to get the "slidelinks" to open in a new window when they are clicked, right now they just replace the existing window. I would like them to open in a new window. Thanks a lot.

vwphillips
11-16-2010, 11:16 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title></title>
<script type="text/javascript">
<!--

//Pixelating Image slideshow
//Copyright Dynamic Drive 2001
//Visit http://www.dynamicdrive.com for this script

//specify interval between slide (in mili seconds)
var slidespeed=3000
//specify images
var slideimages=new Array("http://www.dynamicdrive.com/dynamicindex14/photo1.jpg","http://www.dynamicdrive.com/dynamicindex14/photo2.jpg","http://www.dynamicdrive.com/dynamicindex14/photo3.jpg")
//specify corresponding links
var slidelinks=new Array("http://www.dynamicdrive.com","http://wsabstract.com","http://www.geocities.com")

var imageholder=new Array()
var ie55=window.createPopup
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
document.images.slide.parentNode.href=slidelinks[whichlink];
}

//-->
</script>

</head>

<body>
<a href="http://www.dynamicdrive.com" target="_blank"><img src="http://www.dynamicdrive.com/dynamicindex14/photo1.jpg" name="slide" border=0 style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)"></a>
<script type="text/javascript">
<!--
var whichlink=0
var whichimage=0
var pixeldelay=(ie55)? document.images.slide.filters[0].duration*1000 : 0

function slideit(){
if (!document.images) return
if (ie55) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie55) document.images.slide.filters[0].play()
whichlink=whichimage;
gotoshow();
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+pixeldelay)
}
slideit()

//-->
</script>


</body>

</html>

Newco
11-16-2010, 06:23 PM
Thank You so much, i will give that a try. And yes he does love me!