var dateObj = new Date() var lmonth = months[dateObj.getMonth() + 1] var date = dateObj.getDate() document.write("<br>" +"今天是:"+ lmonth + date+"日") //done hiding --> </SCRIPT>
midi音乐随机出(有播放器)
以下内容为程序代码:
<script> <!-- var nummidi = 6 day = new Date() seed = day.getTime() ran = parseInt(((seed - (parseInt(seed/1000,10) * 1000))/10)/100*nummidi + 1,10) if (ran == (1)) midi=("http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/H/1.mid";) if (ran == (2)) midi=("http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/H/2.mid";) if (ran == (3)) midi=("http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/H/3.mid";) if (ran == (4)) midi=("http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/H/4.mid";) if (ran == (5)) midi=("http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/H/5.mid";) if (ran == (6)) midi=("http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/H/6.mid";) document.write('<EMBED SRC= "' + midi + '" volume=100 controls=smallconsole loop=true HSPACE=3 WIDTH=48 HEIGHT=26 AUTOSTART=TRUE>') // --> </script>