案例:ASP/ADO/VBScript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
4
<script type="text/vbscript">
5
randomize()
6
r=rnd()
7
if r>0.5 then
8
 document.write("<a href='//www.w3xue.com'>学习 web 开发!</a>")
9
else
10
 document.write("<a href='http://www.microsoft.com'>访问微软!</a>")
11
end if
12
</script>
13
14
<p>
15
本例演示一个链接,该链接的地址是 W3xue.com 或者 microsoft.com。几率各占 50%。
16
</p>
17
</body>
18
</html>
19