Hey Guys,
This is the code:
For some reason the text would not move on FireFox while on IE and Chrome everything is fine. I have tried looking around in Google but to no avail.Code:<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Scrolling Text</title> <script type="text/javascript"> function moveIt() { if (document.getElementById("ani").style.pixelTop<500) { document.getElementById("ani").style.pixelTop+=2; document.getElementById("ani").style.pixelLeft+=2; setTimeout("moveIt()",100); } } window.onload=function() { moveIt(); } </script> </head> <body> <div id="ani" style="color:red; font-size:25pt; position:absolute; left:10px; top:10px;"> This is the new Scroller... </div> </body>
Any ideas?
Kind regards


Reply With Quote
Bookmarks