Followers

Sunday, 8 April 2012

添加访客停留时间

1.>设计-->添加小工具-->HTML JavaScipt,代码Paste进去,保存
<center><form name="myform">
<input name="clock" size="8" value="%u5728%u7EBF%u65F6%u95F4" /></form>
<script language="JavaScript">
var id, iM = 0, iS = 1;
start = new Date();
function go()
{
now = new Date();
time = (now.getTime() - start.getTime()) / 1000;
time = Math.floor( time);
iS = time % 60;
iM = Math.floor( time / 60);
if ( iS < 10)
document.myform.clock.value = " " iM " %u5206 0" iS " %u79D2 ";
else
document.myform.clock.value = " " iM " %u5206 " iS " %u79D2 ";
id = setTimeout( "go()", 1000);
}
go();
</script></center>

No comments:

English French German Spain Italian Dutch Russian Portuguese Japanese Korean Arabic Chinese Simplified