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