ingeborg: Layer verschieben in NS 7

Beitrag lesen

Folgendes Skript funktioniert in IE, aber nicht mehr in NS 7, wer weiß warum?

<html>
<head>
<title>Sieb</title>
<SCRIPT language="javascript">
        var y=1;
        var isNetscape=false;
        var isIE = false;
        var control = 0;
        var loop = false;
        var direc = "rauf";
        var scrollpfeile = true;
  var text

if (parseInt(navigator.appVersion)>=4) {
          if (navigator.appName == "Netscape") {
            isNetscape = true;}
           else {
            isIE = true;
                }
        }

function scrollrunter () {
                 if (loop) {
                  y=y+1;
                      if (y<=1) {
                        if (isNetscape) {
                       document.text.moveTo(1,y);
                    } else {
                           document.all.text.style.pixelTop = y;
                            }
                        window.setTimeout("scrollrunter()", 1);
                      }
             }
         }

function scrollrauf () {
                 if (loop) {
                 y = y-1;
                     if (y>=-800) {
                       if (isNetscape) {
                       document.text.moveTo(1,y);
                   } else {
                           document.all.text.style.pixelTop = y;
                           }
                     window.setTimeout("scrollrauf()", 1);
                     }
             }
         }

</SCRIPT>

</head>
<body bgcolor="#020D28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td class="siebgrafik"> Auftrag</td>
    </tr>
  </table>
</div>
<div id="pfeilhoch" style="position:absolute; top:1; left:1; visibility: visible;"></div>
<div id="pfeilrunter" style="position:absolute; top:1; left:1; visibility: visible;"></div>
          <p><a href="#" onMouseOver="loop=true; scrollrunter(); self.status='Text nach oben bewegen'; return true" onMouseOut="loop=false; self.status=''"><img src="file:///D|/andreasneu1/logoleiste/sroll1.gif" border=0 width="10" height="14" vspace="5"></a></p>
          <p><a href="#" onMouseOver="loop=true; scrollrauf(); self.status='Text nach unten bewegen'; return true" onMouseOut="loop=false; self.status=''"><img src="file:///D|/andreasneu1/logoleiste/sroll2.gif" border=0 width="10" height="14"></a></p>
        </div>
      </td>
      <td align="left" valign="top" height="472">
        <div id="text" style="position:relative; left:1; top:1; visibility:visible">
          <table width="100%" border="0" cellspacing="4" cellpadding="0">
            <tr align="left" valign="top">
              <td width="257" height="1322"> <p><font size="-1" face="Arial, Helvetica, sans-serif" color="#CAD8E9">Referenzen</font></p>
              <font face="Arial, Helvetica, sans-serif" size="-1" color="#CAD8E9">Institutionen</font></p>
                </td>
              <td width="234" height="1322"> </td>
            </tr>
          </table>
        </div>
</td>
</table>
</div>
</BODY>
</HTML>