//开头加;号是防止前一个js末行代码未加;结束 ;if(!window._addIvyID) document.write(' */ var pconline = { getId : function(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}}, addEvent : function(obj,eventType,func){if(obj.attachEvent){obj.attachEvent("on" + eventType,func);}else{obj.addEventListener(eventType,func,false)}}, delEvent : function(obj,eventType,func){ if(obj.detachEvent){obj.detachEvent("on" + eventType,func)}else{obj.removeEventListener(eventType,func,false)} } }; function LoginSelectClickOther(e){ thisObj = e.target?e.target:event.srcElement; do{ if(thisObj.id == "loginselect") return; if(thisObj.tagName == "BODY"){LoginSelectClose();return;}; thisObj = thisObj.parentNode; }while(thisObj.parentNode); }; function clickLoginSelect(){ if(pconline.getId("loginopt").style.display == "block"){ LoginSelectClose(); }else{ pconline.getId("loginopt").style.display = "block"; pconline.addEvent(document.body,"mousedown",LoginSelectClickOther); } }; function LoginSelectClose(){ pconline.getId("loginopt").style.display = "none"; pconline.delEvent(document.body,"mousedown",LoginSelectClickOther); }; function LoginSelect(title){ var titleName; switch(title){ case "pcclub": titleName = "PCclub"; document.loginform.direction.value="PCclub"; document.loginform.action="//passport2.pconline.com.cn/passport2/passport/login.jsp"; break; case "company": titleName = "商家"; document.loginform.direction.value="商家"; document.loginform.action="//eyp.pconline.com.cn/member/login.htm"; break; }; pconline.getId("loginselectdis").innerHTML = titleName; LoginSelectClose(); }; function ajaxLogon() { if(document.getElementById('ajaxLogon') == null) return; document.getElementById('ajaxLogon').innerHTML= //-----未登录 ''+ '
'+ ' '+ ' '+ ''+ //'
'+ //'选择去向'+ //''+ //'
'+ ' '+ '
'+ //-----已登录 '
'+( //* location.host.match(/pconline/)?'太平洋社区': location.host.match(/pcauto/)?'博客管理 ': location.host.match(/pcgames/)?'jClub管理': location.host.match(/pclady/)?'博客管理': location.host.match(/pckids/)?'博客管理': /**/ '')+'帐号管理 退出'+ '
' //以下是雅黑字体功能: ;//+''; var ajaxLogonHasYaHei = typeof dlgHelper!='object'; if(!ajaxLogonHasYaHei) for(var i = dlgHelper.fonts.count-1; i>0; i--) { if(dlgHelper.fonts(i) == '微软雅黑') { ajaxLogonHasYaHei = true; break; } } if(ajaxLogonHasYaHei) { //ajaxLogonYaHei(); /* document.getElementById('ajaxLogon').innerHTML+='  雅黑?'; */ } } ajaxLogon();//main function ajaxLogonYaHei(toggle) { var yahei = !!document.cookie.match(/(^|; )YaHei=/); if(toggle) { yahei = !yahei; jQuery.cookie('YaHei', '1', {expires:yahei?999:-1,path:'/',domain:location.hostname.replace(/^\w+/,'')}); } document.body.style.fontFamily = yahei ? '微软雅黑' : ''; try { if(window!=top) top.document.body.style.fontFamily = yahei ? '微软雅黑' : ''; } catch(e) {} } function ajaxLogonRefresh() { if(!document.cookie.match(/(^|; )common_session_id=[^;]+/) != !jQuery('#ajaxLogon>span:last:visible').length) jQuery('#ajaxLogon>span')//.toggle() 改成下面一行以绕开jquery1.3.2的toggle在这里失效的BUG .each(function(){var a=$(this); if(a.css('display')=='none') a.show(); else a.hide(); }); } function jQueryLoaded4Logon() { var $ = jQuery; $('#ajaxLogon form').append('') .submit(function(){ var usr = this['username'].value, pwd = this['password'].value; if(usr==''||pwd=='') { alert('请填写用户名和密码'); return false; } var direction = this['direction'].value; if(direction=='') { alert('请选择去向'); return false; } if(this.action.match(/member/)) return; //商家 $('input[type=submit]',this).css('opacity',.5).attr('disabled',true); this.target='pconline_login'; var win=window.open('','pconline_login','height=1, width=1, top=9999, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no'); window.focus(); var time=0; var fm = this; var checker = setInterval(function(){ if(time++ < 600 && !win.closed) return; clearInterval(checker); if(win.closed) { if(document.cookie.match(/(^|; )common_session_id=[^;]+/)) ajaxLogonRefresh(); else alert('登录失败! 请检查帐号和密码是否正确。'); } else { win.close(); alert('登录超时失败,请检查网络状况并再试一次。'); } $('input[type=submit]',fm).css('opacity',1).attr('disabled',false); },100); //$.getScript(this.action+(this.action.match(/\?/)?"&":"?")+"username=" +usr+"&password="+pwd, ajaxLogonRefresh); }); /**/ } setTimeout(function(){ if(typeof jQuery!='undefined') return jQueryLoaded4Logon(); var $_already_defined = typeof $ != 'undefined'; needJS(window.jQuery,'//www1.pconline.com.cn/js/pc.jquery1.3.js',function(){ if($_already_defined) $ = jQuery.noConflict(); jQueryLoaded4Logon(); }); },1000); //等1秒,先显示页面其它内容 function needJS(fn,src,callback) { if(typeof callback != 'function') return; //非法回调函数 if(typeof fn != 'undefined' && fn != null && fn != '') return callback(false); //功能早已载入 var scripts = window.__needJS__ || (window.__needJS__ = []); var script = scripts[src] || (scripts[src] = {loaded:false,callbacks:[]}); if(script.loaded) return callback(false); else script.callbacks.push(callback); if(script.callbacks.length == 1) { var js = document.createElement('script'); js.src = src; js.onreadystatechange = js.onload = function() { if(!js.readyState || js.readyState == 'loaded' || js.readyState == 'complete') { script.loaded = true; for(var i=0; i dl,dt,dd,ul,li{ margin:0; padding:0;} .clearfix{*zoom:1}.clearfix:after{content:\"\\20\";clear:both;height:0;display:block;overflow:hidden;} .nb-none{ display:none;} .navibar .nb-arrow, .nb-tit-user .nb-msgtip, .nb-menulist .nb-ml-arrow, .nb-menulist .nb-ml-ic, .navibar .nb-tit-icon, .nb-tit-message .msg-icon{background: url(//www1.pcauto.com.cn/header/images/navbar.png) no-repeat;} .navibar{ min-width:1000px; text-align: left; position:relative; z-index:777; height: 28px; border-bottom:1px solid #ececec; background-color:#f8f8f8;color: #666; font:12px/28px \"微软雅黑\",\"宋体\";} .navibar-wap{ width:1000px; margin:0 auto;} .navibar-la{ float:left; display: inline;} .navibar-lb{ float:right; display: inline;} .navibar a{color: #666;} .navibar a:hover{color: #f70;} .navibar .nb-info, .navibar .nb-tit{ display:inline; float:left;} .navibar .nb-tit{ position: relative; line-height:28px; margin-right:13px;} .navibar .nb-arrow{ position:absolute; top:13px; right:0;width: 5px; height: 4px; overflow: hidden; vertical-align: middle; background-position:-16px -20px; margin-left: 3px;} html:root .navibar .nb-arrow{ background-position:-16px -20px; transition:.25s; -moz-transition:.25s; /* Firefox 4 */ -webkit-transition:.25s; /* Safari 和 Chrome */ -o-transition:.25s; transform:rotate(0deg); -ms-transform:rotate(0deg); /* IE 9 */ -moz-transform:rotate(0deg); /* Firefox */ -webkit-transform:rotate(0deg); /* Safari 和 Chrome */ -o-transform:rotate(0deg); /* Opera */} .navibar .nb-tit-hover .nb-arrow{ background-position:-16px -8px;} html:root .navibar .nb-tit-hover .nb-arrow{ background-position:-16px -20px; transition:.25s; -moz-transition:.25s; /* Firefox 4 */ -webkit-transition:.25s; /* Safari 和 Chrome */ -o-transition:.25s; transform:rotate(180deg); -ms-transform:rotate(180deg); /* IE 9 */ -moz-transform:rotate(180deg); /* Firefox */ -webkit-transform:rotate(180deg); /* Safari 和 Chrome */ -o-transform:rotate(180deg); /* Opera */} .navibar .nb-menu{ position: relative; padding-right:8px;} .navibar .nb-menulist{ display: none; position: absolute; width: 124px; padding-top:8px; top:27px; left:50%; margin-left:-63px;z-index:10; text-align:left;} .navibar .nb-tit-hover .nb-menulist{ display: block;} .navibar .nb-menulist-inner{ display:block; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); position:relative; border:1px solid #ccc;border-radius: 2px; background: #fff; zoom:1;} .nb-menulist .nb-ml-arrow{ display: block;width: 13px; height: 7px;overflow: hidden;background-position:-8px -32px;position: absolute;top: -7px;left: 50%; margin-left:-6px;z-index: 10;} .nb-menulist .nb-ml-item{display:block; position:relative;line-height: 16px;padding: 10px 4px;margin: 0 15px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;text-overflow:clip;color: #333;} .nb-menulist .nb-ml-item:not(:last-child){border-bottom: solid 1px #ECECEC;} .nb-menulist .nb-ml-ic{display: inline; float: left; width:21px; margin-right:6px;_overflow: hidden;} .nb-tit-sites .nb-menulist{width:110px; text-align:center; margin-left:-55px;} /*论坛*/ .nb-ml-bbs{ color:#aaa;} .nb-ml-bbs dt{font-weight:bold; height: 30px;line-height: 30px; margin-bottom:-5px; padding:0 15px;} .nb-ml-bbs .nb-mlbs-sp{ border-top:1px dashed #ececec;} .nb-ml-bbs .nb-bbs-favb{ display:none;} /*登录*/ .navibar .nb-tit-login{ margin-right:0;} .nb-ml-pc{ border-bottom: 1px dashed #ececec;} .nb-ml-pc .nb-ml-ic{height: 19px;background-position: -5px -122px;margin-top: 7px;} .nb-ml-qq .nb-ml-ic{height: 16px;background-position: -5px -154px;margin-top: 9px;} .nb-ml-weibo .nb-ml-ic{height: 17px;background-position: 0 -183px;margin-top: 8px;} /*个人中心*/ .navibar .nb-tit-user{ padding-left:25px;} .navibar .user-link:hover{ text-decoration:none;} .nb-tit-user .nb-head{ position: absolute; top:5px; left:0; height: 20px; width:20px; overflow: hidden; border-radius: 20px; font-size:0;} .nb-tit-user .nb-head img{ vertical-align: top;} .navibar .nb-ml-user{ width:254px; left:0; margin-left:0;} .nb-ml-user .nb-ml-arrow{ margin-left:-80px;} .nb-ml-user .nb-menuList-con{ padding:12px 12px 0;} .navibar .nb-pt-pic{ float:left; margin-right:10px;} .navibar .nb-picTxt dt{ font-size:14px; line-height:1.3;} .navibar .nb-picTxt dd{ line-height:2; color:#777;} .navibar .nb-picTxt dd a{ color:#225599; } .navibar .nb-picTxt dd a:hover{ color:#f70;} .nb-user-info dt a{ color:#333;} .nb-user-info dt a:hover{ color:#f70;} .nb-user-info dd{ margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;} .nb-user-info .apply-rz{ float:right;} .navibar .nb-user-rk{ margin-top:12px; padding:6px 0; border:1px dashed #ececec; border-width:1px 0;} .nb-user-rk .nb-ml-item{ padding:0 5px; float:left; width:104px;} .navibar .nb-user-cyh { margin-top:12px;} .nb-user-cyh dt{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis;} .nb-user-cyh dt a{ color:#777;} .nb-user-cyh dt a:hover{ color:#f70;} .nb-user-cyh dd{ margin-top:8px;} .nb-user-cyh .nb-pt-pic img{border:1px solid #e5e5e5;} .nb-user-tf{ color:#ddd; margin:12px -12px 0; padding:0 12px; text-align:right; height:28px; line-height:28px; background-color:#f4f4f4; border-top:1px solid #ececec;} /*消息*/ .navibar .nb-tit-nomsg{ padding-right:0;} .nb-tit-message{ width:16px; height:28px;} .nb-tit-message .msg-icon{ position:absolute; top:8px; left:0; height: 13px; width:16px;overflow:hidden; line-height:999em; background-position: -5px -44px; padding:0; } .navibar .nb-message-num{ position:absolute; top:2px; right:0; background: #f44; color: #fff;border-radius: 2px;padding: 0 2px;line-height: 14px;height: 14px;} .nb-tit-message .nb-menulist{ width:132px;} .navibar .nb-message-none{ display:none !important;} .nb-menuList-con .nb-message-num{top:8px; right:15px;} .nb-ml-mybbs .nb-ml-ic{ height:13px; background-position:0 -251px; margin-top:8px;} .nb-ml-mycar .nb-ml-ic{ height:12px; background-position:0 -265px; margin-top:9px;} .nb-ml-mycollect .nb-ml-ic{ height:14px; background-position:0 -280px; margin-top:8px;} .nb-ml-mycmt .nb-ml-ic{ height:15px; background-position:0 -296px; margin-top:7px;} .nb-ml-mycontribute .nb-ml-ic{ height:15px; background-position:0 -326px; margin-top:7px;} .nb-ml-mycy .nb-ml-ic{ height:12px; background-position:0 -312px; margin-top:9px;} .nb-ml-mymoney .nb-ml-ic{background-position:0 -350px;height:15px;margin-top:7px;} .nb-tit-wap .nb-menulist{ width:96px; margin-left:-48px;} .navibar-lc{float:left;padding-left:10px;} .navibar-lc a{margin:0 6px;} .navibar-lc em{color:#E9E9E9;} .navibar-lc .navibar-lc-all{color:#B099B0;} .navibar-lc .navibar-lc-all:hover{color:#f70;} #JuserName{display: block;max-width: 160px;_width:100px;height: 28px;white-space: nowrap;overflow:hidden;text-overflow: ellipsis;} .nb-ml-weixin .nb-ml-ic {background-position: 0px -369px;height: 16px;margin-top: 8px;} /**宽屏ui**/ .b-webWideScreen .navibar{background:#f8f8f8;border-color:#ececec;} .b-webWideScreen .navibar-wap{width:1120px;} .b-webWideScreen .navibar .nb-tit-wap{ margin-right: 0;} /**隐藏入口**/ #turnToMeReplyCount{display:none;} .nb-user-rk .nb-ml-mycollect,.nb-user-rk .nb-ml-mycar,.nb-user-rk .nb-ml-mymoney{display:none;} /*20190102 露出车友会入口*/ .nb-user-rk .nb-ml-mycontribute .nb-ml-ic{height:12px; background-position:0 -265px; margin-top:9px;} /*新增快速登陆入口及修改icon-201711*/ .nb-menulist .nb-ml-loginway .nb-ml-ic{background: url(//www1.pcauto.com.cn/header/images/nb-menuList-icon.png) no-repeat;} .nb-menulist .nb-ml-loginway .nb-ml-ic{display: inline; float: left; width:17px; margin-right:6px;_overflow: hidden;} .nb-ml-loginway .nb-ml-fast .nb-ml-ic{height: 12px;background-position: 0px 0px;margin-top: 10px;} .nb-ml-loginway .nb-ml-pc .nb-ml-ic{height: 15px;background-position: 0px -14px;margin-top: 8px;} .nb-ml-loginway .nb-ml-qq .nb-ml-ic{height: 15px;background-position: 0px -31px;margin-top: 9px;} .nb-ml-loginway .nb-ml-weibo .nb-ml-ic{height: 14px;background-position: 0px -48px;margin-top: 8px;} .nb-ml-loginway .nb-ml-weixin .nb-ml-ic {background-position: 0px -64px;height: 13px;margin-top: 8px;}
  • 太平洋网络