//2018-01-29 14:06:21 ; (function() { protocol = location.protocol.substr(0, 4) === 'http' ? '' : 'http:'; document.write(""); //document.write(""); var isFooterTrack = $("script[data-isfootertrack]").data('isfootertrack'); // document.write(''); //right public footer var right_public_footer = ''; var ask_r_wrap = document.getElementsByClassName("persion_article"), randomNum = Math.round(Math.random()*2), storage = window.localStorage, public_footer_wrap = document.getElementsByClassName("public_pc_right_footer2018"); if(!storage.getItem('randomN')){ storage.setItem("randomN",randomNum); } if ($(ask_r_wrap).length > 0) { $(ask_r_wrap).append(right_public_footer); changeImg() }else if($(public_footer_wrap).length > 0){ $(public_footer_wrap).append(right_public_footer); changeImg() } function changeImg(){ var newItem = '
微信客服

微信客服

' newItem += '
QQ客服

QQ客服

' // if(storage.getItem('randomN') === '0'){ // newItem += '
区块链大本营

区块链大本营

' // storage.setItem("randomN", '1'); // }else if(storage.getItem('randomN') === '1'){ // newItem += '
下载CSDN APP

下载CSDN APP

' // storage.setItem("randomN", '2'); // }else if(storage.getItem('randomN') === '2'){ // newItem += '
官方公众号

官方公众号

' // storage.setItem("randomN", '0'); // } $(document).find('#footer-contact-box').html(newItem) } if (typeof isFooterTrack == 'undefined' || isFooterTrack == null) { var head = document.getElementsByTagName('head')[0], s, ss = [ protocol + '//csdnimg.cn/pubfooter/js/tracking-1.0.2.js', protocol + '//csdnimg.cn/rabbit/exposure-click/main-1.0.2.js' ]; for (var i = 0; i < ss.length; i++) { s = document.createElement('script') s.type = 'text/javascript'; s.charset = 'utf-8'; s.src = ss[i]; head.insertBefore(s, null); } } }())