|
Pleae HELP with javascript slideshow
hubby said it was easy...had me load up the pics and here's the code, but it's HTML and when used it just shows up at the HTML...
I see poeple still use these slideshows for their siggy pics...
can someone help me to fix this code, or if it is totally wrong, help me to get something that does work?
THANK YOU!
<html>
<head>
<script language="JavaScript1.1">
<!--
var image1=new Image()
image1.src="http://wahmommy.com/members/noblebliss/lilly.gif"
var image2=new Image()
image2.src="http://wahmommy.com/members/noblebliss/marni.gif"
var image3=new Image()
image3.src="http://wahmommy.com/members/noblebliss/zeke.gif"
var image4=new Image()
image4.src="http://wahmommy.com/members/noblebliss/zekeandmom.gif"
var image5=new Image()
image5.src="http://wahmommy.com/members/noblebliss/sigpic.gif"
//-->
</script>
</head>
<body>
<img src="http://wahmommy.com/members/noblebliss/lilly.gif" name="slide" width=225 height=280>
<script>
<!--
//variable that will increment through the images
var step=1
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.images.slide.src=eval("image"+step+".src" )
if (step<3)
step++
else
step=1
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",2500)
}
slideit()
//-->
</script>
</body>
</html>
|