<!--#include file="index_down.asp"-- 把html文余纤件的后缀该成.asp的。2个页面在一个目录下面。 <!--#include file="inc/conn.asp"-- 把asp文件放在inc文件夹下 <!--#include file="inc/function.asp"--
为了保持网站的整体风格的统一,页面的尾部调用一个asp文件.由于页面是.html的,所以不能用<!--#include file=""--的方式做. 于是就用了调用的方法.
.html中调用的代码 <script type="肢薯text/javascript"src="bottom.asp"</script bottom.asp中的代码 document.write("<link href='css.css' rel='stylesheet' type='text/css' /")document.write ("<table height='50' width='1024' background='images/bq.jpg' align='center' class='tt'<tr<td align='center' valign='middle'历毁者")
htm文件中调用asp的方法有两种:方法一:
1、郑行<!--#include file="index_down.asp"--> 把html文件的后缀该成.asp的。2个页面在一个目录下面。
2、<!--#include file="inc/conn.asp"-->把asp文件放在inc文件夹下
3、<!--#include file="inc/function.asp"-->
方法二:
1、迟竖为了保持网站的整体风格的统一,页面的尾部调用一个asp文件.由于页面是.html的,所以不能用<!--#include file=""-->的方式做.于是就用了调用的码丛大方法.
2、.html中调用的代码
<script type="text/javascript"src="bottom.asp"></script>
3、bottom.asp中的代码
document.write("<link href='css.css' rel='stylesheet' type='text/css' />")
document.write ("<table height='50' width='1024' background='images/bq.jpg' align='center' class='tt'><tr><td align='center' valign='middle'>")
document.write ("版权所有:<a href='http://www.zt315.cn'>技术支持</a>")
document.write ("</td></tr></table>")
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)