Your code that you say works in FX 3 and Chrome doesn't. The object console is undefined, and even commenting out that line, the page reloads to # every time I click on something. So I added:
Code:
document.onclick = function(e){if (e && e.preventDefault) e.preventDefault(); return false;};
After that it 'worked' (I don't know enough about the game to know if it works properly) in FX, IE, and Opera, at least for fouls.
Code to prevent the default action of the links should be added to each function that gets assigned to them (I think jQuery may have an event.stop directive for that, or something), rather than wholesale as I've done above, which was just for testing purposes (it will also disable any normal links on the page). Or (a better approach) the functions could simply be assigned to something other than anchor link tags.
Bookmarks