Can anyone explain why the following script works in IE but not
Netscape?
function changeSlide() {
if (form1.pic1.src.indexOf("diane.jpg") != -1) {
form1.pic1.src = "http://home.comcast.net/~llabbauf/public_html/graphics/tdub.gif";
} else if (form1.pic1.src.indexOf("tdub.gif") != -1) {
form1.pic1.src = "http://home.comcast.net/~llabbauf/public_html/graphics/thug.jpg";
} else if (form1.pic1.src.indexOf("thug.jpg") != -1) {
form1.pic1.src = "http://home.comcast.net/~llabbauf/public_html/graphics/diane.jpg";
}
}
function runSlideShow() {
setInterval("changeSlide()", 1000);
}
</script>
<form name="form1">
<img src="http://home.comcast.net/~llabbauf/public_html/graphics/diane.jpg"
name="pic1">
</form>
When viewed in IE it accurately changes the images, but Netscape just
loads the first image and then does nothing.
Les