***时间日期***状态栏时间跳动
把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件要完成此效果需要两个步骤
第一步:把如下代码加入到<body>区域中
<script language="javascript">
<!--
var flasher = false
// calculate current time, determine flasher state,
// and insert time into status bar every second
function updatetime() {
var now = new date()
var thehour = now.gethours()
var themin = now.getminutes()
var thetime = "" + ((thehour > 12) ? thehour - 12 : thehour)
thetime += ((themin < 10) ? ":0" : ":") + themin
thetime += ((flasher) ? "" : " =")
thetime += (thehour >= 12) ? " 下午" : " 上午"
flasher = !flasher
window.status = thetime
// recursively call this function every second to keep timer going
timerid = settimeout("updatetime()",1000)
}
//-->
</script>
第二步:把“onload="updatetime()"”加在<body>标记里
例如:<body onload="updatetime()">
--------------------------------------
拥有三人行论坛管理系列软件,一个人就可以管理一个论坛的更新维护。还能使您的论坛有千人在线的真实火暴效果,让您不在为论坛因没有人气而留不住会员而烦恼,使您的论坛早日成为一流的论坛。详情请登陆网站:http://www.cnsrx.cn 三人行论坛管理软件,站长必备的专业好工具。(您使用的是免费版本,购买收费版本后,将不带广告。业务QQ:247216 44985227)
页:
[1]