案例:ASP/ADO案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
<html>
3
<body>
4
5
<p><b>注释:</b>如果服务器未安装 ASP 3.0,则本例无法运行。</p>
6
7
<p>
8
<a href="/example/aspe/textads.asp">查看 textads.txt</a>
9
</p>
10
11
<%
12
set cr=server.createobject("MSWC.ContentRotator")
13
response.write(cr.ChooseContent("/example/aspe/textads.txt"))
14
%>
15
16
<p>
17
<b>注释:</b>由于文本文件中的内容字符串是随机改变的,
18
同时本页只有四条内容可供选择,
19
因此,有时页面会连续显示两次相同的内容。
20
</p>
21
22
</body>
23
</html>
24