<html> <head> <script> var step = 10; var limit = 100; var _top = 0; function move() { if (_top == limit) step = -1; if (_top == 0) step = 1; _top += step; dv.style.left = _top; setTimeout("move()", 10); } function stop() { if (pause == 0) { clearTimeout(abbruch); pause = 1; } else { move(); pause = 0; } } </script> </head> <body onload="move()"> <input type="button" value="Старт/Стоп слой" onClick="java script:stop()"> <div id='dv' style='margin: 0 300 0 300; position: absolute; font-size:100px;font-style:italic; z-index:3; color:blue'>CSS</div> </body> </html>