Thunder Lizard JavaScript Conference |
<script> var firstTime = true function moveIt() { if (firstTime) { mover.style.top = 25 mover.style.left = 5 firstTime = false } mover.style.top = parseInt(mover.style.top) + 2 mover.style.left = parseInt(mover.style.left) + 2 if (parseInt(mover.style.left) < 100) { setTimeout("moveIt()",20) } } </script> <style type="text/css"> #mover {position: absolute; left: 5; top: 120; font-size:48px; font-family: verdana;} </style>