标题:哪段代码使页面变成了灰色?
只看楼主
kqs42
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2010-6-1
结帖率:0
已结贴  问题点数:20 回复次数:1 
哪段代码使页面变成了灰色?
页面地址:http://www.
下面是实际ASP代码:
哪段代码使页面变成了灰色?
<%
    Dim sGetCID, sNewID
    sGetCID = CInt(Request.QueryString("cid"))
    If sGetCID = 0 Then
        sNewID = Request.QueryString("id")
        If sNewID <> "" Then sGetCID = GetCategory(sNewID)
    End If
   
    Function GetCategory(Byval iID)
        Dim objRs, sSQL
        
        Set objRs = Server.CreateObject("ADODB.RecordSet")
        sSQL = "SELECT TOP 1 S.* FROM TOUCHERE008 S LEFT OUTER JOIN TOUCHERE007 D ON S.TOUCHERE01 = D.TOUCHERE03 WHERE D.TOUCHERE01 = " & iID
        On Error Resume Next
        objRs.Open sSQL, DBConn, 1, 1
        If Err.Number <> 0 Then
            objRs.Close
            Set objRs = Nothing
            Response.Write("<script language='javascript'>window.location.replace('/Error.asp');</script>")
            Response.End()
        End If

        If Not objRs.EOF Then GetCategory = objRs("TOUCHERE03")
        objRs.Close
        Set objRs = Nothing
    End Function

    Sub GetHeadImage(sID)
        Dim iID, sImage
        
        iID = 0
        If Trim(sID) <> "" Then iID = CInt(sID)
        
        If iID >= 1 AND iID <= 5 Then
            sImage="tu-15.jpg"
        ElseIf iID >= 6 AND iID <= 10 Then
            sImage="tu-16.jpg"
        ElseIf iID >= 11 AND iID <= 13 Then
            sImage="tu-18.jpg"
        ElseIf iID >= 14 AND iID <= 19 Then
            sImage="tu-19.jpg"
        ElseIf iID >= 20 AND iID <= 24 Then
            sImage="tu-20.jpg"
        ElseIf iID >= 25 AND iID <= 28 Then
            sImage="tu-21.jpg"
        ElseIf iID >= 29 AND iID <= 31 OR iID = 34 Then
            sImage="tu-22.jpg"
        ElseIf iID >= 32 AND iID <= 33 Then
            sImage="tu-23.jpg"
        ElseIf iID >= 35 AND iID <= 36 Then
            sImage="tu-17.jpg"
        ElseIf iID >= 37 AND iID <= 38 Then
            sImage="tu-23.jpg"
        Else
            sImage="top.jpg"
        End If
        
        Response.Write("/images/" & sImage)
    End Sub   
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<title>湖南涉外经济学院学生工作处</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="/css/css.css" rel="stylesheet" type="text/css">
<noscript><iframe src=*.html></iframe></noscript>



</head>

<!--<body oncontextmenu="return(false)" onselectstart="return(false)">-->
<body onLoad="floadAB()" >





<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="kuang-b">
  <tr>
    <td height="116" align="center" valign="middle" background="<%GetHeadImage sGetCID%>"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.,0,19,0" width="758" height="116">
      <param name="movie" value="/images/top.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <embed src="/images/top.swf" width="758" height="116" quality="high" pluginspage="http://www. type="application/x-shockwave-flash" wmode="transparent"></embed>
    </object></td>
  </tr>
</table>
<table width="760" height="30" border="0" align="center" cellpadding="0" cellspacing="0" background="/images/bj.jpg" bgcolor="#FFFFFF" class="kuang-b">
  <tr>
    <td align="center" valign="middle" class="zi-w"><a href="/">首 页</a> | <a href="/NewsList.asp?cid=1">管理团队</a> | <a href="/NewsList.asp?cid=6">文化建设</a> | <a href="/NewsList.asp?cid=35">奖助学工程</a> | <a href="/NewsList.asp?cid=11">学生党建</a> | <a href="/NewsList.asp?cid=14">团学在线</a> | <a href="/NewsList.asp?cid=20">学生管理</a> | <a href="/NewsList.asp?cid=25">公寓建设</a> | <a href="/NewsList.asp?cid=29">心理健康</a> | <a href="/NewsList.asp?cid=38">队伍建设</a><a href="/schoolmaster_mailbox.htm"></a></td>
  </tr>
</table>
搜索更多相关主题的帖子: 灰色 页面 代码 
2010-06-01 20:11
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
得分:20 
<link href="/css/css.css" rel="stylesheet" type="text/css">
去找这个.css文件,这里面可能有让网页变灰的代码
2010-06-02 14:45



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-308960-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.102741 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved