Style JavaScript Tutorial

< html>


Animating Text

var pos1 = 0;
function f() {
    pos1 += 5;
    if (pos1 > 640)
       pos1 = 0;
    document.getElementById("movetext").style.left = pos1;
    window.setTimeout("f();",300);
}




inside a div