簡(jiǎn)單的AdRotator實(shí)例
代碼:
<%url=Request.QueryString("url")
If url<>"" then Response.Redirect(url)
%>
<!DOCTYPE html>
<html>
<body>
<%
set adrotator=Server.CreateObject("MSWC.AdRotator")
adrotator.TargetFrame="target='_blank'"
response.write(adrotator.GetAdvertisement("text/advertisements.txt"))
%>
<p>
NOTE: Because images are changed randomly, and because this page has few images to choose from, it will
often display the same advertisement twice in a row.
</p>
<p>NOTE: The AdRotator does not work with Internet Information Server 7 (IIS7).</p>
<p>
<a href="text/advertisements.txt">
<img src="/images/btn_view_text.gif"></a>
</p>
</body>
</html>
相關(guān)文章
- 初學(xué)js者對(duì)javascript面向?qū)ο蟮恼J(rèn)識(shí)分析
- JavaScript面向?qū)ο蟮膬煞N書(shū)寫(xiě)方法以及差別
- ASP實(shí)現(xiàn)緩存類(lèi)無(wú)錯(cuò)版
- 結(jié)合FSO操作和Aspjpeg組件寫(xiě)的Class
- ASP中類(lèi)Class相關(guān)內(nèi)容的整理資料
- ASP數(shù)據(jù)島操作類(lèi)
- 把無(wú)限級(jí)分類(lèi)生成數(shù)組
- 文章內(nèi)頁(yè)類(lèi)
- newasp中main類(lèi)
- 檢測(cè)函數(shù) asp class
- CacheCls緩存的應(yīng)用
- ASP中一個(gè)字符串處理類(lèi)
- 葉子asp分頁(yè)類(lèi)
- Object對(duì)象的一些的隱藏函數(shù)介紹
- 文件、目錄,文本文件等多種操作類(lèi)
- ASP中一個(gè)用VBScript寫(xiě)的隨機(jī)數(shù)類(lèi)
- ASP代碼的對(duì)象化
- 一個(gè)ACCESS數(shù)據(jù)庫(kù)訪(fǎng)問(wèn)的類(lèi)第1/3頁(yè)
- 表單集合的簡(jiǎn)單應(yīng)用
- 返回SessionID