html如何调用引用asp?

html如何调用引用asp?,第1张

<!--#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>")


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/8177921.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-14
下一篇 2023-04-14

发表评论

登录后才能评论

评论列表(0条)

保存