标题:关于asp的菜鸟问题,高手请指教
只看楼主
znhmm
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2005-10-26
得分:0 

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>无标题文档</title> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; } --> </style> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; }

function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }

function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; }

function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> </head>

<body onLoad="MM_preloadImages('image/news.gif','image/yanggou.gif','image/yiliao.gif','image/liangzhao.gif','image/tiantang.gif','image/shangcheng.gif','image/bbs.gif','image/shouye.gif')"> <form action="" method="post" name="form1" target="_top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="image/logo.gif" width="1000" height="110"></td> </tr> <tr> <td><img src="image/fengelan.gif" width="1000" height="6"></td> </tr> <tr> <td><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="13%"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('shouye','','image/shouye.gif',1)"><img src="image/shouye01.gif" name="shouye" width="125" height="20" border="0"></a></td> <td width="13%"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('news','','image/news.gif',1)"><img src="image/news01.gif" name="news" width="125" height="20" border="0"></a></td> <td width="13%"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('yanggou','','image/yanggou.gif',1)"><img src="image/yanggou01.gif" name="yanggou" width="125" height="20" border="0"></a></td> <td width="13%"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('yiliao','','image/yiliao.gif',1)"><img src="image/yiliao01.gif" name="yiliao" width="125" height="20" border="0"></a></td> <td width="13%"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('liangzhao','','image/liangzhao.gif',1)"><img src="image/liangzhao01.gif" name="liangzhao" width="125" height="20" border="0"></a></td> <td width="13%"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('tiangtang','','image/tiantang.gif',1)"><img src="image/tiantang01.gif" name="tiangtang" width="125" height="20" border="0"></a><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('shangcheng','','image/shangcheng.gif',1)"><img src="image/shangcheng01.gif" name="shangcheng" width="125" height="20" border="0"></a></td> <td width="13%"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('bbs','','image/bbs.gif',1)"><img src="image/bbs01.gif" name="bbs" width="125" height="20" border="0"></a></td> <td width="9%">&nbsp;</td> </tr> </table> </td> </tr> <tr> <td><img src="image/fengelan01.gif" width="1000" height="3"></td> </tr> </table> </form> 这是header的代码 <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <!--#include file="header.asp"--> <title></title> <body> </body> </html> 这是default.asp的代码 <!--#include file="header.asp"-->的颜色是黑,紫,绿 我晕了!

2005-10-26 10:48
znhmm
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2005-10-26
得分:0 

无法显示网页

试图访问的网页出现问题,无法显示。

请尝试执行下列操作:

  • 单击刷新按钮,或稍后重试。
  • 打开
    <SCRIPT>
                
    </script>
    localhost 主页,然后查找与所需信息相关的链接。

HTTP 错误 500.100 - 内部服务器错误 - ASP 错误 Internet 信息服务


技术信息(用于支持人员)

  • 错误类型: Active Server Pages, ASP 0141 (0x80004005) @ 命令只能在 Active Server Page 中使用一次。 /citydog/header.asp, 第 1 行
  • 浏览器类型: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon)

  • 网页: GET /citydog/default.asp

  • 时间: 2005年10月26日, 10:49:05

  • 详细信息: Microsoft 支持

这是ie给出的信息
2005-10-26 10:49
islet
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:89
帖 子:6548
专家分:0
注 册:2005-1-28
得分:0 
把<!--#include file="header.asp"--> 里面的<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>去掉
2005-10-26 11:04
fcnh1983
Rank: 1
等 级:新手上路
帖 子:665
专家分:0
注 册:2005-8-31
得分:0 
把header里面的 <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 这些多删掉试试

^^多谢赐教!!无以为报只好以身相许!!!^^谢谢,不用谢,要谢的,多说不用了^^如果真的要谢,那就嫁给我吧,好啊^^
2005-10-26 11:34
znhmm
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2005-10-26
得分:0 
已经搞定,谢谢了,以后有不会的还要问你啊
2005-10-26 12:27



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




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

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