注册 登录
编程论坛 ASP技术论坛

用asp设计广告轮播无法显示!

zacom 发布于 2007-09-16 15:20, 873 次点击
代码为!
redirect ad_redit.asp
width 262
height 62
border 1
*
images/01.gif
http://www.hao.123.com/
hao
30
images/02.gif
http://www.baidu.com/
百度
40


主程序为:
<html>
<head>
<title>
欢迎进入我的站点
</title>
</head>
<center><h2>欢迎进入我的站点</h2></center>
<hr>
<%
set myadvertise=server.createobject("mswc.adrotator")
%>
<center>
<%
=myadvertise.getadvertisement("01.txt")
%>
</center>
</body>
</html>



显示后的结果为:
图象没显示,点连接说网站不存在.请各位帮忙
4 回复
#2
zwz70752007-09-16 19:28

问题同上,求解!

#3
madpbpl2007-09-16 22:18
banners.asp
<%
url=Request.QueryString("url")
If url<>"" then Response.Redirect(url)
%>
<html>
<body>
<%
set adrotator=Server.CreateObject("MSWC.AdRotator")
response.write(adrotator.GetAdvertisement("ads.txt"))
%>
</body>
</html>

ads.txt
REDIRECT banners.asp
*
01.gif
http://www.w3schools.com/
Visit W3Schools
80
02.gif
http://www.microsoft.com/
Visit Microsoft
20


图片01.gif、02.gif自己调整,换成你们希望的图,后面跟的网址也可以调整

参考网址
[url]http://www.w3schools.com/asp/asp_adrotator.asp[/url]
#4
zacom2007-09-16 22:20
#5
盖世豪侠2007-09-16 22:52
只有本站会员才能查看附件,请 登录



1