⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 07c.htm

📁 javascript94个网页特效下载
💻 HTM
字号:
<html>
<head>
<title>根据日期变换文本</title>
<meta http-equiv="目录类型" content="文本/html; 字符集=gb2312">
<style type="text/css">
<!--
a{font-style:normal;text-decoration:none;color:white}
a:hover {BACKGROUND:red;font-style:normal;text-decoration:none;color:yellow}
a:active {font-style:normal;text-decoration:none;color:yellow;}
.white {  color: #FFFFFF}
table {  font-size: 9pt}
-->
</style>
<link rel="stylesheet" href="style.css">
</head>

<body bgcolor="#009900" topmargin="0" leftmargin="0">
<form name="form">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr bgcolor="#009900"> 
      <td colspan="3" height="18">&nbsp; </td>
    </tr>
    <tr> 
      <td bgcolor="#009900" width="18"></td>
      <td align="center" bgcolor="#FFFFFF" valign="top"> <br>
        <table width="56%" border="0" cellspacing="0" cellpadding="0" height="355">
          <tr> 
            <td rowspan="2" width="16" valign="top"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0" class="white" style="FONT-SIZE: 11pt;">
                <tr bgcolor="#336699" bordercolor="#336699"> 
                  <td style="BORDER-RIGHT: double; BORDER-TOP: double;  BORDER-LEFT: double; BORDER-BOTTOM: double;" height="70"><strong><a href="07.htm">演<br>
                    <br>
                    示</a></strong></td>
                </tr>
                <tr bordercolor="#009900" bgcolor="#009900"> 
                  <td style="BORDER-RIGHT: double; BORDER-TOP: double; BORDER-LEFT: double; BORDER-BOTTOM: double" height="70"><strong><a href="07c.htm">源<br>
                    代<br>
                    码</a></strong></td>
                </tr>
              </table>
            </td>
            <td rowspan="2" width="8" bgcolor="#009900">&nbsp;</td>
            <td align="center" style="BORDER-RIGHT: double; BORDER-TOP: double; FONT-SIZE: 12pt; BORDER-LEFT: double; BORDER-BOTTOM: double" bordercolor="#009900" valign="top"> 
              <br>
              <b>根据日期变换文本</b> 
              <hr width="92%" size="1" align="center">
              <table  cellspacing="0" cellpadding="0" width="81%">
                <tr> 
                  <td height="20" colspan="2">注释:放在&lt;body&gt;与&lt;/body&gt;之间</td>
                </tr>
                <tr> 
                  <td colspan="2"> 
                    <textarea name="2" onFocus="this.select()" onMouseOver="this.focus()" cols="50" rows="15" wrap="VIRTUAL" style="BACKGROUND-COLOR: #009900;" class="pt9">&lt;script language=&quot;JavaScript&quot;&gt; 
&lt;!-- Hide
  var now = new Date();
  var month = now.getMonth() + 1;
  var date = now.getDate();
  var year = now.getYear();

        msgs = new Array
        msgs[1] = &quot;MESSAGE #1&quot;
        msgs[2] = &quot;MESSAGE #2&quot;
        msgs[3] = &quot;MESSAGE #3&quot;
        msgs[4] = &quot;MESSAGE #4&quot;
        msgs[5] = &quot;MESSAGE #5&quot;
        msgs[6] = &quot;MESSAGE #6&quot;
        msgs[7] = &quot;MESSAGE #7&quot;
        msgs[8] = &quot;MESSAGE #8&quot;
        msgs[9] = &quot;MESSAGE #9&quot;
        msgs[10] = &quot;MESSAGE #10&quot;
        msgs[11] = &quot;MESSAGE #11&quot;
        msgs[12] = &quot;MESSAGE #12&quot;
        msgs[13] = &quot;MESSAGE #13&quot;
        msgs[14] = &quot;MESSAGE #14&quot;
        msgs[15] = &quot;MESSAGE #15&quot;
        msgs[16] = &quot;MESSAGE #16&quot;
        msgs[17] = &quot;MESSAGE #17&quot;
        msgs[18] = &quot;MESSAGE #18&quot;
        msgs[19] = &quot;MESSAGE #19&quot;
        msgs[20] = &quot;MESSAGE #20&quot;
        msgs[21] = &quot;MESSAGE #21&quot;
        msgs[22] = &quot;MESSAGE #22&quot;
        msgs[23] = &quot;MESSAGE #23&quot;
        msgs[24] = &quot;MESSAGE #24&quot;
        msgs[25] = &quot;MESSAGE #25&quot;
        msgs[26] = &quot;MESSAGE #26&quot;
        msgs[27] = &quot;MESSAGE #27&quot;
        msgs[28] = &quot;MESSAGE #28&quot;
        msgs[29] = &quot;MESSAGE #29&quot;
        msgs[30] = &quot;MESSAGE #30&quot;
        msgs[31] = &quot;MESSAGE #31&quot;
        var msg = msgs[date]

//--&gt;

&lt;/script&gt;
                  &lt;script&gt;
&lt;!--
document.write(msg);
//--&gt;
&lt;/script&gt;</textarea>
                  </td>
                </tr>
                <tr> 
                  <td colspan="2">(提示:把代码中的“MESSAGE *”改为你的信息即可)</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr> 
            <td height="20" class="white" bgcolor="#009900">当前位置:<a href="../../index.htm">首 
              页</a>→<a href="../index.htm">JavaScript</a>→<a href="index.htm#7">文本特效</a>→根据日期变换文本</td>
          </tr>
        </table>
        <br>
      </td>
      <td bgcolor="#009900" width="18"></td>
    </tr>
    <tr bgcolor="#009900"> 
      <td></td>
      <td align="center" height="35"> <font color="#FFFFFF">··万旭网站工作室 设计发布·· </font></td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -