广告轮放器不成功,怎么回事?

callgs 2004-01-13 06:07:38
AdRotator.txt,所有图片和htm文件与asp文件放在一个目录下
-------------------------------------------------------------
Redirect AdRotator.asp
Width 256
Height 183
Border 1
*
Adimage/1.jpg
1.htm
Win2000 server user annual- color
1
Adimage/2.jpg
2.htm
Win2000 Server Administrator annual - color
2
Adimage/3.jpg
3.htm
Win2000 Server Enterprise annual - color
3
-------------------------------------------------------------
ch06_04.asp
--------------------------------------------------------------
<body>
<Center>
<h1>Program Example for AdRotator</h1>
<hr>
<%
'create AdRotator Object
Set AdRotator = Server.CreateObject("MSWC.AdRotator")
'Get the AD's image size ,position,link and Show Text etc
response.write AdRotator.GetAdvertisement("AdRotator.txt")
%>
<hr>
You can press the image to link to the responed htm File,<BR>
or Press<font size = 5 color = blue>[Settle Again]</font> button to watch the AD. image's change
</Center>
</body>
...全文
41 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wifi2018 2004-01-15
  • 打赏
  • 举报
回复
你在同一级文件夹中加入这样一个adredir.asp 文件,它的代码如下:
<% response.redirect (request.querystring("url")) %>
Adrotator.txt 文件改为Redirect adredir.asp
Width 256
Height 183
Border 1
*
Adimage/1.jpg
1.htm
Win2000 server user annual- color
1
Adimage/2.jpg
2.htm
Win2000 Server Administrator annual - color
2
Adimage/3.jpg
3.htm
Win2000 Server Enterprise annual - color
3

就可以了!
callgs 2004-01-13
  • 打赏
  • 举报
回复
我把土图片放在"ADimage"下,那些htm文件放在"Adimage"的上一级目录里,跟ASP文件同目录,图片可以显示出来,但是“说明文字”显示不出来,链接"htm"文件也不成功。
wifi2018 2004-01-13
  • 打赏
  • 举报
回复
可能是你的路径搞错了,你既然说图片和文件都在一个目录下,那为何出现Adimage/1.jpg
callgs 2004-01-13
  • 打赏
  • 举报
回复
图片大小都是256X183

28,407

社区成员

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

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