当前位置: 首页 > 图文教程 > 网络编程 > 编程10000问 > 如何在网站中插播广告?

编程10000问
ASP问答集
asp中在JScript中使用RecordSet对象的GetRows
oblog_4.6_SQL 语句

编程10000问 中的 如何在网站中插播广告?


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-10   浏览: 24 ::
收藏到网摘: n/a

如何在网站中插播广告?

首先,我们要写一个adrot.txt以调用:

adrot.txt

redirect

width 550

height 60

border 0

*

images/chunfengad.gif

http://www.shenzhaoyang.com

欢迎访问闪亮日子之精彩春风!

50

' 显示百分比

images/intelsad.gif

http://www.intels.net

欢迎访问随风起舞!

50

然后,在要显示广告条的页面里添加下列源代码,调用adrot.txt

<%Set MyAd=Server.CreateObject("MSWC.AdRotator")%>

<%=MyAd.GetAdverTisement("adrot.txt") %>

[1]