simple text movement via js
html file
if(!document.getElementById) return false;
if(!document.getElementById("message")) return false;
var elem = document.getElementById("message");
elem.style.position = "absolute";
elem.style.left = "50px";
elem.style.top = "100px";
moveElement("message",200,100,10);
}
addLoadEvent (positionMessage);
the effect you want to achieve is text movement
, but in fact positiMessage successfully calls
but no text movement effect occurs;
and the browser reports an error [Web browser] "Uncaught SyntaxError: Unexpected number" (1)