ingeborg: Geht auf PC, geht nicht auf Mac????

Beitrag lesen

Liebe Leute, bitte Hilfe!!! Das folgende Script zum Hoch- Runter-Scrollen eines Textes funktioniert auf PC im IE und NN, auf dem Mac gehts garnicht im IE und falsch im NN. Wer weiß Rat?????

<html>
<head>
<title>lockes</title>
<style type="text/css"><!--
.siebgrafik {  font-family: Arial, Helvetica, sans-serif; font-size: 12pt; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; color: #CAD8E9}
-->
</style>
<script language="javascript">
<!--
nn4=(document.layers)?true:false;
ie4=(document.all)?true:false;
nn6=(document.getElementById && !document.all)?true:false;
var y=1;
var control=0;
var loop=false;
var direc="rauf";
var scrollpfeile=true;
function init()
{
 if(nn4)
 {
texta=document.text;
 }
 if(ie4)
 {
 texta=text.style;
 }
 if(nn6)
 {
 texta=document.getElementById("text").style;
 }
texta.ypos = parseInt(texta.top);
}
function fensterhoehe(){
          if (isNetscape) {
            return window.innerHeight;
           } else {
            return document.body.clientHeight;
           }
        }
function fensterbreite () {
          if (isNetscape) {
             return window.innerWidth
            } else {
             return document.body.clientWidth
            }
         }

function bewege_um(y,ebene)
{
ebene.ypos+=y;
ebene.top=ebene.ypos;
}
function stop()
{
clearTimeout(id);
}
function scrollrunter()
 {
 if (texta.ypos<100)
 {
 bewege_um(1,texta)
 id=setTimeout("scrollrunter()",1);
 }
}
function scrollrauf()
 {
 if (texta.ypos>=-600)
 {
 bewege_um(-1,texta)
 id=setTimeout("scrollrauf()",1);
 }
}
//-->
</script>
</head>
<body onLoad="init()" bgcolor="#020D28">

<div align="right">
  <p>text</p>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="50%" class="presse" align="left" valign="top" height="472">
        <div align="left">
          <div id="name" style="position:absolute; left: 11px; top: 100px; visibility: visible;" class="name">
            <div align="left"></div>
          </div>
        </div>
      </td>
      <td width="10" valign="top" height="472">
        <div align="left">
          <p> </p>
          <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="scrollrauf();" onMouseOut="stop();"><img src="../logoleiste/sroll1.gif" border=0 width="10" height="14" vspace="5"></a></p>
   <p><a href="#" onMouseover="scrollrunter();" onMouseOut="stop();"><img src="../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>
                <p><font face="Arial, Helvetica, sans-serif" size="-1" color="#CAD8E9">Institutionen</font></p>
                <p> </p>
                </td>
              <td width="234" height="1322"> <p> </p>
                <p><font face="Arial, Helvetica, sans-serif" size="-1" color="#CAD8E9">Persone</font><font face="Arial, Helvetica, sans-serif" size="-1" color="#CAD8E9">n</font></p>
                <p> </p>
                <p><font face="Arial, Helvetica, sans-serif" size="-1" color="#CAD8E9">x</font></p>

<p> </p>
                <p> </p></td>
            </tr>
          </table>
        </div>
</td>
</table>
</div>
</BODY>
</HTML>