0

Hi:

I want to get some movement into some words. The only things I want to change are the layervisibility and the layerposition.

This code below works fine in IE and Opera, but doesn't do anything in Netscape 8 (except when watching in IE view).

How come: thx :)

<html>
<head>
<!--verschuiven tekst-->
<SCRIPT>
function move()
{
  var j = document.getElementById('tekst').style;
  var d = document.getElementById('tekst2').style;
  var a = document.getElementById('tekst3').style;
  if ( j.pixelLeft < 212 ) {j.pixelLeft +=4; d.pixelLeft -=2;}
  if ( j.pixelLeft == 40 ) d.visibility = "visible";
  if ( j.pixelLeft == 68 ) j.visibility = "visible";
  if ( j.pixelLeft == 212 ) {a.visibility = "visible"; clearInterval(intervalvar);}
}
</SCRIPT>
</head>
<body ONLOAD="intervalvar = setInterval('move()',20)"  >
<div id="tekst3" style="position: absolute; top: 50px; left: 264px; visibility: hidden;">
 Art
</div>
<div id="tekst" style="position: absolute; top: 50px; left: 0px; visibility: hidden;">
Jacobus 
</div>
<div id="tekst2" style="position: absolute; top: 50px; left: 270px; visibility: hidden;">
Dustin  
</div>
</body>
</html>
1
Contributor
1
Reply
2
Views
10 Years
Discussion Span
Last Post by flageolet
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.