data.u+'':'');
if(data.v=="True"){
userspan.appendChild(usertext);
}else{
userspan.style.color=''#CACACA'';
userspan.appendChild(usertext);
}
var msgspan = document.createElement(''span'');
msg2face(data.m,msgspan);
msgspan.style.color=data.c;
p.appendChild(userspan);
p.appendChild(msgspan);
$(''ppjoke_msgbox'').appendChild(p);
lastWorldTime=data.t;
}
);
$(''ppjoke_msgbox'').scrollTop=$(''ppjoke_msgbox'').scrollHeight;
}
}
//发送聊天信息,处理本地消息
function sendMsg (){
if(!Field.present(''talk'',''name'',''email'')){
creatInfo(barinf_blank);
return;
}
if(lastworld==Form.serialize(''talkform'')){
sysinf(info_shaping);
}else{
if($(''thelastTime'')){Element.remove(''thelastTime'');}
var timestamps = new Date().getTime()+Math.random();
var sendAjax = new Ajax.Request(talkpath+''?act=sendMsg&color=''+talkcolor+''×tamp=''+timestamps,{method: ''post'',parameters:Form.serialize(''talkform''),onFailure:ajaxErro});
lastworld=Form.serialize(''talkform'');