var objUser=jQuery("#headUser"); var objInto=jQuery("#headInto"); var objMsgCount=jQuery("#MsgCount"); var NewMessageCount=''; var sNickName =''; var isLogin = false; var cUserName = ''; try { if(sNickName && sNickName!=''){ objUser.html('您好,'+sNickName+'!'); if(objInto && isLogin){ objInto.html('退出'); objMsgCount.html('('+NewMessageCount+')'); } else if(objInto && !isLogin){ objInto.html('[请登录] [免费注册]'); } }else{ if(isLogin) { objUser.html('您好,'+cUserName+'!'); objInto.html('退出'); objMsgCount.html('('+NewMessageCount+')'); } else objInto.html('[请登录] [免费注册]'); } } catch(ex){throw new ex;} function IsInstallEDao(){ try{ var xmlhttp=new ActiveXObject("wwCheck.wwWebCheck"); return true; }catch(e){ if($('#setupEdaoTalk').size()<1) $("body").prepend("
"); location.href='#'; return false; } return false; } //注意wwparams参数顺序分别为:用户id,产品id,标题 //产品id可以为'',空字符 $(document).ready(function(){ $.fn.Loading = function(str) { return this.each(function() { if($(this).is("button")||$(this).is("input")){ if(!str) str="加载中..."; $(this).attr('disabled','disabled'); $(this).attr('tag',$(this).val()); $(this).val(str); } else{ if(!str) str=""; var tag = $(this).html(); $(this).attr('tag',tag); $(this).html('
'+str+'
'); } }); }; $.fn.UnLoading = function(){ return this.each(function(){ if($(this).is("button")||$(this).is("input")){ $(this).val($(this).attr('tag')); $(this).removeAttr('tag'); $(this).removeAttr('disabled'); }else{ $(this).html($(this).attr('tag')); $(this).removeAttr('tag'); } }); }; if($('#openETalk').size()<1) $("body").prepend("") $(".wwToken").click(function(){ var boolFals=IsInstallEDao(); if(boolFals==true){ var par=eval($(this).attr("wwparams")); $("#openETalk").attr("src","im:"+par[0]+"@"+par[1]); } }) })