207、随机文本链接

207、随机文本链接

脚本说明:

把如下代码加入<body>区域中

<script language="JavaScript">

<!--Hide from non JavaScript browsers

an = 3

var ran = Math.random();

var talet = Math.round(ran * (an-1))+1;

function create() {

        this.src = ''

      

}

 

b = new Array()

for(var i=1; i<=an; i++) { b[i] = new create() }

 

b[1].src    = "<a href='http://www.7stk.com'>"

b[2].src    = "<a href='http://www.263.net'>"

b[3].src    = "<a href='http://www.163.com'>"

var vis = "";

vis += b[talet].src;

//-->

</script>

                  <script language="JavaScript">

<!--

document.write(vis+"随机文本链接"+"</a>");

//-->

</script>

 

Write a comment

Comments: 0