So I'm working on a breakout game, and this is a test I found online and I did some editing in it. The red square should follow the cursor, and it does in Safari and IE, but it doesn't in Firefox. Any clue what has to be done to make it work?
Thanks
Typon
Offline
Your code is hard to read. Do you have to have it all in such long lines?
Consider using variables to store references to html elements, so you don't repeat your code again and again.
You are using IE only properties, such as posLeft. Use the top and left properties instead. They will return a String though, so you need to use parseInt to cast to a Number.
Offline