You are here: irt.org | FAQ | DHTML | Q1295 [ previous next ]
Try:
<html>
<head>
<script language="JavaScript"><!--
function moving() {
if (document.layers) {
if (document.myLayer.left > -(document.myLayer.document.width))
document.myLayer.left -= 5;
else
document.myLayer.left = 640;
setTimeout('moving()',50);
}
else if (document.all) {
if (document.myLayer.style.pixelLeft > -(document.myLayer.style.width))
document.myLayer.style.pixelLeft -= 5;
else
document.myLayer.style.pixelLeft = 640
setTimeout('moving()',50);
}
}
//--></script>
</head>
<body bgcolor="#ffffff" onLoad="moving()">
<div id="myLayer" style="position:relative"><a href="http://www.irt.org/">irt.org</a></div>
</body>
</html>