It appears to be the hintbox.js script. At the end it has:
Code:
if (window.addEventListener)
window.addEventListener("load", createhintbox, false)
else if (window.attachEvent)
window.attachEvent("onload", createhintbox)
else if (document.getElementById)
You see that highlighted line? It's an if with nothing to do if it is true. Firefox sees this as invalidating the entire hintbox script, so the call in the body onload event to createhintbox() throws an error. As a result, dayofweek_iframe(), which follows that never gets fired.
Here's what I would do for now. get rid of that line so that you have:
Code:
if (window.addEventListener)
window.addEventListener("load", createhintbox, false)
else if (window.attachEvent)
window.attachEvent("onload", createhintbox)
And get rid of createhintbox(); from the body onload event as well. It's not needed because all modern browsers have either addEventListener or attachEvent.
I say for now, because you might want to make all of these events into a single function and use the add/attach methods to fire that one function on window load. Or make each individual script do its window on load event that way. If you do it like that, each individual script could be added or removed without disturbing the others. But let's leave that for another time.
In fact, more and more of the scripts being written today use some form of the add/attach methods for any load event they need. Many though do not need it. They either work completely differently (don't need the page to load first), or use the DOM ready event, which is faster.
Bookmarks