Follow me :)
LIKE me ♥
follow me on Twitter
2011年4月30日星期六
访客计时器
想要的去Design-->Add a Gadget-->HTML/JavaScrip
<form name="myform">
<td valign="top" width="135">
<input value="在线时间" name="clock" size="8"/></td>
</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 + " 分 0" + iS + " 秒 ";
else
document.myform.clock.value = " " + iM + " 分 " + iS + " 秒 ";
id = setTimeout( "go()", 1000);
}
go();
</script>
订阅:
博文评论
(
Atom
)
why the code cnnt save geh?:(
回复删除refresh.....
回复删除y cannot copy de=[[
回复删除click ctrl+c
回复删除可以更改颜色吗?
回复删除