App下载

demo_randomlink 在线工具

demo_randomlink 在线工具

<html>
<body>

<FONT COLOR=#ff0000><%
randomize()
r=rnd()
if r>0.5 then
&nbsp; response.write("<a href='http://youj.com'>W3Cschool.cn!</a>")
else
&nbsp; response.write("<a href='http://www.refsnesdata.no'>Refsnesdata.no!</a>")
end if
%></FONT>

<p>
This example demonstrates a link, each time you load the page, it will display 
one of two links: W3Cschool.cn! OR Refsnesdata.no! There is a 50% chance for 
each of them.
</p>

</body>
</html>
运行结果