document.write(''); var barurl = location.href.replace(/|<\/?(a|img)[^>]*>/gi, "").replace('"', "").replace(">", "").replace("<", ""); var username = ""; var userurl = ""; var upVipUrl=""; var isTool = 0; if (barurl.indexOf("sc.chinaz.com") > 0) { username = "素材会员中心"; userurl = "//user.sc.chinaz.com/"; } else if (barurl.indexOf("font.chinaz.com") > 0) { username = "素材会员中心"; userurl = "//user.sc.chinaz.com/"; } else if (barurl.indexOf("desk.chinaz.com") > 0) { username = "素材会员中心"; userurl = "//user.sc.chinaz.com/"; } else if (barurl.indexOf("ciku.chinaz.com") > 0||barurl.indexOf("del.chinaz.com") > 0||barurl.indexOf("whois.chinaz.com") > 0||barurl.indexOf("rank.chinaz.com") > 0) { isTool = 1; username = "用户中心"; userurl = "//my.chinaz.com/Accounts/User"; } else if (barurl.indexOf("font.chinaz.com") > 0) { username = "素材会员中心"; userurl = "//user.sc.chinaz.com/"; } else if (barurl.indexOf("aq.chinaz.com") > 0) { username = "SSL订单管理"; userurl = "//aq.chinaz.com/SSL/List"; }else if(barurl.indexOf("top.chinaz.com")>0){ isTool=2; upVipUrl="//topuser.chinaz.com/vip.aspx"; username="排行榜中心"; userurl="//topuser.chinaz.com"; } else if(barurl.indexOf("report.chinaz.com")>0 || barurl.indexOf("trends.chinaz.com")>0 || barurl.indexOf("pr.chinaz.com")>0 || barurl.indexOf("data.chinaz.com")>0 || barurl.indexOf("tool.chinaz.com")>0 || barurl.indexOf("seo.chinaz.com")>0 || barurl.indexOf("pr.chinaz.com")>0 || barurl.indexOf("s.tool.chinaz.com")>0 || barurl.indexOf("icp.chinaz.com")>0 || barurl.indexOf("link.chinaz.com")>0) { isTool = 1; username = "用户中心"; userurl = "//my.chinaz.com/Accounts/User"; }else if(barurl.indexOf("outlink.chinaz.com")>0 || barurl.indexOf("ping.chinaz.com")>0 || barurl.indexOf("ip.chinaz.com")>0 || barurl.indexOf("ip.tool.chinaz.com")>0 || barurl.indexOf("xzh.chinaz.com")>0 || barurl.indexOf("index.chinaz.com")>0 || barurl.indexOf("mobile.chinaz.com")>0 || barurl.indexOf("csstools.chinaz.com")>0) { isTool = 1; username = "用户中心"; userurl = "//my.chinaz.com/Accounts/User"; } else { username = "用户中心"; userurl = "//my.chinaz.com/Accounts/User"; } var userDataUrl=userurl; if(barurl.indexOf('alexa.chinaz.com')>=0){ isTool=2; upVipUrl="//alexa.chinaz.com/usercenter/vip.aspx"; userDataUrl="//alexa.chinaz.com/usercenter/vip.aspx"; }else if(barurl.indexOf('api.chinaz.com')>=0){ isTool = 2; userDataUrl="//my.chinaz.com/ChinazAPI/DataCenter/MyDataApi"; } var userid = ''; var strVar = ""; barurl=encodeURI(barurl); barurl=barurl.replace(/\+/g, "%2B"); barurl=barurl.replace(/\&/g, "%26"); barurl=barurl.replace(/\#/g, "%23"); if (userid == "") { if(isTool==1){ strVar += "
\n"; strVar += " 登录/注册<\/a>\n"; strVar += "<\/div>\n"; }else{ strVar += "
\n"; strVar += " [登录/注册]<\/a>\n"; strVar += "<\/div>\n"; } } else { strVar += "
"; if(isTool==1){ strVar +=""; strVar+="
"; if(0==1){ strVar+=""; } strVar+=""; strVar+="
"; strVar+=""; strVar+="
"; }else{ strVar += " <\/span><\/a>"; strVar += "退出<\/a>"; } strVar += "<\/div>"; } if(isTool===1){ if (document.getElementById('chinaz_topbarBox')) { document.getElementById('chinaz_topbarBox').innerHTML = strVar; } }else{ if (document.getElementById('chinaz_topbar')) { document.getElementById('chinaz_topbar').innerHTML = strVar; } } var subdiv = document.createElement('div'); subdiv.setAttribute('class', 'dropdownmenu-wrap menu-setting'); subdiv.setAttribute('id', 'settingpopup'); subdiv.style.display = 'none'; var strVar2 = ""; if (isTool===0) { strVar2 += "
\n"; strVar2 += "
\n"; strVar2 += "
\n"; strVar2 += "
\n"; strVar2 += " <\/a>\n"; strVar2 += " <\/div>\n"; strVar2 += " <\/div>\n"; strVar2 += "