演
示
源
代
码
根据日期变换文本
注释:放在<body>与</body>之间
<script language="JavaScript"> <!-- Hide var now = new Date(); var month = now.getMonth() + 1; var date = now.getDate(); var year = now.getYear(); msgs = new Array msgs[1] = "MESSAGE #1" msgs[2] = "MESSAGE #2" msgs[3] = "MESSAGE #3" msgs[4] = "MESSAGE #4" msgs[5] = "MESSAGE #5" msgs[6] = "MESSAGE #6" msgs[7] = "MESSAGE #7" msgs[8] = "MESSAGE #8" msgs[9] = "MESSAGE #9" msgs[10] = "MESSAGE #10" msgs[11] = "MESSAGE #11" msgs[12] = "MESSAGE #12" msgs[13] = "MESSAGE #13" msgs[14] = "MESSAGE #14" msgs[15] = "MESSAGE #15" msgs[16] = "MESSAGE #16" msgs[17] = "MESSAGE #17" msgs[18] = "MESSAGE #18" msgs[19] = "MESSAGE #19" msgs[20] = "MESSAGE #20" msgs[21] = "MESSAGE #21" msgs[22] = "MESSAGE #22" msgs[23] = "MESSAGE #23" msgs[24] = "MESSAGE #24" msgs[25] = "MESSAGE #25" msgs[26] = "MESSAGE #26" msgs[27] = "MESSAGE #27" msgs[28] = "MESSAGE #28" msgs[29] = "MESSAGE #29" msgs[30] = "MESSAGE #30" msgs[31] = "MESSAGE #31" var msg = msgs[date] //--> </script> <script> <!-- document.write(msg); //--> </script>
(提示:把代码中的“MESSAGE *”改为你的信息即可)
当前位置:
首 页
→
JavaScript
→
文本特效
→根据日期变换文本
··瓷都工作室 特别提供 万旭网站 特别支持 ··