webForumDet fria alternativet

Newsticker i IE men inte i NS.. varför?

0 svar · 160 visningar · startad av clearvolume

clearvolumeMedlem sedan apr. 200328 inlägg
#1

Har ett problem.. denna scroll funkar i IE men inte i NS.. hur kommer det sig? Den rullar alltså inte alls i NS.

echo"<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">";
echo"<html>   ";
echo"	<head>";
echo"		<title>[Newsticker]</title>";
echo"			<link rel=stylesheet href=\"css/sheet.css\" type=\"text/css\">";
echo"                 <SCRIPT LANGUAGE='JavaScript'>

                      topedge = 3;
                      leftedge = 7;
                      boxheight = 197;
                      boxwidth = 110;
                      scrollheight = 400;

                      function scrollnews(cliptop) {
                      if (document.layers) {
                      newsDiv = document.news;
                      newsDiv.clip.top = cliptop;
                      newsDiv.clip.bottom = cliptop + boxheight;
                      newsDiv.clip.left = 0;
                      newsDiv.clip.right = boxwidth + leftedge;
                      newsDiv.left = leftedge;
                      newsDiv.top = topedge - cliptop;
                      }
                      else {
                      newsDiv = news.style;
                      newsDiv.clip = 'rect(' + cliptop + 'px ' + (boxwidth + leftedge) + 'px ' + (cliptop + boxheight) + 'px 0px)';
                      newsDiv.pixelLeft = leftedge;
                      newsDiv.pixelTop = topedge - cliptop;
                      }
                      cliptop = (cliptop + 1) % (scrollheight + boxheight);
                      newsDiv.visibility='visible';
                      setTimeout('scrollnews(' + cliptop + ')', 150);
                      }
                      
                      </script>";
echo"	</head> ";
echo"	<body  OnLoad='scrollnews(0)'> ";

echo"		<table cellpadding=0 cellspacing=0 border=0 width='100%' height='100%' class=rightframe> ";
echo"			<tr>";
echo"              <td valign=top><div class=newsruta>";
echo" <div ID='news' style='position:absolute; visibility:hidden;top:1; left:7; height:200;clip:rect(10,100,100,10);'>
             <table border=0 cellpadding=1 cellspacing=0>
                    <tr>
                        <td height=100 class=txt align=center>NEWSTICKER</td>
                    </tr>
                    <tr>
                        <td align=center>";

                        $meddl = mysql_query("SELECT * FROM senastenytt ORDER BY senastedate DESC");
                        while($grad=mysql_fetch_array($meddl))
                        {
echo"                   <div class=newsdate>$grad[senastedate]<br></div class=newsdate>";
echo"                   <div class=news>$grad[senastemeddl]<br><br></div class=news>";
                        }

echo"                   </td>
                    </tr>
                    <tr>
                        <td height=100>&nbsp;</td>
                    </tr>
             </table>
         </div>";
echo"</div class=newsruta></td>
                    </tr>
             </table>";
echo"	</body>";
echo"</html> ";
}
?>

...kan nån?

128 ms totalt · 3 externa anrop · v20260731065814-full.fb544a5a
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
124 ms — hämta tråd, inlägg och bilagor (db)