olute;visibility:visible;font-family:Verdana;color:FFAAAAA;font-size:20px;top:10px;left:152px">'+thistime+'</div>') document.bgclocknoshade.document.write('<div id="bgclocknoshade" style="position:absolute;visibility:visible;font-family:Verdana;color:DDDDDD;font-size:20px;top:8px;left:150px">'+thistime+'</div>') document.close() } var timer=setTimeout("www_helpor_net()",200) } www_helpor_net(); //--> </script>
20、全中文日期显示 说明: 年月日都是用全中文显示 代码: <script language="JavaScript"> <!-- function number(index1){ var numberstring="一二三四五六七八九十"; if(index1 ==0) {document.write("十")} if(index1 < 10){ document.write(numberstring.substring(0+(index1-1),index1))} else if(index1 < 20 ){ document.write("十"+numberstring.substring(0+(index1-11),(index1-10)))} else if(index1 < 30 ){ document.write("二十"+numberstring.substring(0+(index1-21),(index1-20)))} else{ document.write("三十"+numberstring.substring(0+(index1-31),(index1-30)))} }
var today1 = new Date() var month = today1.getMonth()+1 var date = today1.getDate() var day = today1.getDay()
document.write("公元二零零三年") number(month) document.write("月") number(date) document.write("日") //--> </script>
21、打字效果 说明: 文字在状态栏上从左往右一个一个地显示,就象你打出的字一样 代码: <script language="JavaScript"> var msg = "欢迎光临,请多提意见。谢谢! " ; var interval = 120 var spacelen = 120; var space10=" "; var seq=0; function Helpor_net() { len = msg.length; window.status = msg.substring(0, seq+1); seq++; if ( seq >= len ) { seq = 0; window.status = ''; window.setTimeout("Helpor_ne << 上一页 [21] [22] [23] [24] [25] [26] [27] 下一页 (中华企业文化网)
|