
March 20th, 2001, 05:56 AM
|
|
Junior Member
|
|
Join Date: Mar 2001
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Hi,
I want to scroll some text in a layer. I have done it with Netscape and it wprorks fine, but the IE makes some trouble.
Here is the code I have written. If somebody can help me, please write back.
Tank's
A. Fuss
Code:
-----
<HTML>
...
<script language="JavaScript">
...
function Scrol(delay) {
if (document.all["MA"].document.all["MA2"]style.top == document.all["MA"].style.height)
document.all["MA"].document.all["MA2"]style.top = 0;
document.all["MA"].document.all["MA2"]style.top += 1;
var TimeID = setTimeout(Scrol, delay, delay);
}
...
</script>
...
<body bgcolor="#ffffff" text="#000000" id=all>
<DIV ID="MA" STYLE="position: absolute; left: 100px;
top: 40px; width: 300px; height: 100px; z-index: 9;
visibility: visible;">
<DIV ID="MA2" STYLE="position: absolute; left: 0px;
top: 0px; width: 300px; height: 100px; z-index: 9;
visibility: inherit;">
Hello
</DIV>
</DIV>
<body bgcolor="#ffffff" text="#000000" id=all>
</HTML>
|