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

📄 03c.htm

📁 javascript94个网页特效下载
💻 HTM
字号:
<html>
<head>
<title>Email信息发送</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="03.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="03c.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"> 
              <script language="JavaScript">
<!--hide

function view(form){
msg=open("","DisplayWindow","status=1,left=0,top=0,height=320,width=790,");msg.document.write(form.code2.value);
}
function CodeOut(form){
var     
txt1="<html><title>效果演示</title><head></head><body onblur=window.close() onmouseover=javascript:close()>";
txt=""+form.a.value+""+form.b.value+""+form.c.value+"";
txt2="</body></html>";
	
form.Code.value=txt;
form.code2.value=txt1 + txt + txt2;
}

<!-->
</script>
              <input type="hidden" name="code2">
              <div id="Layer1" style="position:absolute; width:207px; height:173px; z-index:1; visibility: hidden"> 
                <textarea name="a" cols="40" rows="0" wrap="VIRTUAL">&lt;script language=&quot;JavaScript&quot;&gt;
&lt;!--
function validate_form() {
  validity = true;
  if (!check_empty(document.form.NAME.value))
        { validity = false; alert('对不起!请你填入你的姓名。'); }
  if (!check_email(document.form.EMAIL.value))
        { validity = false; alert('对不起!请重新正确填入Email地址。'); }
  if (!check_empty(document.form.DESCRIPTION.value))
        { validity = false; alert('对不起!请你在&quot;简要描述&quot;留言填入留言。'); }
  if (validity)
        alert (&quot;                      谢谢你的来信.                                  &quot;
                + &quot;              你所填的信息将以Email形式发送给我,                      &quot;
                + &quot;              假如你认为本站内容不错的话,请将本                       &quot;
                + &quot;              介绍给你的朋友,希望大家经常光顾本站。&quot;);
  return validity; 
}

function check_empty(text) {
  return (text.length &gt; 0); 
}

function check_email(address) {
  if ((address == &quot;&quot;)
    || (address.indexOf ('@') == -1)
    || (address.indexOf ('.') == -1))
      return false;
  return true;
}

// --&gt;
&lt;/script&gt;
&lt;form name=&quot;form&quot; method=&quot;post&quot; action=&quot;mailto:</textarea>
                <textarea name="c" cols="40" rows="0" wrap="VIRTUAL">?SUBJECT=网友的留言&quot;
enctype=&quot;text/plain&quot; onSubmit=&quot;return validate_form()&quot;&gt;
              &lt;table width=&quot;90%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
                &lt;tr&gt; 
                  &lt;td width=&quot;77%&quot;&gt; 
                    &lt;div align=&quot;left&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b&gt;姓名:&lt;/b&gt;&lt;/font&gt; 
                      &lt;input type=&quot;text&quot; size=46 name=&quot;NAME&quot;&gt;
                      &lt;br&gt;
                      &lt;b&gt;&lt;font size=&quot;3&quot;&gt;Email地址: &lt;/font&gt;&lt;/b&gt; 
                      &lt;input type=&quot;text&quot; size=46 name=&quot;EMAIL&quot;&gt;
                      &lt;br&gt;
                      &lt;b&gt;&lt;font size=&quot;3&quot;&gt;URL地址: &lt;/font&gt;&lt;/b&gt; 
                      &lt;input type=&quot;text&quot; size=46 name=&quot;URL&quot; value=&quot;http://&quot;&gt;
                      &lt;br&gt;
                      &lt;b&gt;&lt;font size=&quot;3&quot;&gt;留言内容:&lt;/font&gt;&lt;/b&gt;&lt;br&gt;
                      &lt;textarea name=&quot;DESCRIPTION&quot; rows=8 cols=45 wrap=virtual&gt;&lt;/textarea&gt;
                    &lt;/div&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt; 
                  &lt;td&gt; 
                    &lt;div align=&quot;center&quot;&gt;&lt;br&gt;
                      &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;发送&quot;&gt;
                      &lt;input type=&quot;reset&quot; value=&quot;清除&quot; name=&quot;reset&quot;&gt;
                    &lt;/div&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
              &lt;/table&gt;
              &lt;/form&gt;</textarea>
              </div>
              <br>
              <b>Email信息发送</b> 
              <hr width="92%" size="1" align="center">
              <table  cellspacing="0" cellpadding="0" width="81%">
                <tr> 
                  <td colspan="2" height="30">Email发送地址: 
                    <input type=text name="b" onFocus="this.select()" onMouseOver="this.focus()" class="pt9" size="35">
                  </td>
                </tr>
                <tr> 
                  <td colspan="2" align="center" height="30"> 
                    <input type="button" value="产生代码" onClick="CodeOut(this.form);" name="button">
                    <input type="button" value="效果演示" onClick="view(this.form);" name="button2">
                  </td>
                </tr>
                <tr> 
                  <td height="25" colspan="2">注释:放在&lt;body&gt;与&lt;/body&gt;之间</td>
                </tr>
                <tr> 
                  <td colspan="2"> 
                    <textarea name="Code" onFocus="this.select()" onMouseOver="this.focus()" cols="50" wrap="VIRTUAL" style="BACKGROUND-COLOR: #009900;" class="pt9" rows="12"></textarea>
                  </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#3">实用JST</a>→Email信息发送</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 + -