View Single Post
ישן 09-02-08, 02:45   # 1
GalN
חבר בקהילה
 
מיני פרופיל
תאריך הצטרפות: Nov 2006
הודעות: 144

GalN לא מחובר  

[עזרה+פירסום] Marquee תקין בJS - אופקי

אוקיי אז ככה, ישבתי שעות לחפש את זה 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>
  Reply With Quote