每日显示不同网页的代码

来源:互联网   编辑:思良  发表时间:2015-07-10  关注度:1236  

JS实现网页每日显示不同内容

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>JS实现网页每日显示不同内容 - >
 </head>
<body>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
dayName = new Array ("星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六")
monName = new Array ("一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月")
now = new Date
Jan = new Array
Jan[1] = "Place quote here"
Jan[2] = "Place quote here"
Jan[3] = "Place quote here"
Jan[4] = "Place quote here"
Jan[5] = "Place quote here"
Jan[6] = "Place quote here"
Jan[7] = "Place quote here"
Jan[8] = "Place quote here"
Jan[9] = "Place quote here"
Jan[10] = "Place quote here"
Jan[11] = "Place quote here"
Jan[12] = "Place quote here"
Jan[13] = "Place quote here"
Jan[14] = "Place quote here"
Jan[15] = "Place quote here"
Jan[16] = "Place quote here"
Jan[17] = "Place quote here"
Jan[18] = "Place quote here"
Jan[19] = "Place quote here"
Jan[20] = "Place quote here"
Jan[21] = "Place quote here"
Jan[22] = "Place quote here"
Jan[23] = "Place quote here"
Jan[24] = "Place quote here"
Jan[25] = "Place quote here"
Jan[26] = "Place quote here"
Jan[27] = "Place quote here"
Jan[28] = "Place quote here"
Jan[29] = "Place quote here"
Jan[30] = "Place quote here"
Jan[31] = "Place quote here"
Feb = new Array
Feb[1] = "Place quote here"
Feb[2] = "Place quote here"
Feb[3] = "Place quote here"
Feb[4] = "Place quote here"
Feb[5] = "Place quote here"
Feb[6] = "Place quote here"
Feb[7] = "Place quote here"
Feb[8] = "Place quote here"
Feb[9] = "Place quote here"
Feb[10] = "Place quote here"
Feb[11] = "Place quote here"
Feb[12] = "Place quote here"
Feb[13] = "Place quote here"
Feb[14] = "Place quote here"
Feb[15] = "Place quote here"
Feb[16] = "Place quote here"
Feb[17] = "Place quote here"
Feb[18] = "Place quote here"
Feb[19] = "Place quote here"
Feb[20] = "Place quote here"
Feb[21] = "Place quote here"
Feb[22] = "Place quote here"
Feb[23] = "Place quote here"
Feb[24] = "Place quote here"
Feb[25] = "Place quote here"
Feb[26] = "Place quote here"
Feb[27] = "Place quote here"
Feb[28] = "Place quote here"
Feb[29] = "Place quote here"
Mar = new Array
Mar[1] = "Place quote here"
Mar[2] = "Place quote here"
Mar[3] = "Place quote here"
Mar[4] = "Place quote here"
Mar[5] = "Place quote here"
Mar[6] = "Place quote here"
Mar[7] = "Place quote here"
Mar[8] = "Place quote here"
Mar[9] = "Place quote here"
Mar[10] = "Place quote here"
Mar[11] = "Place quote here"
Mar[12] = "Place quote here"
Mar[13] = "Place quote here"
Mar[14] = "Place quote here"
Mar[15] = "Place quote here"
Mar[16] = "Place quote here"
Mar[17] = "Place quote here"
Mar[18] = "Place quote here"
Mar[19] = "Place quote here"
Mar[20] = "Place quote here"
Mar[21] = "Place quote here"
Mar[22] = "Place quote here"
Mar[23] = "Place quote here"
Mar[24] = "Place quote here"
Mar[25] = "Place quote here"
Mar[26] = "Place quote here"
Mar[27] = "Place quote here"
Mar[28] = "Place quote here"
Mar[29] = "Place quote here"
Mar[30] = "Place quote here"
Mar[31] = "Place quote here"
Apr = new Array
Apr[1] = "Place quote here"
Apr[2] = "Place quote here"
Apr[3] = "Place quote here"
Apr[4] = "Place quote here"
Apr[5] = "Place quote here"
Apr[6] = "Place quote here"
Apr[7] = "Place quote here"
Apr[8] = "Place quote here"
Apr[9] = "Place quote here"
Apr[10] = "Place quote here"
Apr[11] = "Place quote here"
Apr[12] = "Place quote here"
Apr[13] = "Place quote here"
Apr[14] = "Place quote here"
Apr[15] = "Place quote here"
Apr[16] = "Place quote here"
Apr[17] = "Place quote here"
Apr[18] = "Place quote here"
Apr[19] = "Place quote here"
Apr[20] = "Place quote here"
Apr[21] = "Place quote here"
Apr[22] = "Place quote here"
Apr[23] = "Place quote here"
Apr[24] = "Place quote here"
Apr[25] = "Place quote here"
Apr[26] = "Place quote here"
Apr[27] = "Place quote here"
Apr[28] = "Place quote here"
Apr[29] = "Place quote here"
Apr[30] = "Place quote here"
May = new Array
May[1] = "Place quote here"
May[2] = "Place quote here"
May[3] = "Place quote here"
May[4] = "Place quote here"
May[5] = "Place quote here"
May[6] = "Place quote here"
May[7] = "Place quote here"
May[8] = "Place quote here"
May[9] = "Place quote here"
May[10] = "Place quote here"
May[11] = "Place quote here"
May[12] = "Place quote here"
May[13] = "Place quote here"
May[14] = "Place quote here"
May[15] = "Place quote here"
May[16] = "Place quote here"
May[17] = "Place quote here"
May[18] = "Place quote here"
May[19] = "Place quote here"
May[20] = "Place quote here"
May[21] = "Place quote here"
May[22] = "Place quote here"
May[23] = "Place quote here"
May[24] = "Place quote here"
May[25] = "Place quote here"
May[26] = "Place quote here"
May[27] = "Place quote here"
May[28] = "Place quote here"
May[29] = "Place quote here"
May[30] = "Place quote here"
May[31] = "Place quote here"
Jun = new Array
Jun[1] = "Place quote here"
Jun[2] = "Place quote here"
Jun[3] = "Place quote here"
Jun[4] = "Place quote here"
Jun[5] = "Place quote here"
Jun[6] = "Place quote here"
Jun[7] = "Place quote here"
Jun[8] = "Place quote here"
Jun[9] = "Place quote here"
Jun[10] = "Place quote here"
Jun[11] = "Place quote here"
Jun[12] = "Place quote here"
Jun[13] = "Place quote here"
Jun[14] = "Place quote here"
Jun[15] = "Place quote here"
Jun[16] = "Place quote here"
Jun[17] = "Place quote here"
Jun[18] = "Place quote here"
Jun[19] = "Place quote here"
Jun[20] = "Place quote here"
Jun[21] = "Place quote here"
Jun[22] = "Place quote here"
Jun[23] = "Place quote here"
Jun[24] = "Place quote here"
Jun[25] = "Place quote here"
Jun[26] = "Place quote here"
Jun[27] = "Place quote here"
Jun[28] = "Place quote here"
Jun[29] = "Place quote here"
Jun[30] = "Place quote here"
Jul = new Array
Jul[1] = "Place quote here"
Jul[2] = "Place quote here"
Jul[3] = "Place quote here"
Jul[4] = "Place quote here"
Jul[5] = "Place quote here"
Jul[6] = "Place quote here"
Jul[7] = "Place quote here"
Jul[8] = "Place quote here"
Jul[9] = "Place quote here"
Jul[10] = "Place quote here"
Jul[11] = "Place quote here"
Jul[12] = "Place quote here"
Jul[13] = "Place quote here"
Jul[14] = "Place quote here"
Jul[15] = "Place quote here"
Jul[16] = "Place quote here"
Jul[17] = "Place quote here"
Jul[18] = "Place quote here"
Jul[19] = "Place quote here"
Jul[20] = "Place quote here"
Jul[21] = "Place quote here"
Jul[22] = "Place quote here"
Jul[23] = "Place quote here"
Jul[24] = "Place quote here"
Jul[25] = "Place quote here"
Jul[26] = "Place quote here"
Jul[27] = "Place quote here"
Jul[28] = "Place quote here"
Jul[29] = "Place quote here"
Jul[30] = "Place quote here"
Jul[31] = "Place quote here"
Aug = new Array
Aug[1] = "Place quote here"
Aug[2] = "Place quote here"
Aug[3] = "Place quote here"
Aug[4] = "Place quote here"
Aug[5] = "Place quote here"
Aug[6] = "Place quote here"
Aug[7] = "Place quote here"
Aug[8] = "Place quote here"
Aug[9] = "Place quote here"
Aug[10] = "Place quote here"
Aug[11] = "Place quote here"
Aug[12] = "Place quote here"
Aug[13] = "Place quote here"
Aug[14] = "Place quote here"
Aug[15] = "Place quote here"
Aug[16] = "Place quote here"
Aug[17] = "Place quote here"
Aug[18] = "Place quote here"
Aug[19] = "Place quote here"
Aug[20] = "Place quote here"
Aug[21] = "Place quote here"
Aug[22] = "Place quote here"
Aug[23] = "Place quote here"
Aug[24] = "Place quote here"
Aug[25] = "Place quote here"
Aug[27] = "Place quote here"
Aug[28] = "Place quote here"
Aug[29] = "Place quote here"
Aug[30] = "Place quote here"
Aug[31] = "Place quote here"
Sep = new Array
Sep[1] = "Place quote here"
Sep[2] = "Place quote here"
Sep[3] = "Place quote here"
Sep[4] = "Place quote here"
Sep[5] = "Place quote here"
Sep[6] = "Place quote here"
Sep[7] = "Place quote here"
Sep[8] = "Place quote here"
Sep[9] = "Place quote here"
Sep[10] = "Place quote here"
Sep[11] = "Place quote here"
Sep[12] = "Place quote here"
Sep[13] = "Place quote here"
Sep[14] = "Place quote here"
Sep[15] = "Place quote here"
Sep[16] = "Place quote here"
Sep[17] = "Place quote here"
Sep[18] = "Place quote here"
Sep[19] = "Place quote here"
Sep[20] = "Place quote here"
Sep[21] = "Place quote here"
Sep[22] = "Place quote here"
Sep[23] = "Place quote here"
Sep[24] = "Place quote here"
Sep[25] = "Place quote here"
Sep[26] = "Place quote here"
Sep[27] = "Place quote here"
Sep[28] = "Place quote here"
Sep[29] = "Place quote here"
Sep[30] = "Place quote here"
Oct = new Array
Oct[1] = "Place quote here"
Oct[2] = "Place quote here"
Oct[3] = "Place quote here"
Oct[4] = "Place quote here"
Oct[5] = "Place quote here"
Oct[6] = "Place quote here"
Oct[7] = "Place quote here"
Oct[8] = "Place quote here"
Oct[9] = "Place quote here"
Oct[10] = "Place quote here"
Oct[11] = "Place quote here"
Oct[12] = "Place quote here"
Oct[13] = "Place quote here"
Oct[14] = "Place quote here"
Oct[15] = "Place quote here"
Oct[16] = "Place quote here"
Oct[17] = "Place quote here"
Oct[18] = "Place quote here"
Oct[19] = "Place quote here"
Oct[20] = "Place quote here"
Oct[21] = "Place quote here"
Oct[22] = "Place quote here"
Oct[23] = "Place quote here"
Oct[24] = "Place quote here"
Oct[25] = "Place quote here"
Oct[26] = "Place quote here"
Oct[27] = "Place quote here"
Oct[28] = "Place quote here"
Oct[29] = "Place quote here"
Oct[30] = "Place quote here"
Oct[31] = "Place quote here"
Nov = new Array
Nov[1] = "Place quote here"
Nov[2] = "Place quote here"
Nov[3] = "Place quote here"
Nov[4] = "Place quote here"
Nov[5] = "Place quote here"
Nov[6] = "Place quote here"
Nov[7] = "Place quote here"
Nov[8] = "Place quote here"
Nov[9] = "Place quote here"
Nov[10] = "Place quote here"
Nov[11] = "Place quote here"
Nov[12] = "Place quote here"
Nov[13] = "Place quote here"
Nov[14] = "Place quote here"
Nov[15] = "Place quote here"
Nov[16] = "Place quote here"
Nov[17] = "Place quote here"
Nov[18] = "Place quote here"
Nov[19] = "Place quote here"
Nov[20] = "Place quote here"
Nov[21] = "今天是21号,今天没有什么重要消息"
Nov[22] = "Place quote here"
Nov[23] = "Place quote here"
Nov[24] = "Place quote here"
Nov[25] = "Place quote here"
Nov[26] = "Place quote here"
Nov[27] = "Place quote here"
Nov[28] = "Place quote here"
Nov[29] = "Place quote here"
Nov[30] = "Place quote here"
Dec = new Array
Dec[1] = "本月1日的话"
Dec[2] = "本月2日的话"
Dec[3] = "本月3日的话"
Dec[4] = "本月4日的话"
Dec[5] = "本月5日的话"
Dec[6] = "本月6日的话"
Dec[7] = "本月7日的话"
Dec[8] = "本月8日的话"
Dec[9] = "本月9日的话"
Dec[10] = "本月10日的话"
Dec[11] = "本月11日的话"
Dec[12] = "本月12日的话"
Dec[13] = "本月13日的话"
Dec[14] = "本月14日的话"
Dec[15] = "本月15日的话"
Dec[16] = "本月16日的话"
Dec[17] = "本月17日的话"
Dec[18] = "本月18日的话"
Dec[19] = "本月19日的话"
Dec[20] = "本月20日的话"
Dec[21] = "本月21日的话"
Dec[22] = "本月22日的话"
Dec[23] = "本月23日的话"
Dec[24] = "本月24日的话"
Dec[25] = "本月25日的话"
Dec[26] = "本月26日的话e"
Dec[27] = "本月27日的话"
Dec[28] = "本月28日的话"
Dec[29] = "本月29日的话"
Dec[30] = "本月30日的话"
Dec[31] = "本月31日的话e"
// End -->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
document.write("<Font color=#333366>")
document.write("<center><B><I>" + dayName[now.getDay()] + ", " + monName[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear() + ".</I></B></center><BR>" )
document.write("<Font size=5>")
if (now.getMonth() == 0) document.write("<center><i>" + Jan[now.getDate()] + "</i></center>")
if (now.getMonth() == 1) document.write("<center><i>" + Feb[now.getDate()] + "</i></center>")
if (now.getMonth() == 2) document.write("<center><i>" + Mar[now.getDate()] + "</i></center>")
if (now.getMonth() == 3) document.write("<center><i>" + Apr[now.getDate()] + "</i></center>")
if (now.getMonth() == 4) document.write("<center><i>" + May[now.getDate()] + "</i></center>")
if (now.getMonth() == 5) document.write("<center><i>" + Jun[now.getDate()] + "</i></center>")
if (now.getMonth() == 6) document.write("<center><i>" + Jul[now.getDate()] + "</i></center>")
if (now.getMonth() == 7) document.write("<center><i>" + Aug[now.getDate()] + "</i></center>")
if (now.getMonth() == 8) document.write("<center><i>" + Sep[now.getDate()] + "</i></center>")
if (now.getMonth() == 9) document.write("<center><i>" + Oct[now.getDate()] + "</i></center>")
if (now.getMonth() == 10) document.write("<center><i>" + Nov[now.getDate()] + "</i></center>")
if (now.getMonth() == 11) document.write("<center><i>" + Dec[now.getDate()] + "</i></center>")
document.write("</Font>")
document.write("<P align=center><B><I></I></B></P>")
document.write("</Font>")
// End -->
</script>

<br />

</body>
</html>


原文:http://www.webdm.cn/webcode/b08928b3-2b31-4ed3-b2a9-b02cd5990879.html

    支付宝扫码领红包,不用多说,用过的人都知道,双赢的,你得红包,我得到同等推广红包,比如你扫到1元,我也得1元,大家得到的红包可以去实体店消费!新用户至少10元以上哦,每天都有!希望大家每天来本站扫码!感谢感谢!

    把打赏改成扫码红包了!支持本站就扫码下!


下一篇:一星期根据日期(每天)显示不同的图片代码


上一篇:根据不同的节日变换图片或LOGO的特效代码


小提示:按 回车[Enter]键 返回,按 ←键 返回上一页, 按 →键 进入下一页。

网友评论(0条评论)

选择头像
     

新闻评论(共有 0 条评论)

手机访问

本站APP

联系我

加我微信