日期:2013-06-10  浏览次数:20862 次

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+           超级+无敌--------XML+JAVASCRIPT+ASP在线短信息功能---介绍
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


------下面这个文件就是查看信息的GetInformation.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>
<!--上面加载了一个Code函数,用来替换回复的信息里的特殊字符-->
<script LANGUAGE="Javascript" SRC="../script/XmlHttp.js"></script>
<!--上面加载了一个XMLHTTP函数,是发送信息/取回发送返回值的函数-->
<script LANGUAGE="Javascript" SRC="../script/Pace.js"></script>
<!--上面加载了一个PACE函数,用来检查回复信息时,回复的内容是否为空,是就返回TRUE-->
<SCRIPT LANGUAGE=Javascript>
<!--
window.focus()

var Cursor = window.opener //上一层窗口对象
var NN = false
Cursor.parent.document.body.onunload = Close //首页关闭,本窗口就关闭,因为本窗口需要取得上层窗口的信息

if(Cursor.XmlDom.documentElement.childNodes.length == 0)
{
window.location = "NewInformation.htm" //如果用户按下刷新(F5),会导致数据无法取得并显示,转向发送新信息页面
NN = true
}
else
{
var XmlDom = Cursor.XmlDom.documentElement.childNodes.item(Cursor.Count-1)
var Name = XmlDom.attributes.getNamedItem("NAME").nodeValue
var Date = XmlDom.attributes.getNamedItem("DATE").nodeValue
var NodeText = XmlDom.text
var MissYou = XmlDom.attributes.getNamedItem("ID").nodeValue
}

function Close()
{
window.close()
}

function Init()
{
      if(NN)
      {
      return
      }
      
Format(Name,Date,NodeText)
        
if(Cursor.Count == Cursor.XmlDom_Length)
  {
  Cursor.ReMove()
  }
       
}

function Format(To,Dates,Text)
{
document.all["to"].innerHTML = To
document.all["dates"].innerHTML = Dates
document.all["text"].value = Text
}


function eChangTextArea(Bool)
{
var A3;
var A2;
var A4;
var A5;
var A6;
var A7
     if(Bool == true)
     {
     A2 = "#ffffff"
     A3 = "#aaa697 1px solid "
     A4 = ""
     document.all["text"].value = A4
     A5 = "<a href=\"javascript:FormSubmit()\">发送</a>"
     A6 = "<a href=\"javascript:eChangTextArea(false)\">原始信息</a>"
     A7 = "#DFDED9"
     document.all["text"].disabled = false
     document.all["text"].focus()
     }
     else
     {
     A2 = "#EBEAE7"
     A3 = ""
     A5 = "<a href=\"javascript:eChangTextArea(true)\">回复</a>&quo