让自己的生命充满有趣喜悦的故事,去勇敢经历,拼搏
回归自由: 添加访客计时器

添加访客计时器



访客计时器,
很无聊的玩意儿~
我个人觉得啦~!
只是看看你逗留在某的部落格的时间而已
如果觉得你部落格空空的话不妨添加进去看看哦!

教程开始---------------------------

1.
设计-添加小工具-HTML/JavaScript

2.

Copy & Paste这个代码:

<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> 

最后保存,
就是这样而已
^^

没有评论:

发表评论

贴吧!宝贝博友们C: :