This is the error from Firefox:
This means that fireEvent is neither a native function to javascript, which it isn't, not even in IE, nor a function defined previously in your code.
Here's line 47:
Code:
inter = setInterval("document.getElementById('phpbb').fireEvent('onMouseMove')",10);
This appears to mean to fire this:
Code:
<body onMouseMove="fixit2(event)" onKeyDown="fixit()" onMouseOver="startInt()" onMouseOut="stopInt()" id="phpbb" class="section-Index ltr">
Which is:
Code:
function fixit2(event)
{
if (x==event.screenX && y==event.screenY)
{
return;
}
fixit();
x=event.screenX;
y=event.screenY;
}
However, there will never be an event.screen X or Y unless this function is actually fired by the user moving their mouse over the page, or unless you create a pseudo event object (highlighted) for the function. You could do that like so (replacing line 47 with):
Code:
inter = setInterval(function(){fixit2({screenX: 0, screenY: 0});}, 10);
Change 0 to whatever value you might want it to be for screenX and for screenY, but 0 could be fine.
All this seems to want to do is to keep the page 'awake' if the user isn't moving their mouse. If that's the case, dispense with everything that could put the page to sleep in the first place instead. Otherwise, just let the page sleep if it wants to (get rid of the line 47 bit and any other code that depends directly upon it).
On another front, the best way to get your URL in the address bar to change itself to something like:
which is called a hash BTW, is to change the hash:
Code:
location.hash = 'partofpage';
This will not reload the page. It will produce a click sound in IE if IE is so configured (the default in that browser).
Bookmarks