adrotator
代码:
<%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>
结果:
相关文章
- ASP.NET Web Pages 布局
- ASP.NET Web Pages 全局文件
- ASP.NET Razor VB 变量
- ASP.NET ViewState
- ASP.NET CompareValidator 控件
- ASP.NET DropDownList 控件
- WebSecurity IsAuthenticated 属性
- WebSecurity GeneratePasswordResetToken 方法
- WebSecurity GetPasswordChangeDate 方法
- ASP.NET HTML 控件 Image
- ASP.NET HTML 控件 Label
- C# 实例 可重复使用的头部和底部
- ASP.NET Calendar Caption 属性
- ASP.NET Calendar CellSpacing 属性
- ASP.NET ImageButton ValidationGroup 属性
- ASP.NET Style CssClass 属性
- ASP.NET Table CellPadding 属性
- ASP.NET TableRow VerticalAlign 属性
- 返回行数
- 返回指定文件的属性