function Reloadx () {
if (xmlhttp.readystate = = 4) {
var response = Xmlhttp.responsetext;
document.getElementById ("mymsg"). InnerHTML = response;
document.getElementById ("mymsg"). Scrolltop=document.getelementbyid ("mymsg"). ScrollHeight;
SetTimeout ("ShowMsg ();", 10000);
}
}
function Saveset () {
var mycolor = document.getElementById ("MyColor"). Value;
var msgtotal = document.getElementById ("Msgtotal"). Value;
var mystate = document.getElementById ("MyState"). Value;
var allowmsg = document.getElementById ("allowmsg"). Value;
var closemsg;
if (document.getElementById ("closemsg"). Checked) {
Closemsg = document.getElementById ("closemsg"). Value;
}else{
Closemsg = "Off";
}
var senddata = "Mycolor=" + MyColor + "&msgtotal=" + msgtotal + "&mystate=" + mystate + "&allowmsg=" + allowms G + "&closemsg=" + closemsg;
Xmlhttp.open ("POST", ".. /ichat/chatset.asp ", false);
Xmlhttp.setrequestheader ("Content-type", "application/x-www-form-urlencoded");
Xmlhttp.onreadystatechange = function Sendok () {if (xmlhttp.readystate = 4) {
Alert (' Set has been saved ')
if (ichatstate== "open") {window.location.reload ();}
} }
Xmlhttp.send (SendData);
function Showset () {
if (xmlhttp.readystate = = 4) {
var response = Xmlhttp.responsetext;
document.getElementById ("Setplan"). InnerHTML = response;
}
}
function Setsendto (username) {
if (username== "everyone") {
document.getElementById ("SendTo"). Value = ';
document.getElementById ("Talkwith"). InnerHTML = ' all Members ';
}else{
document.getElementById ("SendTo"). Value = Username;
document.getElementById ("Talkwith"). InnerHTML = Username;
}
var url = ".. /ichat/checkuser.asp?user= "+ Escape (username) +" &pid= "+math.random ();
Xmlhttp.open ("Get", url, True);
Xmlhttp.onreadystatechange = showtips;
Xmlhttp.send (NULL);
}
function Showtips () {
if (xmlhttp.readystate = = 4) {
var response = Xmlhttp.responsetext;
document.getElementById ("userstate"). InnerHTML = response;
}
}
function Clearlog () {
if (Window.confirm ("Are you sure you want to erase all chat records?") ==true)
{
var url = ".. /ichat/clearlog.asp?pid= "+math.random ();
Xmlhttp.open ("Get", url, True);
Xmlhttp.send (NULL);
}
}
var ichatwinstate
Ichatwinstate= "Max";
function min ()
{
Ichatwinstate = (ichatwinstate== "Max")? " Min ": Max"
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.