/*Java Script*/
<script type="text/javascript">
var myimages=new Array()
function slideshowimages()
{
for (i=0;i<slideshowimages.arguments.length;i++)
{
myimages[i]=new Image()
myimages[i].src=slideshowimages.arguments[i]
}
}
</script>
/* code inside the body*/
<img src="picture1.jpg" name="slide" border=0 width=400 height=200 />
<script type="text/javascript">
slideshowimages("picture1.jpg","picture2.jpg","picture3.jpg")
var slideshowspeed=3000
var whichimage=0
function slideit()
{
if (!document.images)
return
document.images.slide.src=myimages[whichimage].src
if (whichimage<myimages.length-1)
whichimage++
else
whichimage=0
setTimeout("slideit()",slideshowspeed)
}
slideit()
</script>
<script type="text/javascript">
var myimages=new Array()
function slideshowimages()
{
for (i=0;i<slideshowimages.arguments.length;i++)
{
myimages[i]=new Image()
myimages[i].src=slideshowimages.arguments[i]
}
}
</script>
/* code inside the body*/
<img src="picture1.jpg" name="slide" border=0 width=400 height=200 />
<script type="text/javascript">
slideshowimages("picture1.jpg","picture2.jpg","picture3.jpg")
var slideshowspeed=3000
var whichimage=0
function slideit()
{
if (!document.images)
return
document.images.slide.src=myimages[whichimage].src
if (whichimage<myimages.length-1)
whichimage++
else
whichimage=0
setTimeout("slideit()",slideshowspeed)
}
slideit()
</script>
No comments:
Post a Comment