暑期繽紛巨獻之~------超級+無敵--------XML+javascript+ASP線上簡訊息功能!(4)

來源:互聯網
上載者:User
xml|線上 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+           超級+無敵--------XML+JAVASCRIPT+ASP線上簡訊息功能---介紹
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



---------下面的檔案就是發送新資訊的NEWINFORMATION.HTM頁,代碼比較長,慢慢看看-----------

<html>
<head>
<title>新資訊</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../style/style.css" type="text/css">
<link rel="stylesheet" href="../style/onlineInformation.css" type="text/css">
<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 . 資訊發送失敗.請再試一遍")
  &nb



相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.