Ad Rotator组件 小问题?

sweird 2008-09-25 07:10:29
为什么我点图片的时候链接是:http://localhost:8080/banners.asp?url=http://www.baidu.com/&image=123.jpg
而不能直接进入:www.baidu.com?
谢谢

banner.asp
<%
url=Request.QueryString("url")
If url<>"" then Response.Redirect(url)
%>
<html>
<body>
<%
set ad=Server.CreateObject("MSWC.AdRotator")
ad.targetframe="target='_new'"/*新窗口中打开*/
response.write(ad.GetAdvertisement("ads.txt"))
%>

/*ads.txt*/
REDIRECT banners.asp
*
123.jpg
http://www.baidu.com/
百度
50
456.jpg
http://www.microsoft.com/
微软
50
...全文
72 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
无爱大叔 2008-09-25
  • 打赏
  • 举报
回复
url=server.urldecode("http://www.baidu.com/&image=123.jpg")
Response.Redirect(url)

28,391

社区成员

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

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