no i wykonuje sie tylko raz cokolwiek bym nie zrobil...
<!DOCTYPE HTML> <html> <head> <meta http-equiv="content-type" content="text/html" charset="utf-8"/> <style type="text/css"> #dwa{ position:absolute; border:1px solid blue; top: 0px;left: 500px; width: 100px; height: 200px; text-align: center; } </style> <script type="text/javascript"> function go() { a = 10; mySet=setInterval(move,1000); } move = function move() { document.getElementById("dwa").style.top = a+"px"; a+=10; } function stopMySet() { clearInterval(mySet); } </script> </head> <body onload="go();"> <div id="dwa"> </div> </body> </html>