var jgIP="3.128.198.36";var swt_middle = 'middle';var right_css = 'default';var right_img = 'default';var bottom_img = 'default';refer = document.referrer;var reg = /[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/;var re_domain=reg.exec(refer)?reg.exec(refer)[0]:refer;jgSwtConfig =null;jgSwtConfig.searchWord = ''; if(re_domain.indexOf('baidu.com')>0) { jgSwtConfig.searchWord = decodeURIComponent(getUrlParam(refer,'wd')); jgSwtConfig.searchWord = jgSwtConfig.searchWord?jgSwtConfig.searchWord:decodeURIComponent(getUrlParam(refer,'word')); jgSwtConfig.searchWord = jgSwtConfig.searchWord?jgSwtConfig.searchWord:decodeURIComponent(getUrlParam(refer,'p')); jgSetCookie('searchWord',jgSwtConfig.searchWord); }else if(re_domain.indexOf('sogou.com')>0){ jgSwtConfig.searchWord = decodeURIComponent(getUrlParam(refer,'query')); jgSetCookie('searchWord',jgSwtConfig.searchWord); }else if(re_domain.indexOf('sm.cn')>0){ jgSwtConfig.searchWord = decodeURIComponent(getUrlParam(refer,'q')); jgSetCookie('searchWord',jgSwtConfig.searchWord); }else{ if(jgGetCookie('searchWord')){ jgSwtConfig.searchWord = jgGetCookie('searchWord'); } }function getUrlParam(url,paras){ var paraString = url.substring(url.indexOf('?')+1,url.length).split('&'); var paraObj = {} for (i=0; j=paraString[i]; i++){ paraObj[j.substring(0,j.indexOf('=')).toLowerCase()] = j.substring(j.indexOf('=')+1,j.length); } var returnValue = paraObj[paras.toLowerCase()]; if(typeof(returnValue)=='undefined'){ return ''; }else{ return returnValue; } } function jgSetCookie(k, v) { var nowDate = new Date(); nowDate.setTime(nowDate.getTime() + 2 * 24 * 60 * 60 * 1000); document.cookie = k + '=' + escape(v) + ';path=/;expires=' + nowDate.toGMTString() }; function jgGetCookie(k) { var arr = document.cookie.match(new RegExp('(^| )' + k + '=([^;]*)(;|$)')); if (arr != null) return unescape(arr[2]); return null };var all_form = document.querySelectorAll('form'); if(all_form.length>0){ var input=document.createElement('input'); input.setAttribute('type','hidden'); input.setAttribute('name','searchWord'); input.setAttribute('value',jgSwtConfig.searchWord); for(var i=0;i', '', '
', '', '
', '
', '
电话
', ' ', '免费电话咨询', '
', '
', '', '', '
', '
', '',*/ '
', '




', '
', '
', '
', '
电话
', ' ', '', '免费电话咨询', '
', '
', ' ', ' ', '
', '
', '
', '
', /*添加微信*/ '', '', '', ]; var popStyle2 = [ '
', ' ', '
', '
', '
', '
电话
', ' ', '', '免费电话咨询', '
', '
', ' ', ' ', '
', '
', '
', '
', ]; /*中间弹窗样式二 var popStyle2 = [ '
', '第二种第二种', '
', '
', '
', '
电话
', ' ', '第二种第二种', '
', '
', '', '', '
', '
', '
', ];*/ var popStyle3 = [ '
', '
', '
', '

加医生微信教你识别白癜风

', '

今天已有35人获得专业解答

', '

长按复制或记住,下方微信号

', 'BDF191

', '', ' 已记下微信号,点击去微信加好友', '
', '
', ]; /*中间弹窗样式三 var popStyle3 = [ '
', '第三种第三种', '
', '
', '
', '
电话
', ' ', '第三种第三种', '
', '
', '', '', '
', '
', '
', ];*/ /*凌晨时段弹窗*/ // floatDiv= [ // "", // '
', // '
', // '

答疑中心

', // '

身上白斑,白块是白癜风吗?

', // '

百度十下,不如留言一下!

', // '
', // '
', // ' ', // ' ', // ' ', // ' ', // '
', // '
', // ' 温馨提示:', // '

23点值班医生约会周公啦,乖乖留下你的联系方式,明早八点开工,送上属于你的祛白全攻略。

', // '
', // ' ', // '
' // ]; function domen () { document.writeln(""); } var floatDivInsertYJ = document.createElement('div'); // floatDivInsertYJ.innerHTML = floatDiv.join(''); document.body.appendChild(floatDivInsertYJ); var yjly = document.getElementById('yjly'); function showyjly() { domen(); //var docHeight = $(document).height(); //获取窗口高度 // var docHeight = 1015; // $('body').append('
'); // $('#overlay') // .height(docHeight) // .css({ // 'opacity': 1, //透明度 // 'position': 'absolute', // 'top': 0, // 'left': 0, // 'background-color': 'black', // 'width': '100%', // 'z-index': 5000 //保证这个悬浮层位于其它内容之上 // }); //setTimeout(function(){$('#overlay').fadeOut('slow')}, 3000); // yjly.style.display = 'block'; // yjly.style.zIndex = "100"; // swtCenter.style.display = 'none' } function hideyjly() { yjly.style.display = 'none'; yjly.style.marginRight = "300px"; yjly.style.zIndex = "-100"; swtCenter.style.display = 'block' } var popStyle = eval(jgSwtConfig.popStyle); var floatDivInsert = document.createElement('div'); floatDivInsert.innerHTML = popStyle.join(''); document.body.appendChild(floatDivInsert); var swtCenter = document.getElementById("swtCenter"); var swtClose = document.getElementsByClassName("swtClose")[0]; var swtCircle = document.getElementById("swtCircle"); var middleContent = document.getElementsByClassName("middleContent")[0]; var wxIcon = document.getElementById('wx_icon');/*微信动图标*/ var wxIconDiv = document.getElementById('wx_iconDiv');/*微信弹窗*/ var showCenter = function() { switch (popStyle){ case popStyle1: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if (MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } swtCenter.className = 'swtCenter_1'; swtClose.style.top = '0'; middleContent.style.display = 'block'; swtCircle.style.display = 'none'; jgSwtConfig.showStatus = true; break; case popStyle2: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if (MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } swtCenter.className = 'swtCenter1_1'; swtClose.style.top = '0'; middleContent.style.display = 'block'; swtCircle.style.display = 'none'; jgSwtConfig.showStatus = true; break; case popStyle3: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if (MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } swtCenter.className = 'swtCenter2_1'; swtClose.style.top = '0'; middleContent.style.display = 'block'; swtCircle.style.display = 'none'; jgSwtConfig.showStatus = true; break; } } var hideCenter = function() { switch(popStyle){ case popStyle1: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if (MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } swtCenter.className = 'swtCenter_2'; middleContent.style.display = 'none'; swtCircle.style.display = 'block'; swtCircle.className = 'swtCircle'; swtClose.style.top = '-30px'; jgSwtConfig.showStatus = false; break; case popStyle2: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if (MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } swtCenter.className = 'swtCenter1_2'; middleContent.style.display = 'none'; swtCircle.style.display = 'block'; swtCircle.className = 'swtCircle'; swtClose.style.top = '-30px'; jgSwtConfig.showStatus = false; break; case popStyle3: var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if (MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } swtCenter.className = 'swtCenter2_2'; middleContent.style.display = 'none'; swtCircle.style.display = 'block'; swtCircle.className = 'swtCircle'; swtClose.style.top = '-30px'; jgSwtConfig.showStatus = false; break; } } var openWxCenter; var showWxIco = function(){ var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if (MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } wxIcon.style.display = "block"; wxIconDiv.style.display="none"; openWxCenter = false; } var hideWxCenter = function(){ var MEIQIA_PANEL_HOLDER = document.getElementById('MEIQIA-PANEL-HOLDER'); if (MEIQIA_PANEL_HOLDER) { MEIQIA_PANEL_HOLDER.style.zIndex = '1' } wxIconDiv.style.display="block"; wxIcon.style.display = "none"; openWxCenter = true; } setTimeout(showWxIco,6*1000); var addWxChange = function(){ if (openWxCenter) { showWxIco(); }else{ hideWxCenter(); } } var centerChange = function() { if (jgSwtConfig.showStatus) { console.log(jgSwtConfig.showStatus); hideCenter(); } else { console.log(jgSwtConfig.showStatus); showCenter(); } } /*底部固定导航*/ var footerFiex = [ '', '
' ] // var footerFiex = [ // '
', // '
', // ' 咨询医生', // // ' 手机挂号', // ' 瑞金介绍', // ' 来院路线', // ' 导医台
', // // ' 导医台
', // '
', // '
' // ] var footerFiexInsert = document.createElement('div'); footerFiexInsert.innerHTML = footerFiex.join(''); document.body.appendChild(footerFiexInsert); if (jgSwtConfig.mgBottom && jgSwtConfig.mgBottom.length > 0) { document.querySelectorAll('div[id=footer123]')[0].style.marginTop = jgSwtConfig.mgBottom; }; /*END*/ /*预约挂号表单*/ var floatDivLylx = [ '
', '
', '
', '

手机挂号

', '
', '', '', '', '', '', '
', '
', '
' ]; var floatDivInsertLx = document.createElement('div'); floatDivInsertLx.innerHTML = floatDivLylx.join(''); document.body.appendChild(floatDivInsertLx); var lxCenter = document.getElementById('lxCenter'); function showLxCenter() { lxCenter.style.display = 'block'; lxCenter.style.marginRight = "-120px"; lxCenter.style.zIndex = "100"; swtCenter.style.display = 'none' } function hideLxCenter() { lxCenter.style.display = 'none'; lxCenter.style.marginRight = "300px"; lxCenter.style.zIndex = "-100"; swtCenter.style.display = 'block' } /*END*/ /*底部专家弹窗*/ var timer; var floatBottomDiv = [ '']; var floatBottomDivInsert = document.createElement('div'); floatBottomDivInsert.innerHTML = floatBottomDiv.join(''); document.body.appendChild(floatBottomDivInsert); var liCount = 2; var showLi = Math.round(Math.random() * 1); var showStatusBttc = true; var bottomTanChuang = document.getElementById("bottomTanChuang"); var bttcRight = document.getElementById("bttc_right"); var bttcLeft = document.getElementById("bttc_left"); var leftText = document.getElementsByClassName("leftText")[0]; var leftPic = document.getElementsByClassName("leftPic")[0]; var bttcClose = document.getElementById("bttcclose"); var bttcContent = document.getElementsByClassName("bttccontent")[0]; var bttcContText = document.getElementsByClassName("bttcContText")[0]; var icoTishi = document.getElementById("icoTishi"); var showBottomTanChuang = function() { bottomTanChuang.style.width = "95%"; bttcLeft.style.backgroundSize = '100%'; bttcRight.style.width = "85%"; bttcClose.style.left = "95%"; bttcClose.style.width = "25px"; leftText.style.opacity = "0"; bttcContent.style.display = 'block'; leftPic.style.opacity = "1"; showStatusBttc = true; showLiFunction(showLi); /* bottomTalkAlableShow()*/ } function showLiFunction(num) { var bttcLi = document.getElementsByClassName('bttcContText'); for (var i = 0; i < liCount; i++) { bttcLi[i].className = 'bttcContText hidbottomTalk' } bttcLi[num].className = 'bttcContText bottomTalk'; leftPic.onclick = function() { var textContent = bttcLi[showLi].textContent; openZoosUrl('chatwin', '&e=底部弹窗医生头像:' + textContent) } } var hideBottomTanChuang = function() { bottomTanChuang.style.width = "60px"; bttcRight.style.width = "0%"; bttcClose.style.left = "0"; bttcClose.style.width = "0"; leftText.style.opacity = "1"; leftPic.style.opacity = "0"; bttcContent.style.display = 'none'; showStatusBttc = false; setTimeout("showBottomTanChuang()", 10 * 1000); if (showLi == liCount - 1) { showLi = 0 } else { showLi = ++showLi } } var bttcChange = function() { if (showStatusBttc) { hideBottomTanChuang(); } else { showBottomTanChuang(); }; }; /*function bottomTalkAlableShow() { var bottomTalkAlable = document.getElementsByClassName("bottomTalk")[0].childNodes; for (var k in bottomTalkAlable) bottomTalkAlable[k].className = "TalkAlable" };*/ function getMessage() { if (timer) clearInterval(timer); showBottomTanChuang(); var BottomTalk = document.getElementsByClassName('bottomTalk')[0]; var ljhf = document.getElementsByClassName('ljhf')[0]; var word = document.getElementsByClassName("messagetext")[0].textContent; var index = 0; bttcClose.style.display = "none"; BottomTalk.style.marginTop = 0; BottomTalk.style.padding = "3px"; ljhf.style.display = "block"; timer = setInterval(function() { BottomTalk.innerHTML = " " + word.substring(0, index++) + '' + "|" }, 260) } /*END*/ /*点击输入框隐藏周边元素*/ function hideAll() { document.getElementById('swtCenter').style.display = 'none'; document.getElementById('bottomTanChuang').style.display = 'none'; /*document.getElementById('footer123').style.display = 'none';*/ }; function hideAll1() { // document.getElementById('swtCenter').style.display = 'none'; document.getElementById('bottomTanChuang').style.display = 'none'; /*document.getElementById('footer123').style.display = 'none';*/ }; function showAll() { document.getElementById('swtCenter').style.display = 'block'; /*document.getElementById('bottomTanChuang').style.display = 'block'; document.getElementById('footer123').style.display = 'block';*/ }; /*END*/ /*百度事件统计功能*/ function lableTj(a, b, c, d) { _hmt.push(["_trackEvent", a, b, c, d]) }; /*END*/ /*中间弹窗显示、隐藏控制*/ if (jgSwtConfig.centerPop && jgSwtConfig.centerPop == 'on') { setTimeout(hideCenter,3*1000); } /*底部专家弹窗显示、隐藏控制*/ if (jgSwtConfig.zjPop && jgSwtConfig.zjPop == 'on') { var zop = setTimeout(function() { bottomTanChuang.style.display = 'block' }, 3000); setTimeout('showBottomTanChuang()',6*1000); } /*底部固定导航显示、隐藏控制*/ if (jgSwtConfig.footer123 && jgSwtConfig.footer123 == 'on') { document.getElementById('footer123').style.display = 'block'; console.log('底部固定导航显示'); }else{ document.getElementById('footer123').style.display = 'none'; console.log('底部固定导航隐藏'); } var myyk = 'http://m.yyk.99.com.cn/' + /\w+\/\w+(\w+\.html)?/; if (location.href == myyk) { document.getElementById('swtCenter').style.display = 'none'; document.getElementById('bottomTanChuang').style.display = 'none'; } /*屏蔽img属性值*/ var image = document.getElementsByTagName("img"); for (var i = 0; i < image.length; i++) { image[i].setAttribute("contenteditable","false"); } /*瑞金专题页视频控制*/ // if (document.getElementById('vdoid') || document.getElementsByTagName('video')[0]) { // var vdoObj = document.getElementById('vdoid') || document.getElementsByTagName('video')[0]; // if (vdoObj.getAttribute('controls')) { // vdoObj.removeAttribute('controls'); // } // vdoObj.onclick = function(){ // if (vdoObj.paused) { // vdoObj.play(); // hideAll(); // }else{ // vdoObj.pause(); // showAll(); // } // } // } /*END*/ var weJs = document.createElement('script'); weJs.src = 'http://swt.jgyljt.com/2/sj/wx.js?t=0813'; document.body.appendChild(weJs); /*document.writeln(""); document.writeln("