BossJames
06-22-2003, 12:42 AM
i have used this code before with different image names, this time it does not work, i have been through it a million times, do you see where i have made a mistake & what do i need to change to make it work.
thanks
james
_____
<head>
<script language="JAVASCRIPT" type="TEXT/JAVASCRIPT">
<!--
showboard = new Image(414,576)
showboard.src = ".images/showboardlee.jpg"
showboard = new Image(414,576)
showboard.src = ".images/showboardken.jpg"
showboard = new Image(414,576)
showboard.src = ".images/showboardcobra.jpg"
// -->
</script>
<script><!--
adImages = newArray
("images/showboardlee.jpg",
"images/showboardken.jpg",
"images/showboardcobra.jpg")
thisAd = 0
imgCt = adImages.length
function rotate() {
if (document.images) {
thisAd++
if (thisAd == imgCt) {
thisAd = 0
}
document.adshowboard.src=adImages[thisAd]
setTimeout("rotate()", 35 * 1000)
}
}
// -->
</script>
</head>
<body onload="rotate()">
<noscript>
Javascript slidshow - upgrade to newer browser or turn on javascript
</noscript>
<p><img src= "../images/showboardlee.jpg" , width="414" height="576" name="adshowboard"></p>
thanks
james
_____
<head>
<script language="JAVASCRIPT" type="TEXT/JAVASCRIPT">
<!--
showboard = new Image(414,576)
showboard.src = ".images/showboardlee.jpg"
showboard = new Image(414,576)
showboard.src = ".images/showboardken.jpg"
showboard = new Image(414,576)
showboard.src = ".images/showboardcobra.jpg"
// -->
</script>
<script><!--
adImages = newArray
("images/showboardlee.jpg",
"images/showboardken.jpg",
"images/showboardcobra.jpg")
thisAd = 0
imgCt = adImages.length
function rotate() {
if (document.images) {
thisAd++
if (thisAd == imgCt) {
thisAd = 0
}
document.adshowboard.src=adImages[thisAd]
setTimeout("rotate()", 35 * 1000)
}
}
// -->
</script>
</head>
<body onload="rotate()">
<noscript>
Javascript slidshow - upgrade to newer browser or turn on javascript
</noscript>
<p><img src= "../images/showboardlee.jpg" , width="414" height="576" name="adshowboard"></p>