Cкрипт:
Code
<SCRIPT language="javascript">
<!--
var carPos = 30;
var t;
var a;
var kuda;
function MoveMePlease(kuda) {
if (kuda == 1) {
document.getElementById('mr').style.width = '30px';
if (carPos >= -1150) {
t=setTimeout("MoveMePlease(1)", 40);
carPos=carPos-10;
writer(carPos);
} else { clearTimeout(t); }
}
else if (kuda == 0) {
document.getElementById('ml').style.width = '30px';
//document.getElementById('ml').style.margin = '48px 0 0 77px';
if (carPos <= 20) {
a=setTimeout("MoveMePlease(0)", 40);
carPos=carPos+10;
writer(carPos);
} else { clearTimeout(a); }
}
}
function cleaner() { clearTimeout(a); clearTimeout(t);
document.getElementById('mr').style.width = ''; document.getElementById('ml').style.width = ''; document.getElementById('ml').style.margin = '';
}
function writer(newPos) {
if ( navigator.appName == "Microsoft Internet Explorer" )
document.getElementById('lenta_in').style.textIndent = newPos;
else
document.getElementById('lenta_in').style.textIndent = newPos + "px";
}
-->
</SCRIPT>
Остальное в следующем посте.