在配置文件中存储广告链接信息,每次读取一段广告。
Set rr = Server.CreateObject("MSWC.Adrotator") |
属性/方法 | 意义 |
---|---|
GetAdvertisement(content-schedule-path) | 从虚拟路径文件读取一段内容返回 |
redirect /iishelp/iis/htm/tutorial/redirect.asp width 180 height 180 border 1 * /iishelp/iis/htm/tutorial/nyc.JPG http://www.microsoft.com Big Deals in the Big Apple 35 /iishelp/iis/htm/tutorial/natpark.JPG http://www.microsoft.com National Parks Online Reservations 25 /iishelp/iis/htm/tutorial/rock.JPG http://www.microsoft.com World Wide Importers 15 /iishelp/iis/htm/tutorial/nzealand.JPG http://www.microsoft.com New Zealand Scenic Tours 25 |
属性/方法 | 意义 |
---|---|
redirect | 一般用于统计点击次数,应包含重定向语句: response.redirect (request.QueryString("url")) |
width | 图象宽度,图像内 Width= |
height | 图像高度,图像内 Height= |
border | 图像边框,图像内 Border= |
第一行 | 图像地址,如有重定向,传递参数 IMAGE=图像地址 |
第二行 | 链接地址,如有重定向,传递参数 URL=链接地址 |
第三行 | 说明文字,图像内 ALT=说明文字 |
第四行 | 显示相对概率 |
Set Ad = Server.CreateObject("MSWC.Adrotator") Response.Write Ad.GetAdvertisement("/iishelp/iis/htm/tutorial/adrot.txt") Set Ad = Nothing |