admin 發表於 2016-3-18 22:14:55

qq.cookie

用微信掃描還可以
'+_PA+'

相關閱讀: 情趣內衣企鵝娘吐槽 ·企鵝娘吐槽:日本LOL玩傢被你們虐哭了! 2016.03.14
·企鵝娘吐槽:韓國網民狂噴穀歌與柯潔 2016.03.13
·企鵝娘吐槽:你還打算繼續追火影嗎? 2016.03.12
·企鵝娘吐槽:日本女優竟被強迫憋尿! 2016.03.11

掃一掃,用手機看新聞!
'; document.getElementById('sctag').className = 'yessc'; document.getElementById('articleSc').setAttribute('status', 1); document.getElementById('articleSc').innerHTML = '取消收藏'; document.getElementById('articleSc').className = 'articleSc_1'; }else if (_CON == 0) { document.getElementById('sctag').className = 'nosc'; document.getElementById('articleSc').setAttribute('status', 2); document.getElementById('articleSc').innerHTML = '點擊收藏'; document.getElementById('articleSc').className = 'articleSc'; } if (_PA=='' && _CON==1) { ty=1; document.getElementById('sctag').className = 'yessc'; document.getElementById('articleSc').setAttribute('status', 1); document.getElementById('articleSc').innerHTML = '取消收藏'; document.getElementById('articleSc').className = 'articleSc_1'; } //bind( document.getElementById('sctag'),"click",function(){sctagClick();}) } window['sctag'] = sctag; }else{ /* @正常URL情況下過來的情況 */ ty = 1; document.getElementById('sctag').className = 'nosc'; } /* @url = kphome=1; @退出登錄 */ if (!qq.cookie("skey") && _urlCs == 'kphome=1') { document.getElementById('sczy').style.display = 'none'; document.getElementById('sctag').className = 'nosc'; } function sctagClick(){ if (qq.cookie("skey")) { if ( document.getElementById('sctag').className == 'nosc' ) { //登錄情況下點擊標題旁邊icon收藏 ty = 1; document.getElementById('articleSc').setAttribute('status', 1); document.getElementById('articleSc').className = 'articleSc_1'; document.getElementById('articleSc').innerHTML = '取消收藏'; document.getElementById('scToolTag').style.display = 'block'; setTimeout("document.getElementById('scToolTag').style.display = 'none'",高雄婚紗店,3000); document.getElementById('sctag').className = 'yessc'; //alert('收藏') loadScript(''+ARTICLE_INFO.article_url+'&ty='+ty+'&pa=&fr=騰訊'+ARTICLE_INFO.site_cname); }else if (document.getElementById('sctag').className == 'yessc') { //登錄情況下點擊標題旁邊icon取消收藏 document.getElementById('articleSc').setAttribute('status', 2); document.getElementById('sctag').className = 'nosc'; document.getElementById('articleSc').innerHTML = '點擊收藏'; document.getElementById('articleSc').className = 'articleSc'; //alert('刪除') loadScript(''+ARTICLE_INFO.article_url+'&ty='+ty+'&pa=&fr=騰訊'+ARTICLE_INFO.site_cname); } registerZone2({bossZone:'textFvrtop',url:''},1) }else{ userLogin(); if (document.getElementById('sctag').className == 'nosc' ) { //登錄情況下點擊標題旁邊icon收藏 ty = 1; //alert('收藏') login.cbArr.push(function (){ document.getElementById('articleSc').setAttribute('status', 1); document.getElementById('articleSc').className = 'articleSc_1'; document.getElementById('articleSc').innerHTML = '取消收藏'; document.getElementById('sctag').className = 'yessc'; document.getElementById('scToolTag').style.display = 'block'; setTimeout("document.getElementById('scToolTag').style.display = 'none'",3000); loadScript(''+ARTICLE_INFO.article_url+'&ty='+ty+'&pa=&fr=騰訊'+ARTICLE_INFO.site_cname)}); }else if (document.getElementById('sctag').className == 'yessc') { //登錄情況下點擊標題旁邊icon取消收藏 //alert('刪除') login.cbArr.push(function (){ document.getElementById('articleSc').setAttribute('status', 2); document.getElementById('sctag').className = 'nosc'; document.getElementById('articleSc').innerHTML = '點擊收藏'; document.getElementById('articleSc').className = 'articleSc'; loadScript(''+ARTICLE_INFO.article_url+'&ty='+ty+'&pa=&fr=騰訊'+ARTICLE_INFO.sisite_cnamete); registerZone2({bossZone:'textFvrtop',url:''},1) }); } } } //login.cbArr.push(sctagClick); var cnt_Main_Article = document.getElementById('Cnt-Main-Article-QQ'); //寫入劃詞彈出層 (function(){ var newNode=document.createElement("div"); var Wrap = document.getElementById('Wrap'); //var op = Wrap.getElementsByTagName('p'); newNode.
分享至好友和朋友圈
分享到: 收藏成功查看我的收藏>> function collect(){} collect.prototype = { init: function(){ //寫入標題旁邊五角星 (function(){ var wocdc = document.getElementById("C-Main-Article-QQ"); var newNodeTitleTag=document.createElement("div"); var TitleTagSet = wocdc.getElementsByTagName('div'); newNodeTitleTag.setAttribute("id","sctag"); newNodeTitleTag.setAttribute("class","nosc"); TitleTagSet.style.position = 'relative'; newNodeTitleTag.innerHTML=""; TitleTagSet.appendChild(newNodeTitleTag); })(); (function(){ var wocdc = document.getElementById("C-Main-Article-QQ"); var newNodeTitleTag = document.createElement("div"); var TitleTagSet = wocdc.getElementsByTagName('div'); newNodeTitleTag.setAttribute("id","scToolTag"); newNodeTitleTag.setAttribute("class","scToolTag"); newNodeTitleTag.setAttribute("bosszone","gotofavor"); newNodeTitleTag.innerHTML="收藏成功查看我的收藏>>"; TitleTagSet.appendChild(newNodeTitleTag); })(); function crsczy(){ var cnt = document.getElementById('Cnt-Main-Article-QQ'); var newNodeDdTag = document.createElement('div'); newNodeDdTag.setAttribute('id','sczy'); cnt.parentNode.insertBefore(newNodeDdTag,靜岡旅遊,cnt); }; crsczy() function starwz(){ var cmtNum = document.getElementById('cmtNum'); var icondlsj = document.getElementById('icondlsj'); var sctag = document.getElementById('sctag'); sctag.style.display = 'block'; if (cmtNum.innerHTML.length===0) { sctag.style.right = 0+'px'; } if (cmtNum.innerHTML.length===1) { sctag.style.right = 67+'px'; } if (cmtNum.innerHTML.length===2) { sctag.style.right = 70+'px'; } if (cmtNum.innerHTML.length===3) { sctag.style.right = 75+'px'; } if (cmtNum.innerHTML.length===4) { sctag.style.right = 85+'px'; } if (cmtNum.innerHTML.length===5) { sctag.style.right = 95+'px'; } if (cmtNum.innerHTML.length===6) { sctag.style.right = 103+'px'; } if (cmtNum.innerHTML.length===7) { sctag.style.right = 110+'px'; } if(!icondlsj) return; if (cmtNum.innerHTML.length===0) { icondlsj.style.right = 6+'px'; } if (cmtNum.innerHTML.length===1) { icondlsj.style.right = 67+6+'px'; } if (cmtNum.innerHTML.length===2) { icondlsj.style.right = 70+6+'px'; } if (cmtNum.innerHTML.length===3) { icondlsj.style.right = 75+6+'px'; } if (cmtNum.innerHTML.length===4) { icondlsj.style.right = 85+6+'px'; } if (cmtNum.innerHTML.length===5) { icondlsj.style.right = 95+6+'px'; } if (cmtNum.innerHTML.length===6) { icondlsj.style.right = 103+6+'px'; } if (cmtNum.innerHTML.length===7) { icondlsj.style.right = 100+6+'px'; } } //事件綁定 var bind=function(object,type,fn){ if(object.attachEvent) {//IE瀏覽器 object.attachEvent("on"+type,中風,(function(){ return function(event) { window.event.cancelBubble=true;//停止時間冒泡 object.attachEvent=;//----這裏我要講的是這裏 } })(object),false); }else if(object.addEventListener) {//其他瀏覽器 object.addEventListener(type,function(event) { event.stopPropagation();//停止時間冒泡 fn.apply(this) }); } }; //創建script標簽 function loadScript(sUrl) { var _script = document.createElement('script'); _script.setAttribute('type', 'text/javascript'); _script.setAttribute('src', sUrl); document.getElementsByTagName('head').appendChild(_script); } function Request1() { loadScript(''+encodeURI(ARTICLE_INFO.title)+'&url='+ARTICLE_INFO.article_url); }// 喜懽這篇文章 function Request2() {        loadScript(''+encodeURI(ARTICLE_INFO.title)+'&url='+ARTICLE_INFO.article_url); }//不喜懽這篇文章 //function Request3() {        loadScript(''+ARTICLE_INFO.article_url+'&ty='+ty+'&pa=&fr='+ARTICLE_INFO.site); }//收藏文章 //function Request4() {        loadScript(''+ARTICLE_INFO.article_url+'&ty=1&pa=&fr='+ARTICLE_INFO.site); }//刪除收藏文章 function Request5() {        loadScript(''+ARTICLE_INFO.article_url+'&ty=1'+'&callback="sctag"'); }//文章是否被收藏 var djcg = false; bind(document.getElementById('lovesee'),"click",function(){ if(djcg) return; djcg = true; document.getElementById('yesNoUl').className = 'clearfix yesNoUl'; Request1();registerZone2({bossZone: 'aikan', url: ''},1)}); bind(document.getElementById('nolovesee'),"click",function(){if(djcg) return; djcg = true; document.getElementById('yesNoUl').className = 'clearfix yesNoUl_1'; Request2();registerZone2({bossZone: 'unlike', url: ''},1)}); //正常url下整片文章收藏 bind( document.getElementById('articleSc'),"click",function() { if( document.getElementById('articleSc').getAttribute('status') == '1' ) { ty = 1; document.getElementById('articleSc').setAttribute('status', 2); document.getElementById('articleSc').setAttribute('ty', 2); document.getElementById('articleSc').className = 'articleSc'; document.getElementById('articleSc').innerHTML = '點擊收藏'; document.getElementById('sctag').className = 'nosc'; //alert('刪除'); loadScript(''+ARTICLE_INFO.article_url+'&ty='+ty+'&pa=&fr=騰訊'+ARTICLE_INFO.site_cname); }else if(!document.getElementById('articleSc').getAttribute('status') || document.getElementById('articleSc').getAttribute('status') == '2' ) { if (qq.cookie("skey")) { ty = 1; document.getElementById('articleSc').setAttribute('status', 1); document.getElementById('articleSc').className = 'articleSc_1'; document.getElementById('scToolBtn').style.display = 'block'; setTimeout("document.getElementById('scToolBtn').style.display = 'none'",清境農場,3000); document.getElementById('articleSc').innerHTML = '取消收藏'; document.getElementById('sctag').className = 'yessc'; //Request3();//收藏文章 //alert('收藏'); loadScript(''+ARTICLE_INFO.article_url+'&ty='+ty+'&pa=&fr=騰訊'+ARTICLE_INFO.site_cname); }else{ userLogin(); ty = 1; document.getElementById('articleSc').setAttribute('status', 1); document.getElementById('articleSc').setAttribute('ty', 1); login.cbArr.push(function(){ document.getElementById('articleSc').className = 'articleSc_1'; document.getElementById('scToolBtn').style.display = 'block'; setTimeout("document.getElementById('scToolBtn').style.display = 'none'",3000); document.getElementById('articleSc').innerHTML = '取消收藏'; document.getElementById('sctag').className = 'yessc'; loadScript(''+ARTICLE_INFO.article_url+'&ty='+ty+'&pa=&fr=騰訊'+ARTICLE_INFO.site_cname); }); } } registerZone2({bossZone: 'textFvrbtm', url: ''},1) }); //正常url下整片文章收藏(點擊標題旁邊tag) bind( document.getElementById('sctag'),夏令營,"click",function(){sctagClick();}) //獲取從產品頁過來文章的URL參數 thisURL = document.URL; var articleUrl = thisURL; var _urlCs; //alert(articleUrl); String.prototype.Right = function(i) { //為String對象增加一個Right方法 return this.slice(this.length - i,倉儲架,this.length); //返回值為 以“該字符串長度減i”為起始 到 該字符串末尾 的截取字符串 }; var articleUrl = thisURL; _urlCs = articleUrl.Right(8); //截取字符串的右三位 //alert(_urlCs); var _PA ; if ( _urlCs == 'kphome=1' ) { Request5(); //alert(_PA); function sctag(data_1){ var _PA ; _PA = data_1.data.pa; _CON = data_1.data.cnt; //劃詞數据大於0 填充 if ( _PA.length>0 && _CON==1 ) { ty=2; document.getElementById('sczy').innerHTML = '
頁: [1]
查看完整版本: qq.cookie