lastalk=$F(''talk'');
count++;
var p = document.createElement(''p'');
if(count%2==0){
Element.addClassName(p,''p1'');
}else{
Element.addClassName(p,''p2'');
}
var userspan = document.createElement(''span'');
var usertext = document.createTextNode($F(''name'')+'':'');
if($(''name'').disabled == true){
userspan.appendChild(usertext);
}else{
userspan.style.color=''#CACACA'';
userspan.appendChild(usertext);
}
var msgspan = document.createElement(''span'');
msg2face($F(''talk''),msgspan);
msgspan.style.color=talkcolor;
p.appendChild(userspan);
p.appendChild(msgspan);
$(''ppjoke_msgbox'').appendChild(p);
}
Field.clear(''talk'');
Field.select(''talk'');
$(''ppjoke_msgbox'').scrollTop=$(''ppjoke_msgbox'').scrollHeight;
function ajaxErro(){
sysinf(info_talkfail);
}
}
//发送登陆信息
function sendLogin (){
var timestamps = new Date().getTime()+Math.random();
creatInfo(barinf_logining);
var sendAjax = new Ajax.Request(talkpath+''?act=login×tamp=''+timestamps,{method: ''post'',parameters:Form.serialize(''logform''),onComplete:sendLoginOk});
function sendLoginOk(req){
if(req.responseText=="ok"){
creatInfo(barinf_loginready);
$(''alogin'').style.display=''none'';