急啊!哪位高手帮忙解决JavaScript(asp.net c#)脚本问题!!
前台代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link href ="hr.css" rel ="stylesheet" type="text/css" />
<title>远程教学</title>
</head>
<body bgcolor="#ccffcc">
<form id="form1" runat="server">
<div>
<%-- <table align="center" style="width: 1013px"><tr align="left"><td><asp:Label ID="lbltext" runat="server" Text=""></asp:Label></td></tr></table>--%>
<table style="text-align: center; width: 1014px;" border="0" cellpadding="0" cellspacing="0" align="center">
<script language="javascript" type="text/javascript">
//设置marquee的宽度 (in pixels)
var marqueewidth=400
//设置marquee的高度 (in pixels, 该参数只适用于NS)
var marqueeheight=20
//设置marquee滚动的速度(数值大速度快)
var speed=5
//设置marquee显示内容,使用标准的HTML语法。
var marqueecontents='<strong><big>欢迎访问远程教学网!</big></strong></font>'
if (document.all)
document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee>')
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.width
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.left-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.left=marqueewidth
scrollit()
}
}
window.onload=regenerate2
</script>
<tr align="right">
<td style="width: 84px; height: 34px;background-image:url(image/01.jpg); border:0px;">
<img src="image/logo.jpg" style="height: 42px" />
</td>
<script language="javascript" type="text/javascript">
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");
document.write(
"<font color=##000000 style='font-size:9pt;font-family: 黑体'> ",
today.getYear(),"年",
today.getMonth()+1,"月",
today.getDate(),"日 ",
d[today.getDay()+1],
"</font>" );
</script>
<asp:Label ID="lbl_txt" runat="server" align="right"></asp:Label></tr>
<tr>
<td style="height: 19px; width: 1488px;" colspan="3" align="center">
<img src="image/标题.jpg" style="height: 204px; width: 1014px;" /></td>
</tr>
<tr >
<table border="0" cellpadding="0" cellspacing="0" style="width: 1002px" align="center" id="TABLE1" onclick="return TABLE1_onclick()">
<tr bgcolor="#ccffcc">
<td><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/image/02.jpg" OnClick="ImageButton1_Click" ForeColor="White" /></td>
<td style="height: 33px">
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/image/03.jpg" OnClick="ImageButton2_Click" /></td>
<td style="height: 33px">
<asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/image/04.jpg" OnClick="ImageButton3_Click" /></td>
<td style="height: 33px">
<asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/image/05.jpg" OnClick="ImageButton4_Click" /></td>
<td style="height:33px">
<asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/image/06.jpg" OnClick="ImageButton5_Click" /></td>
<td style="height: 33px; width: 96px;"><asp:ImageButton ID="ImageButton6" runat="server" ImageUrl="~/image/07.jpg" OnClick="ImageButton6_Click" /></td>
<td style="height: 33px">
<img src="image/10.jpg" /></td>
<td style="height: 33px; width: 77px;"><img src="image/11.jpg" style="width: 76px" /></td>
<td style="width: 158px; height: 33px;" >
<img src="image/08.jpg" style="width: 154px" /></td>
</tr>
</table>
<tr>
<td colspan="3" style="height: 20px" >
<table border="0" cellpadding="0" cellspacing="0" style="width: 1021px; height: 113px;" align="center" id="TABLE2" onclick="return TABLE2_onclick()">
<tr bgcolor="#ffffff">
<td align="left" colspan="4" style="height: 12px">
<img src="image/09.jpg" /> <font size="2">用户登录</font><hr style="width: 201px" /></td>
<td align="left" colspan="3" style="height: 12px; width: 100px;">
<img src="image/09.jpg" /> <font size="2">最新动态</font><hr />
</td>
<td align="left" colspan="5" style="height: 12px; width: 100px;">
<img src="image/09.jpg" /> <font size="2">优秀学员</font><hr /></td><td></td>
</tr>
<tr>
<td style="width: 43px; height: 28px; text-align: left;" align="left" >
<font size="2px"><span style="font-family: 黑体">
<asp:Label ID="lbl_UserName" runat="server" Text="用户名:" Width="46px"></asp:Label></span></font></td>
<td style=" height: 28px; width: 172px;" align="left">
<asp:TextBox ID="userName_txt" runat="server" Width="142px"></asp:TextBox>
<asp:Label ID="lblUserName" runat="server" Text="Label" Visible="False"></asp:Label></td>
<td align="left" colspan="3" rowspan="3" style="width: 24px">
</td>
<td rowspan="3" style="width: 438px">
dsagdsfgadsfgasdgdsagdsfgadsfgasdgdsagdsfgadsfgasdg</td>
</tr>
<tr>
<td style="width:43px; height: 28px; text-align: left;" align="left">
<font size="2px"><span style="font-family: 黑体">
<asp:Label ID="lblPasswd" runat="server" Text="密码:" Width="35px"></asp:Label>
</span></font></td>
<td style="height: 28px; width: 172px;">
<asp:TextBox ID="passwd_txt" runat="server" TextMode="Password" Width="141px"></asp:TextBox>
</td>
</tr>
<tr>
<td style="width: 43px; height: 28px;">
</td>
<td style="height: 28px; width: 172px;">
<asp:Button ID="btn_login" Text="登录" runat="server" OnClick="btn_login_Click" />
<asp:Button ID="btn_register" Text="注册" runat="server" OnClick="btn_register_Click" /></td>
</tr>
<tr bgcolor="#ffffff">
<td style="height: 54px; width: 43px;"></td>
<td style="height: 54px; width: 172px;"></td>
<td style="width: 5px; height: 54px"></td>
<td align="left" colspan="4" style="height: 54px;">
<img src="image/09.jpg" /> <font size="2">优秀教师</font><hr /></td>
<td style="height: 54px" colspan="6"><img src="image/09.jpg" /> <font size="2">精品课程</font><hr />
</td>
<td style="height: 54px"></td>
</tr>
<tr bgcolor="#ffff99">
<td align="center" colspan="14" style="height: 19px;width:1489px" >
<font size="2">@版权所有,翻版必究</font></td>
</tr>
</table>
</td>
</tr> </table></div>
</form>
</body>
</html>
我运行后老是出现如下问题
行:129
字符:1
错误:缺少对象
代码:0
哪位高手帮忙解决??