动态广告管理程序制作例子

2016-01-29 17:15 1 1 收藏

动态广告管理程序制作例子,动态广告管理程序制作例子

【 tulaoshi.com - ASP 】

  By Wayne Berry
This Issue
Many sites that are content specific depend on banner advertisement for revenue. Such is the case for 15
Seconds. A banner is displayed at the top of the page for every page viewed. Clients usually buy a set
number of banner impressions and these impressions are rotated amongst all the clients over a period of
time. In order to do this there must be a dynamic quality to the banners. In other words, the banner to
display is not determined until that page is requested.
With an Active Server page this is an easy task. Active Server Pages are dynamic and there are many
components that handle the task of banner rotation. A simple one comes free with the Internet Information
Server, and more complicated rotation schedules can be done with Site Server and other third party
components. This article is not about how to implement these components within your Active Server pages,
since this is a fairly easy task.

This article will describe how to implement a banner rotation scenario where the pages served are static,
i.e. .htm, and do not have the flexibility to call components. The task is to dynamically serve banners
and statically serve pages. This is the opposite of the scenario for banner rotation components, which
statically serve banners and dynamically serve pages.

One Trick
There is only one trick here and once you know it the rest is pretty straightforward. Internet Explorer
and Netscape allow you to refer to an Active Server Page within an image tag. Example 1 demonstrates the
HTML to be inserted in the static page.
Example 1 : HTML Banner Reference



< IMG src="http://img.jcwcn.com/attachment/portal"

来源:https://www.tulaoshi.com/n/20160129/1500801.html

延伸阅读
ES文件浏览器 装机必备文件管理程序 ES 文件浏览器是一个能管理手机本地、局域网共享、FTP 和蓝牙文件的管理器。通过ES 文件浏览器用户可以在本地、局域网共享、FTP 和蓝牙设备中浏览、传输、复制、剪切、删除、重命名文件和文件夹等等,还可以备份系统的已装软件。 软件功能 捷径的工具栏操作; 管理手机及区域网...
标签: Web开发
//GenerateImage.java      /* 动态产生JPEG图像的例子   */ import java.awt.*; import java.awt.image.*; import com.sun.image.codec.jpeg.*;  //编码类 java.util.*; javax.servlet.*; javax.servlet.http.*; java.io.*; class GenerateImage ext...
标签: ASP
  数组数据排序的程序例子 <% ''*** build example array to show that this thing can sort ''*** alpha-numeric arrays Dim MyArray MyArray = Array(1,5,"shawn","says","hello"2m骺噃嶤123,12,98) MyArray = Sort(MyArray) For I = 0 to Ubound(MyArray) Response.Write MyArray(I) &a...
标签: ASP
  <%@ Language=VBScript % <% '函数1: '将字符串转换成二进制 Function StoB(varstr) str2bin = "" For i = 1 To Len(varstr) varchar = Mid(varstr, i, 1) str2bin = str2bin & ChrB(AscB(varchar)) Next StoB = str2bin End Function '函数2: '将每两个字符前面加"&H"表示是十六进制,然后把&qu...

经验教程

962

收藏

38
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部