> VB语言在线手册 > 随机链接
<!DOCTYPE HTML>
<html>
<body>

<script type="text/vbscript">
ranDOMize()
r=rnd()
If r>0.5 Then
 document.write("<a href='Http://www.dba.cn'>Learn Web Development!</a>")
Else
 document.write("<a href='http://www.refsnesdata.no'>Visit Refsnes Data!</a>")
End If
</script>

<p>
This example demonstrates a link, when you click on the link it will take you to dba.cn OR to
RefsnesData.no. There is a 50% chance for each of them.
</p>
</body>
</html>
			
上一篇:
下一篇: