Hi guys...
First i have tio say that i am a german guy... so my english isnt the best
Ok my problem is this:
This code only works in IE and Opera... (netscape i dont know)Code:function pushed() { keyval=0 keyval=event.keyCode if (keyval==37) { ballmoves[0]=-1; } if (keyval==39) { ballmoves[0]=1; } score-=1 if (score<0) score=0 document.gamefield.scoretxt.value=score return; }
But it doesnt work in FireFox...
Can someone explain me why?
I know that Firefox interpret
event.keycode
as
Event.keycode
but how can i put in a "switch"
so that the game is playable at all Browser?!
PLz can someone help me?!
THX Fredooo




Reply With Quote


Bookmarks