אוקיי אז ככה, ישבתי שעות לחפש את זה P: בסוף מצאתי D:
אבל, צריך לעשות איכשהו שזה יקרא מהstyle ולא להגדיר מראש... כמו בסקריפט של meshuga
*לקוח מynet
HTML קוד:
<html>
<head>
<script language=JavaScript>
function MakeItRoll() {
a=document.getElementById('scroller');
a.style.right = parseInt(a.style.right)-1;
if (parseInt(a.style.right) < -a.offsetWidth) a.style.right = a.offsetWidth;
}
function RollItBiatch() {
DoRoll = setInterval("MakeItRoll()", 10);
}
function StopIt() {
clearInterval(DoRoll);
}
function RollInIt() {
a=document.getElementById('scroller');
a.style.right = 700;
}
</script>
</head>
<body onload='RollInIt();RollItBiatch();'>
<div id="scroller" style='position:absolute'>
Yeah, Yeah Here It Is :P
</div>
</body>
</html>