<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<style type="text/css">
.word {
font-family: "宋体";
font-size: 12px;
color: #000000;
}
.word2 {
font-family: "宋体";
font-size: 14px;
color: #fff;
padding-top: 15px;
vertical-align: top;
}
.STYLE1 {color: #C5D2DF}
.word3 {
font-family: "宋体";
font-size: 12px;
color: #000000;
line-height: 30px;
}
body {
margin-top: 0px;
}
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
color: #FFFFFF;
text-decoration: none;
}
a:hover {
color: #FFFFFF;
text-decoration: none;
}
a:active {
color: #FFFFFF;
text-decoration: none;
}
a.word:link {
color: #000000;
text-decoration: none;
}
a.word:visited {
color: #000000;
text-decoration: none;
}
a.word:hover {
color: #449fb4;
text-decoration: none;
}
a.word:active {
color: #449fb4;
text-decoration: none;
}
#marquees
{
overflow: hidden;
height: 160px;
margin-top: 20px;
}
#templayer
{
position: absolute;
z-index: 1;
visibility: hidden;
}
</style>
<script type="text/javascript">
<!--
var marqueeHeight = 160;
var stopScroll = false;
//var templayer=document.getElementById("templayer");
//var marquees=document.getElementById("marquees");

function initMarquee()
{
   while(templayer.offsetHeight<marqueeHeight)
   {
  templayer.innerHTML+=marquees.innerHTML;
   }
   marquees.innerHTML=templayer.innerHTML+templayer.innerHTML;
   setInterval("scrollUp()",40);
}
 
 var preTop=0;
 
 function scrollUp()
 {
if(stopScroll==true) return;
preTop=marquees.scrollTop;
   marquees.scrollTop+=1; if (preTop == marquees.scrollTop) 
{
  marquees.scrollTop = templayer.offsetHeight - marqueeHeight + 1;
}

marquees.onmouseover = function() { stopScroll = true; }
   marquees.onmouseout = function() { stopScroll = false; }
 }
-->
</script>
</head><body onload="initMarquee()">
<form id="index" runat="server">
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2" height="10"></td>
  </tr>
  <tr>
    <td colspan="2" height="10"></td>
  </tr>
  <tr>
    <td colspan="2"></td>
  </tr>
  <tr>
    <td colspan="2" height="10"></td>
  </tr>
  <tr>
    <td colspan="2"><img src="images/2.jpg" width="770" height="174" /></td>
  </tr>
  <tr>
    <td colspan="2" height="20"></td>
  </tr>
  <tr>
    <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="27%" height="282" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="22"><img src="images/3.gif" width="204" height="22" /></td>
          </tr>
          <tr>
            <td height="13"></td>
          </tr>
          <tr>
            <td height="112"><table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#eaeaea">
                <tr>
                  <td height="60" colspan="3">
                   <div id="marquees">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="3" height="15"></td>
                          </tr>
                          <tr>
                            <td width="3%"></td>
                            <td width="5%"><img src="images/ico.gif" width="6" height="5" /></td>
                            <td width="3%"></td>
                            <td width="89%" class="word"><a href="#" class="word">oooooooooooooooo</a></td>
                          </tr>
                          <tr>
                            <td colspan="3" height="10"></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td><img src="images/ico.gif" width="6" height="5" /></td>
                            <td></td>
                            <td class="word"><a href="#" class="word">iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii</a></td>
                          </tr>
                          <tr>
                            <td colspan="3" height="10"></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td><img src="images/ico.gif" width="6" height="5" /></td>
                            <td></td>
                            <td class="word"><a href="#" class="word">kkkkkkkkkkkkkkkkkk</a></td>
                          </tr>
                          <tr>
                            <td colspan="3" height="10"></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td><img src="images/ico.gif" width="6" height="5" /></td>
                            <td></td>
                            <td class="word"><a href="#" class="word">tttttttttttttttttttttt/a></td>
                          </tr>
                          <tr>
                            <td colspan="3" height="10"></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td><img src="images/ico.gif" width="6" height="5" /></td>
                            <td></td>
                            <td class="word"><a href="#" class="word">eeeeeeeeeeeeee</a></td>
                          </tr>
                          <tr>
                            <td colspan="3" height="10"></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td><img src="images/ico.gif" width="6" height="5" /></td>
                            <td></td>
                            <td class="word"><a href="#" class="word">hhhhhhhhhhhhhhhhh</a></td>
                          </tr>
                          <tr>
                            <td colspan="3" height="10"></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td><img src="images/ico.gif" width="6" height="5" /></td>
                            <td></td>
                            <td class="word"><a href="#" class="word">bbbbbbbbbbbbb</a></td>
                          </tr>
                          <tr>
                            <td colspan="3" height="10"></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td><img src="images/ico.gif" width="6" height="5" /></td>
                            <td></td>
                            <td class="word"><a href="#" class="word">wwwwwwwwwwwwwwwww</a></td>
                          </tr>
                          <tr>
                            <td colspan="3" height="10"></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td><img src="images/ico.gif" width="6" height="5" /></td>
                            <td></td>
                            <td class="word"><a href="#" class="word">ssssssssssssssssssssss</a></td>
                          </tr>
                          <tr>
                            <td colspan="3" height="10"></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td><img src="images/ico.gif" width="6" height="5" /></td>
                            <td></td>
                            <td class="word"><a href="#" class="word">ffffffffffffffffffffffffff</a></td>
                          </tr>
                          <tr>
                            <td colspan="3" height="10"></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td><img src="images/ico.gif" width="6" height="5" /></td>
                            <td></td>
                            <td class="word"><a href="#" class="word">nnnnnnnnnnnnn</a></td>
                          </tr>
                          <tr>
                            <td colspan="3" height="15"></td>
                          </tr>
                        </table>
                    </div>
                    <div id="templayer"></div>
                  </td>
                </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="2%"></td>
        <td width="71%" valign="top">
          </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="51" colspan="2"></td>
  </tr>
  <tr>
    <td height="17" colspan="2" background="images/7.jpg"></td>
  </tr>
  <tr>
    <td height="50" colspan="2" class="word"> <div align="center">Copyright &copy;1998 - 2003  泰蓝网络 版权所有 Allrights Reserved </div></td>
  </tr>
</table>
</form>
</body>
</html>文字为什么不滚动?总是报templayer is not defined
[Break on this error]  while(templayer.offsetHeight<marqueeHeight)
index.html (第 83 行)
请高人指点