Summer Fun Huge offer ~------Super + Invincible--------xml+javascript+asp online short message Function! (2)

Source: Internet
Author: User
Tags date format bool count
xml| Online +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+ Super + Invincible--------xml+javascript+asp online Short Message Function---Introduction
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


------The following file is the getinformation.htm file to view the information, and the code is longer. Take a look at it slowly---------------

<title> Reply Information </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>
<!--a code function is loaded to replace the special characters in the reply message-->
<script language= "Javascript" src= ". /script/xmlhttp.js "></script>
<!--a XMLHTTP function is loaded to send a message/Retrieve a function that sends the return value-->
<script language= "Javascript" src= ". /script/pace.js "></script>
<!--loaded with a pace function to check the reply message, the reply is empty, is returned true-->
<script language=javascript>
<!--
Window.focus ()

var Cursor = window.opener//upper-level window object
var NN = False
Cursor.parent.document.body.onunload = close//home closed, this window is closed, because this window needs to get the upper window information

if (Cursor.XmlDom.documentElement.childNodes.length = 0)
{
window.location = "newinformation.htm"///if the user presses the Refresh (F5), the data cannot be obtained and displayed, and the new information page is sent.
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 () \ > Send </a>
A6 = "<a href=\" Javascript:echangtextarea (false) \ > Raw Info </a>
A7 = "#DFDED9"
document.all["text"].disabled = False
document.all["text"].focus ()
}
Else
{
A2 = "#EBEAE7"
A3 = ""
A5 = "<a href=\" Javascript:echangtextarea (true) \ > Reply </a>
A6 = ""
A7 = "#EBEAE7"
Init ()
document.all["text"].disabled = True
}
Text.style.border = A3
Text.style.backgroundColor = A2
document.all["Send"].innerhtml = A5
document.all["k"].innerhtml = A6
document.all["Client"].bgcolor = A7
}

-->
</SCRIPT>

<script language=javascript>
<!--
function Formsubmit ()
{
var text = Document.all[&quo



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.