htm文件中如何调用asp?
来源:百度知道 编辑:UC知道 时间:2024/05/03 07:32:32
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='htm文件中如何调用asp?
如何在htm中调用txt文件?急!急!急!
如何在html中调用asp文件
htm调用ASP页面
如何在asp文件中调用html文件
PHP中调用ASP文件
htm网页中如何调用另一个htm网页的一部分?
asp.net中如何调用父目录的文件
asp 如何调用远程文件
如何做ASP调用文件