当前位置:编程学习 > asp >>

暑期缤纷巨献之~------超级+无敌--------XML+javascript+ASP在线短信息功能!(3)

答案:+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+           超级+无敌--------XML+javascript+ASP在线短信息功能---介绍
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



---------下面的文件就是发送新信息的NEWINFORMATION.HTM页,代码比较长,慢慢看看-----------

<html>
<head>
<title>新信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href=><link rel="stylesheet" href=><script LANGUAGE="javascript" SRC="../script/XmlCode.js"></script>
<script LANGUAGE="javascript" SRC="../script/XmlHttp.js"></script>
<script LANGUAGE="javascript" SRC="../script/Pace.js"></script>
<SCRIPT LANGUAGE=javascript>
<!--
window.focus()
var Cursor = window.opener //上一层窗口对象
Cursor.parent.document.body.onunload = Close //首页关闭,本窗口就关闭
var text
var name

function Close()
{
window.close()
}

function Init()
{
document.all["name"].focus()     
}

function FormSubmit()
{
text = document.all["text"].value
name = document.all["name"].value
     if(Pace(name))
     {
     alert("Sorry.\b收信息人的名字不能为空")
     document.all["name"].focus()
     document.all["name"].select()
     }
     else
     {
     if(Pace(text))
     {
     alert("Sorry.\b您所要发送的信息内容不能为空")
     document.all["text"].focus()
     document.all["text"].select()
     }
     else
     {
     hidden.style.zIndex = 5
     Check(Send("<农村娃娃出品-必属精品><NAME>" + code(name) + "</NAME><BODY>" + code(text) + "</BODY></农村娃娃出品-必属精品>","CreateInformation.asp"))
     }
     }
}


function Check(MissYou)
{
         if(MissYou == false)
         {
          alert("Sorry.\b找不到该名在线会员.消息未能发出.请检查你所填的名字")
          Y(false)
         }
         else
         {
            switch(parseInt(MissYou))
            {
            case 1:
            alert("Sorry.\b找不到该名在线会员.消息未能发出.请检查你所填的名字")
            Y(false)
            break;
            case 2:
            alert("Sorry.\b信息发送失败.请再试一遍")
            Y(false)
            break
            case 3:
            Y(true)
            break;
            default:
            alert("Sorry . 信息发送失败.请再试一遍")
            Y(false)
            }
       }
}

function Y(Bool)
{
   hidden.style.zIndex = 0
   if(Bool)
   {
   document.all["text"].value = ""
   document.all["text"].focus()
   }
   else
   {
   document.all["text"].value = text
   }
}
-->
</SCRIPT>
</head>

<body bgcolor="#DFDED9" text="#000000" onload="Init()">
<div id="Layer1" style="position:absolute; left:0px; top:0px; width:324px; height:214px; z-index:1">
  <table width="324" border="0" cellspacing="0" cellpadding="0" class="BB" bgcolor="#DFDED9">
    <tr>
      <td width="24">
        <div align="left" id="F"><b><font face="Verdana, Arial, Helvetica, sans-serif">TO:</font></b> </div>
      </td>
      <td width="300">  </td>
    </tr>
    <tr>
      <td colspan="2" height="176">  </td>
    </tr>
    <tr>
      <td colspan="2">
        <table width="324" border="0" cellpadding="0" cellspacing="0">
          <tr bgcolor="#DFDED9">
            <td width="81">
              <div align="center" id="Send"><a href=>            </td>
            <td width="243">
              <div align="center" id="k"> </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </tabl

上一个:暑期缤纷巨献之~------超级+无敌--------XML+javascript+ASP在线短信息功能!(2)
下一个:暑期缤纷巨献之~------超级+无敌--------XML+javascript+ASP在线短信息功能!(4)

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,