通过js先获取系统日期,然后再作判断,最后显示对应的提示信息,根据自己的需求来自定义提示信息。
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin var msg = new Array(); Stamp = new Date(); today = Stamp.getDate(); //武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) msg[1] = "1号的消息"; msg[2] = "2号的消息"; msg[3] = "3号的消息"; msg[4] = "4号的消息"; msg[5] = "5号的消息"; msg[6] = "6号的消息"; msg[7] = "7号的消息"; msg[8] = "8号的消息"; msg[9] = "9号的消息"; msg[10] = "10号的消息"; msg[11] = "11号的消息"; msg[12] = "12号的消息"; msg[13] = "13号的消息"; msg[14] = "14号的消息"; msg[15] = "15号的消息"; msg[16] = "16号的消息"; msg[17] = "17号的消息"; msg[18] = "18号的消息"; msg[19] = "19号的消息"; msg[20] = "20号的消息"; msg[21] = "21号的消息"; msg[22] = "22号的消息"; msg[23] = "23号的消息"; msg[24] = "24号的消息"; msg[25] = "25号的消息"; msg[26] = "26号的消息"; msg[27] = "27号的消息"; msg[28] = "28号的消息"; msg[29] = "29号的消息"; msg[30] = "30号的消息"; msg[31] = "31号的消息"; function writeTip() { document.write(msg[today]); } // End --> </script> <a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr> <!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。--> <script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script> <script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script> <script> writeTip(); </script>
本文来自武鸣人网站,转载请注明出处