83、产生随机的访问数

83、产生随机的访问数

脚本说明:

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

<script>

 

function fakecounter(){

 

//decrease/increase counter value (depending on perceived popularity of your site!)

var decrease_increase=-50000

 

var counterdate=new Date()

var currenthits=counterdate.getTime().toString()

currenthits=parseInt(currenthits.substring(2,currenthits.length-4))+decrease_increase

 

document.write("你已经是第 <b>"+currenthits+"</b> 位访问本站的网友,欢迎你的光临!")

}

fakecounter()

</script>

 

Write a comment

Comments: 0