当前位置:中国新华电脑网校实例教程DW实例 → 随日期变换的文本

随日期变换的文本

减小字体 增大字体 作者:佚名  来源:转载  发布时间:2008-11-24 10:23:38

<html>
<head>
<title>Ajax中国网页特效演示,随日期变换的文本</title>
<style type="text/css">
<!--
body {  font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 4px; margin-right: 0px}
A { FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none }
--></style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

</head>
<body>

 


<center><font color=red face="隶书" size=6>随日期变换文本</center>


<center>
<table border=1 bordercolor=#000000 borderlight=green style="border-collapse: collapse" cellpadding="0" cellspacing="0">
<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>下面为脚本显示区</strong></td></tr><tr><td align=center><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] = "每月1号的信息:"
        msgs[2] = "每月2号的信息:"
        msgs[3] = "每月3号的信息:"
        msgs[4] = "每月4号的信息:"
        msgs[5] = "每月5号的信息:"
        msgs[6] = "每月6号的信息:"
        msgs[7] = "每月7号的信息:"
        msgs[8] = "每月8号的信息:"
        msgs[9] = "每月9号的信息:"
        msgs[10] = "每月10号的信息:"
        msgs[11] = "每月11号的信息:"
        msgs[12] = "每月12号的信息:"
        msgs[13] = "每月13号的信息:"
        msgs[14] = "每月14号的信息:"
        msgs[15] = "每月15号的信息:"
        msgs[16] = "每月16号的信息:"
        msgs[17] = "每月17号的信息:"
        msgs[18] = "每月18号的信息:"
        msgs[19] = "每月19号的信息:"
        msgs[20] = "每月20号的信息:"
        msgs[21] = "每月21号的信息:"
        msgs[22] = "每月22号的信息:"
        msgs[23] = "每月23号的信息:"
        msgs[24] = "每月24号的信息:"
        msgs[25] = "每月25号的信息:"
        msgs[26] = "每月26号的信息:"
        msgs[27] = "每月27号的信息:"
        msgs[28] = "每月28号的信息:"
        msgs[29] = "每月29号的信息:"
        msgs[30] = "每月30号的信息:"
        msgs[31] = "每月31号的信息:"
        var msg = msgs[date]

//-->

</script>
                  <script>
<!--
document.write(msg);
//-->
</script>
 </td></tr></table></center>


<center>
 <SCRIPT LANGUAGE="JavaScript">

<!-- hide

function goHist(a)

{

   history.go(a);

}

//-->

</script></center>

</body>
</html>