anonymous
2011-08-30 19:17:14 UTC
// declare this variable outside of your functions
currentspecial = 1 // selects which item that is "on special"
function displayspecial() {
if (currentspecial == 1) {
alert("The current special is #1)
}
if (currentspecial == 2 {
alert("The current special is #2")
}
if (currentspecial == 3 ) {
alert("The current special is #3"
}
currentspecial = currentspecial + 1
if (currentspecial > 3) {
currentspecial = 1
}
}
Now I have found most of what is wrong with it by just looking at it however I cannot figure out how to use the javascript debugger in mozilla firefox or IE and get an error back ( or 3! ) in which I can copy and paste into an email. If anyone can plz explain this too me I would be most grateful. Thank You!