Ad Rotator组件使用例子

from: http://asp.superexpert.com/code/code.asp?cid=88 
Tha Ad Rotator component enables you to show banner advertisements with different frequencies. This 
component has one method, GetAdvertisement(), which displays a banner advertisement on a page. 
Before you can use the Ad Rotator component, you need to create two special files: the Rotator Schedule 
File and the Redirection File. The Rotator Schedule File lists information about all the banner 
advertisements that should be shown. The Redirection File is used to record how frequently each 
advertisement is clicked.

The three files below demonstrate how to use the Ad Rotator Component. Click View Demo to see a "live" 
demonstration of this component.

Listing 1.0 - adrot.asp 
------------------------------- 
<html> 
<head><title>adrot.asp</title></head> 
<body>

<% 
Set myAd = Server.CreateObject( "MSWC.AdRotator" ) 
%> 
<center><%=myAd.GetAdvertisement( "adrot.txt" )%></center> 
<p> 
Click on the image above to visit our sponsor.

</body> 
</html> 
---------------------------------------

Listing 2.0 - adrot.txt 
--------------------------------------- 
REDIRECT /adredir.asp 
WIDTH 468 
HEIGHT 60 
BORDER 1 

kidsOrg.gif 
http://www.kidsOrg.com 
kidsOrg 
60 
volunteer.gif 
http://www.volunteer.com 
Volunteer 
40

------------------------------------------

Listing 3.0 - adredir.asp 
------------------------------------------ 
<html> 
<head><title>adredir.asp</title></head> 
<body>

<h3>This is the adredir.asp file</h3> 
Normally, you would use this file to redirect a user 
to the advertiser's home page. You can retrieve info 
about which ad the user clicked by examining the following 
query string variables:

<p><b>URL:</b> <%=Request( "url" )%> 
<p><b>IMAGE:</b> <%=Request( "image" )%>

</body> 
</html>

Ad Rotator组件使用例子相关推荐

  1. Ad Rotator 组件参考

    Ad Rotator组件创建一个Ad Rotator对象,该对象在Web页上自动轮换显示广告图像.当用户每次打开或重新加载Web页时,Ad Rotator组件将根据在Rotator Schedule文 ...

  2. 使用Ad Rotator组件的问题

    按照书上的例子,创建了两个文件 abc.asp------------ <html> <head><title>欢迎进入我的站点</title>< ...

  3. 在QT中CXDVA视频组件的例子

    在QT中CXDVA视频组件的例子 在windows 平台下,cxdva视频组件可以在Qt.MFC等等框架中嵌入视频播放画面.cxdva视频组件使用起来很简单,只用简单的的调用三四个函数就可以实现播放视 ...

  4. 使用继承思想,去开发一款组件(element-ui collapse组件为例子)

    最近在使用element-ui collapse组件的过程中,需要用collapse-item实现拖拽排序,原本组件满足不了,先看下组件的原形.(本文使用的element-ui是用1.4.2版本) 第 ...

  5. 5+API,AD广告组件

    创建全屏视频广告,,APP启动后在第一个页面调用onLoad中的代码 onLoad(){if(window.plus != undefined){// console.log('5+APP打开,走这里 ...

  6. ASP入门(十三): Ad Content Rotator

    ASP的强大不仅仅局限于接受和显示的交互,更多的是运用ActiveX 组件进行更强大的Web应用. 那究竟ActiveX组件为何物?它又是如何运作的呢?其实ActiveX Server Compone ...

  7. asp服务器组件安装包,ASP服务器组件

    <ASP服务器组件>由会员分享,可在线阅读,更多相关<ASP服务器组件(20页珍藏版)>请在人人文库网上搜索. 1.7/10/2020,1,网络开发技术,第二部分 ASP开发技 ...

  8. 互联网站规划与设计.txt

    如何建立一个网站?规划.设计.目的.原则.宣传-- 互联网站规划与设计 摘要 本文概述了互联网站的规划与设计的方法,介绍了网站设计规划的规范,及所需的关键技术,对电信系网站的构建作了系统分析,提出了总 ...

  9. 动态网站设计十八般武艺——ASP篇(十四)(转)

    最近仍有不少朋友来信问我,ASP是否只能在Microsoft IIS上运行,是否可以在非NT平台上运作?本来这个问题我已经回答过很多遍了:我只是听说过有某种可以支持的软件,却从没见过.但一些热情的朋友 ...

最新文章

  1. JDBC+Servlet+JSP整合开发之22.JSP简介
  2. linux挂载VMFS硬盘,ESX4.1挂载NFS共享存储(VMkernel)
  3. Linux进程全解9——进程状态、system函数、进程间的关系
  4. 手把手教你编写接口需求文档
  5. shell awk命令
  6. oracle12c时间,Oracle 12c-选择冒号后的日期时间字符串
  7. 【Vue2.0】—解决页面闪烁的问题(八)
  8. CCF201609-1 最大波动(100分)【序列处理】
  9. 【Luogu1048】采药
  10. 开课吧:浅析语音识别算法工程师能力要求
  11. Visual C# 2008+SQL Server 2005 数据库与网络开发-- 5.1 计算
  12. L2.三.Python注释
  13. 基于边缘计算的KNX应用
  14. 在QQ浏览器打开html,QQ浏览器显示网页打开错误的处理
  15. 用python的turtle画图_用Python中的画图工具turtle绘制八卦图
  16. Centos7.5 -Vim编辑器和恢复ext4下误删除的文件-Xmanager工具
  17. matlab 切比雪夫矩源代码,matlab实现快速切比雪夫微分
  18. 【java笔记】java中的常用容器
  19. Win7下SQLite的简单使用
  20. 计算机网络第三章——数据链路层(仅记录我所认为重要的知识点)

热门文章

  1. 飞行堡垒吃鸡重装版预售 从此放肆“吃鸡”
  2. 【Oracle 数据库】奶妈式教程 day14 转换函数
  3. php隐藏手机中间,php手机号码中间四位如何隐藏?
  4. 正交实验测试用例利器——pict
  5. SolidWorks二次开发,如何修改异形孔的沉头孔大小
  6. 将数据库数据导入Excel表格
  7. Python关键字及含义
  8. [转贴]智者的四句箴言
  9. linux中对文件进行归档,linux归档压缩命令 linux中对文件进行归档的命令为
  10. 计算机领域著名的国际会议