PDA

View Full Version : Blending Image SlideShow - Pictures Missing



themoon2
03-09-2011, 07:46 PM
1) Script Title: Blending Image SlideShow problem

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

3) Describe problem: I added the coding for the Blending Image slideshow to my web page, but only the first picture shows up. Below is a copy of the coding with my revisions. Let me know what I did wrong. I DO NOT want the images to link.

IN Header
<script language="JavaScript1.1">
<!--

//*****************************************
// Blending Image Slide Show Script-
// Dynamic Drive (www.dynamicdrive.com)
// For full source code, visit http://www.dynamicdrive.com/
//*****************************************

//specify interval between slide (in mili seconds)
var slidespeed=3000

//specify images
var slideimages=new Array("images/fbcg_pic1.jpg","images/fbcg_pic2.jpg","images/fbcg_pic3.jpg", "images/fbcg_pic4.jpg", "images/fbcg_pic5.jpg")

//specify corresponding links
var slidelinks=new Array(",",",",")

var newwindow=0 //open links in new window? 1=yes, 0=no

var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}

//-->
</script>


In Body
<a href="javascript:gotoshow()"><img src="images/fbcg_pic1.jpg" name="slide" border=0 style="filter:blendTrans(duration=3)" width=400 height=400></a>

<script language="JavaScript1.1">
<!--

var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)
}
slideit()

//-->
</script>

<p align="center"><font face="arial" size="-2">This free script provided by<br>
<a href="http://www.dynamicdrive.com">Dynamic Drive</a></font></p>