I'm working on yet another web page and I'm getting a weird error when I load the page I get a "Stack Overflow" alert, but the script does as it's supposed to.
Here's the script (It's a variation on the "Terror Alerts")
Code:
statusCode = 'severe';
alertStatus = new Array()
alertStatus['elevated'] = "Images/Elevated.jpg";
alertStatus['guarded'] = "Images/Guarded.jpg";
alertStatus['high'] = "Images/High.jpg";
alertStatus['lost'] = "Images/Lost.jpg";
alertStatus['low'] = "Images/Low.jpg";
alertStatus['severe']= "Images/Severe.jpg"
function showStatus(){
if (document.images){
document.status.src=alertStatus[statusCode];
}
}
And the html that calls it
Code:
<img src="Images/Blank.jpg" width=160 height=40 name="status" onLoad="showStatus()">
PS. The idea is to the script in a file and people link to it--a la the "Cost of War" clock.