Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1295 How can I scroll a link from right to left on the screen?

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>

Feedback on 'Q1295 How can I scroll a link from right to left on the screen?'

©2018 Martin Webb