getting layermovement in netscape

Thread Solved

Join Date: Jan 2007
Posts: 27
Reputation: flageolet is an unknown quantity at this point 
Solved Threads: 0
flageolet's Avatar
flageolet flageolet is offline Offline
Light Poster

getting layermovement in netscape

 
0
  #1
Apr 5th, 2007
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 and CSS Syntax (Toggle Plain Text)
  1.  
  2. <html>
  3. <head>
  4. <!--verschuiven tekst-->
  5. <SCRIPT>
  6. function move()
  7. {
  8. var j = document.getElementById('tekst').style;
  9. var d = document.getElementById('tekst2').style;
  10. var a = document.getElementById('tekst3').style;
  11. if ( j.pixelLeft < 212 ) {j.pixelLeft +=4; d.pixelLeft -=2;}
  12. if ( j.pixelLeft == 40 ) d.visibility = "visible";
  13. if ( j.pixelLeft == 68 ) j.visibility = "visible";
  14. if ( j.pixelLeft == 212 ) {a.visibility = "visible"; clearInterval(intervalvar);}
  15. }
  16. </SCRIPT>
  17. </head>
  18. <body ONLOAD="intervalvar = setInterval('move()',20)" >
  19. <div id="tekst3" style="position: absolute; top: 50px; left: 264px; visibility: hidden;">
  20. Art
  21. </div>
  22. <div id="tekst" style="position: absolute; top: 50px; left: 0px; visibility: hidden;">
  23. Jacobus
  24. </div>
  25. <div id="tekst2" style="position: absolute; top: 50px; left: 270px; visibility: hidden;">
  26. Dustin
  27. </div>
  28. </body>
  29. </html>
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 27
Reputation: flageolet is an unknown quantity at this point 
Solved Threads: 0
flageolet's Avatar
flageolet flageolet is offline Offline
Light Poster

Re: getting layermovement in netscape

 
0
  #2
Apr 7th, 2007
solved by the belgian Marnix Forum.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC