HTML/Java issue

Hi everyone, I’m attempting to add some HTML to my website and so far everything has been working. EXCEPT, some code for a bouncing ball that literally just bounces back and forth across the screen. I attempted messing around with it, but it doesn’t seem to cooperate. Idk if it’s something in my code or an incompatible browser or what but this code works on everything except this website for some reason. This is NOT my code I found it from another resource so part of the issue is I don’t really understand it that much. Here it is if you want to take a look at it:

[code]


[/code]