注册 登录
编程论坛 ASP技术论坛

网页有错误,麻烦大大们帮我看看

skvitamin 发布于 2010-10-30 22:16, 371 次点击
只有本站会员才能查看附件,请 登录

程序代码:
<html>
<head>
<title><%=SystemWebSite%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="generator" content="<%=SystemSearchKey%>">
<meta name=keywords content="<%=SystemSearchKey%>">
<link rel="stylesheet" href="admin/style.css" type="text/css">
<link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="lightbox/js/prototype.js"></script>
<script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="lightbox/js/lightbox.js"></script>
<style type="text/css">
<!--
#apDiv1
{
    position
:absolute;
    left
:910px;
    top
:321px;
    width
:228px;
    height
:26px;
    z-index
:0;
}
#apDiv2
{
    position
:absolute;
    width
:200px;
    height
:32px;
    z-index
:1;
    left
: 871px;
    top
: 161px;
}
#apDiv3
{
    position
:absolute;
    width
:200px;
    height
:115px;
    z-index
:1;
    left
: 844px;
    top
: 280px;
}
#apDiv4
{
    position
:absolute;
    width
:200px;
    height
:115px;
    z-index
:2;
    left
: 904px;
    top
: 146px;
}
.STYLE4
{color: #FFFFFF}
-->
</style>
<BODY>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="images/baner.jpg" width="760" height="100"></td>
  </tr>
</table>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
  <TBODY>
    <TR>
      <TD height="30" bgcolor="669966"><MARQUEE onmouseover=this.stop() onmouseout=this.start()
            
scrollAmount=2
            
scrollDelay=5>
<%
set rsa=server.createobject("adodb.recordset")
sql
="select top "&ggshu&" afficheid,affichename,affichecontent,affichetime from affiche order by afficheid DESC"
rsa.open sql,conn,
1,1
do while not rsa.eof
%>
        <img src="images/d.gif" width="19" height="18" border="0" /><a href="#" onClick="Affiche('ViewAffiche.asp?id=<%=rsa("afficheid")%>')" alt="点击查看公告详细内容">
          <%if len(rsa("affichename"))>60 then
response.write
left(rsa("affichename"),60)&"..."
else
response.write rsa(
"affichename")
end if%>
        </a> [<%=year(rsa("affichetime"))%>-<%=month(rsa("affichetime"))%>-<%=day(rsa("affichetime"))%>]
        <%
   rsa.movenext
   
loop
   
if rsa.eof and rsa.bof then
   response.write
"暂时没有公告发布!"
   
end if
   rsa.close
   
set rsa=nothing
   
%>
      </MARQUEE></TD>
    </TR>
  </TBODY>
</TABLE>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr bgcolor="#D50000">
    <td height="24" width="1%" bgcolor="003300"  align="center"></td>
    <td width="30%" bgcolor="003300"><a href="day.htm" target="_blank"><font color="#ffffff"><b>
      <script language="JavaScript" src="js/date.js" type="text/javascript"></script>
      <script>document.write(+nian)</script>
      年
      <script>document.write(+yue)</script>
      月
      <script>document.write(+ri)</script>
      日&nbsp;星期
      <script>document.write(""+week)</script>
    </b></font></a></td>
    <td height="25"  align="right" bgcolor="003300"><strong> <font color="#FFFFFF">&nbsp;|&nbsp;<a href="index.asp" ><font color="#FFFFFF">报修列表</font></a>&nbsp;|&nbsp;</font><a href="baoxiu.asp" class="style1" >报修登记</a><font color="#FFFFFF">&nbsp;|&nbsp;<a href="logout.asp"><font color="#FFFFFF">注销登录</font></a></font></strong></td>
    <td width="1%"  align="right" bgcolor="003300">&nbsp;</td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#666666">
  <tr>
    <td bgcolor="#FFFFFF"><table border="0" cellpadding="0" cellspacing="0" rules="cols" width="100%" align="center" height="25">
      <tr bgcolor="#FFFFFF">
        <td width="69%" height="25" ><span class="style1"><strong>
          <%if rs_user("purview")=1 then%>
          管理员
          <%else%>
          报修用户
          <%end if%>
          <%=session("baoxiuuser_name")%>
          <%response.write":您好,请把你要申报内容填写清楚!"%>
        </strong></span></td>
        <td width="31%" height="25" bgcolor="#FFFFFF" class="content9"><p align="right"><a href="admin/index.asp" target="_parent">&gt;&gt;后台管理&lt;&lt;</a></p></td>
      </tr>
    </table></td>
  </tr>
</table>
1 回复
#2
yms1232010-10-30 23:03
这个错误是javascript的错误,要先从javascript开始检查错误。
1