怎么自动调用top.asp和bottom.asp?

asp520 2005-07-26 02:01:57
怎么让打开的每一页网页都能自动加上top.asp和bottom.asp.请大家帮忙,谢谢!!!
...全文
116 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
blackland8157 2005-07-26
  • 打赏
  • 举报
回复
在ASP配置文件里面加就行了
aspme 2005-07-26
  • 打赏
  • 举报
回复
如果你的摸版里面没有
<body>
</body>
那就在top.asp里面加
<body>
在bottom.asp里面加
</body>
antiking 2005-07-26
  • 打赏
  • 举报
回复
<head>
<META content="文本/html; 字符集=gb2312" http-equiv=目录类型><LINK href="../../images/site.css" rel=stylesheet>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
</head>
<body>
<!--#include file="top.asp"-->
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=719>
<TBODY>
<TR align=middle vAlign=center>
<TD bgColor=#4397c5 height=21>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD bgColor=#ffffff colSpan=8 height=4 style="BORDER-RIGHT: #cde4f0 1px solid; BORDER-TOP: #cde4f0 1px solid">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD align=middle vAlign=center width="96%"><FONTCOLOR="#FF0000">
</FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR vAlign=top>
<TD height=100>
<TABLE bgColor=#4397c5 border=0 cellPadding=0 cellSpacing=1 width="100%">
<TBODY>
<TR>
<TD bgColor=#ffffff height=238 rowSpan=6 style="WORD-BREAK: break-all" vAlign=top width="77%">
<DIV align=center><FONT size=3><BR>[title]</FONT>
<HR SIZE=1>
[url] 日期:[date] 来源:[source] 作者:[author] 阅读次数:[click]</DIV><BR>[content]<BR><BR>
<DIV align=right><B>责任编辑:[editer]</B> </DIV>
<DIV align=center>
<TABLE bgColor=#c0c0c0 border=0 cellPadding=0 cellSpacing=1 height=2 width="98%">
<TBODY>
<TR>
<TD bgColor=#ffffff colSpan=2 height=20><FONT color=blue size=2><B>相 关</B></FONT></TD></TR>
<TR>
<TD bgColor=#ffffff colSpan=2>[correlation]</TD></TR></TBODY></TABLE></DIV></TD>
<TD align=right background=../../images/bg03.gif vAlign=top width="23%">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD bgColor=#ffffff style="BORDER-BOTTOM: #4397c5 1px solid; BORDER-TOP: #4397c5 1px solid"><B><FONT size=2>资料搜索</FONT></B> </TD></TR>
<TR align=middle vAlign=top>
<TD height="100%"><BR>[search] </TD></TR>
<TR>
<TD bgColor=#ffffff style="BORDER-BOTTOM: #4397c5 1px solid; BORDER-TOP: #4397c5 1px solid"><B><FONT size=2>推 荐</FONT></B> </TD></TR>
<TR vAlign=top>
<TD height="100%">[recommend] </TD></TR>
<TR>
<TD bgColor=#ffffff style="BORDER-BOTTOM: #4397c5 1px solid; BORDER-TOP: #4397c5 1px solid"><B><FONT size=2>热 点</FONT></B> </TD></TR>
<TR vAlign=top>
<TD height="100%">[hot] </TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE></TD></TR>
<!--#include file="bottom.asp"-->
</body>
asp520 2005-07-26
  • 打赏
  • 举报
回复
就是这块模板,怎么加啊?

<head>
<META content="文本/html; 字符集=gb2312" http-equiv=目录类型><LINK href="../../images/site.css" rel=stylesheet>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
</head>

<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=719>
<TBODY>
<TR align=middle vAlign=center>
<TD bgColor=#4397c5 height=21>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD bgColor=#ffffff colSpan=8 height=4 style="BORDER-RIGHT: #cde4f0 1px solid; BORDER-TOP: #cde4f0 1px solid">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD align=middle vAlign=center width="96%"><FONTCOLOR="#FF0000">
</FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR vAlign=top>
<TD height=100>
<TABLE bgColor=#4397c5 border=0 cellPadding=0 cellSpacing=1 width="100%">
<TBODY>
<TR>
<TD bgColor=#ffffff height=238 rowSpan=6 style="WORD-BREAK: break-all" vAlign=top width="77%">
<DIV align=center><FONT size=3><BR>[title]</FONT>
<HR SIZE=1>
[url] 日期:[date] 来源:[source] 作者:[author] 阅读次数:[click]</DIV><BR>[content]<BR><BR>
<DIV align=right><B>责任编辑:[editer]</B> </DIV>
<DIV align=center>
<TABLE bgColor=#c0c0c0 border=0 cellPadding=0 cellSpacing=1 height=2 width="98%">
<TBODY>
<TR>
<TD bgColor=#ffffff colSpan=2 height=20><FONT color=blue size=2><B>相 关</B></FONT></TD></TR>
<TR>
<TD bgColor=#ffffff colSpan=2>[correlation]</TD></TR></TBODY></TABLE></DIV></TD>
<TD align=right background=../../images/bg03.gif vAlign=top width="23%">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD bgColor=#ffffff style="BORDER-BOTTOM: #4397c5 1px solid; BORDER-TOP: #4397c5 1px solid"><B><FONT size=2>资料搜索</FONT></B> </TD></TR>
<TR align=middle vAlign=top>
<TD height="100%"><BR>[search] </TD></TR>
<TR>
<TD bgColor=#ffffff style="BORDER-BOTTOM: #4397c5 1px solid; BORDER-TOP: #4397c5 1px solid"><B><FONT size=2>推 荐</FONT></B> </TD></TR>
<TR vAlign=top>
<TD height="100%">[recommend] </TD></TR>
<TR>
<TD bgColor=#ffffff style="BORDER-BOTTOM: #4397c5 1px solid; BORDER-TOP: #4397c5 1px solid"><B><FONT size=2>热 点</FONT></B> </TD></TR>
<TR vAlign=top>
<TD height="100%">[hot] </TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE></TD></TR>
大猫钓鱼 2005-07-26
  • 打赏
  • 举报
回复
top.asp和bottom.asp里不加<html></html>、<head></head>试试。
大猫钓鱼 2005-07-26
  • 打赏
  • 举报
回复
<!--#include file="top.asp"-->
放在<body>下面
<!--#include file="bottom.asp"-->
放在</body>上面
asp520 2005-07-26
  • 打赏
  • 举报
回复
直接include加到模板里,就是显示不出来.不知道为什么?
aspme 2005-07-26
  • 打赏
  • 举报
回复
是要统一的top和统一的bottom吗?
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF">
<!--#include file="top.asp"-->------这里
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td></td>
</tr>
</table>
<!--#include file="bottom.htm"-->---------这里
</body>
</html>
1111111 2005-07-26
  • 打赏
  • 举报
回复
<!--#include file="top.asp"-->
<!--#include file="bottom.asp"-->

???
themedy 2005-07-26
  • 打赏
  • 举报
回复
不太明白意思
你做的时候include不行吗

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧