PDA

View Full Version : Fade-in Slideshow



rbr493c
06-14-2005, 06:19 PM
Script: Fade-in slideshow
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

How would I alter the script to remove the links associated with the pics? Follows is what I have:

In the head section:

<!--

/*
JavaScript Image slideshow:
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScript here!
*/

var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}

function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}

function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}

//-->


In the Body section:

<script>
<!--

//configure the paths of the images, plus corresponding target links
slideshowimages("Last%20Friday%2005/Images/Lst_Fri_05%2020.jpg","May_05_Dance/Images/05-05_Dance%202.jpg","Last%20Friday%2005/Images/Lst_Fri_05a%2026.jpg","May_05_Dance/Images/05-05_Dance%2018.jpg","Last%20Friday%2005/Images/Lst_Fri_05b%202.jpg","May_05_Dance/Images/05-05_Dance%2010.jpg")
slideshowlinks("http://www.lancastershagclub.com/pictures.htm?id=13285","http://www.lancastershagclub.com/pictures.htm?id=10092","http://www.lancastershagclub.com/pictures.htm?id=100975","http://www.lancastershagclub.com/pictures.htm?id=2876","http://www.lancastershagclub.com/pictures.htm?id=20010","http://www.lancastershagclub.com/pictures.htm?id=14285")

//configure the speed of the slideshow, in miliseconds
var slideshowspeed=3000

var whichlink=0
var whichimage=0
function slideit(){
if (!document.images)
return
document.images.slide.src=slideimages[whichimage].src
whichlink=whichimage
if (whichimage<slideimages.length-1)
whichimage++
else
whichimage=0
setTimeout("slideit()",slideshowspeed)
}
slideit()

//-->
</script>


Thanks in advance.

RBR

rbr493c
06-14-2005, 06:30 PM
Oops! Just realized wrong script! Never Mind!