Thunder Lizard JavaScript Conference |
<script> function moveIt() { document.mover.top+=2 document.mover.left+=2 if (document.mover.left <= (window.innerWidth-450)) { setTimeout("moveIt()",20) } } </script> <style type="text/css"> #mover {position: absolute; left: 5; top: 120; font-size:48px; font-family: verdana;} </style>
<div id="mover">On the road again...</div> <a href="javascript:moveIt()">Let's go</a>