As you can see, I've been having problems with the mwcatering web page that I have been working on for my Intro to Javascript class. This is how I have the banner cycle code laid out:
Code:
<SCRIPT LANGUAGE="JAVASCRIPT">
<!-- Hide from old browsers
var banners = new Array("banner1.jpg","banner2.jpg","banner3.jpg","banner4.jpg")
var bnrCntr = 0
function bancycle()
{
bnrCntr = bnrCntr + 1
if (bnrCntr == 4)
bnrCntr = 0
}
document.Banner.src = banners[bnrCntr]
setTimeout("bancycle()",3000)
}
//-->
</SCRIPT>
I did it this way at the suggestion of my instructor but I'm getting the error message saying that bancycle is not defined. I'm using Firefox to test the page, BTW.
Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.
Most likely using
FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator
Welcome to the
New Age
__________________
Ben Horne
-------------------------
I don\'t want to sound like I haven\'t made any mistakes. I\'m confident I have.
Most likely using
FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator
Welcome to the
New Age