時尚女孩酒店經紀論壇

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 1803|回復: 0
打印 上一主題 下一主題

function clickHandler

[複製鏈接]

2944

主題

2946

帖子

9650

積分

管理員

Rank: 9Rank: 9Rank: 9

積分
9650
跳轉到指定樓層
樓主
發表於 2016-2-13 16:32:56 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
跟貼排行 點擊排行 博客/論壇 朝尟不要"外援"要單挑世界 (function() {
NTES.ready(function() { delegateClick();
});
var lofterTextForm, lofterPicForm;
function delegateClick() { lofterPicForm = document.createElement('form'); lofterPicForm.setAttribute('action', ''); lofterPicForm.setAttribute('method', 'POST'); lofterPicForm.setAttribute('target', '_blank'); lofterPicForm.innerHTML = ''; document.body.appendChild(lofterPicForm); lofterPicForm.style.display = "none"; lofterTextForm = document.createElement('form'); lofterTextForm.setAttribute('action', ''); lofterTextForm.setAttribute('method', 'POST'); lofterTextForm.setAttribute('target', '_blank'); lofterTextForm.style.display = "none"; lofterTextForm.innerHTML = ''; document.body.appendChild(lofterTextForm); lofterTextForm.style.display = "none"; if(!window.shareClickDelegated) { window.shareClickDelegated = true; NTES(document).addEvent('click', function(e) { var event = e || window.event; var target = event.target || event.srcElement; while(target && target.tagName != 'BODY') { if(target.className && target.className.indexOf('nt-share-item') != -1) { clickHandler.call(target); } target = target.parentNode; } }); }
}
function removeHTMLTag(str) { str = str.replace(/]*?>[\s\S]+?/gi,'').replace(/]+?>/g,'').replace(/\s+/g,'') return str;
}
function getDescObj(objP){ var str = ""; for(var i = 0;i 40){ break; } } } return str;
}
function getDisDesc(){ var endText = NTES("#endText"); var end_text = NTES(".end-text"); var digest = ""; if(endText){ var objP = NTES("p",endText); digest = getDescObj(objP); } if(end_text[0] && digest == ""){ var objp2 = NTES("p",end_text); digest = getDescObj(objp2); } return digest;
}
function clickHandler() { var item = this; var parent = this.parentNode; var link = parent.getAttribute("data-url"), title = parent.getAttribute("data-title"),永和抽水肥, pic = parent.getAttribute("data-pic"), digest = parent.getAttribute("data-digest"), source = parent.getAttribute("data-source"); var linkEncode = encodeURIComponent(link), titleEncode = encodeURIComponent(title), picEncode = encodeURIComponent(pic), digestEncode = encodeURIComponent(digest),台北飯店, sourceEncode = encodeURIComponent(source); var type = item.getAttribute("data-type"); if(location.host=="shoucang.163.com"&&type == "lofter-text"){ type = "lofter-all-text" } var nxkey, ntit, nurl, tjurl, img; switch (type) { case "163wb": window.open("" + linkEncode + "%23sns_t163&source=" + sourceEncode + "&info=" + titleEncode + linkEncode + "&images=" + picEncode,釘書針雙眼皮, "_blank"); //nxkey = Math.random().toString().substr(2,6); //ntit = escape(document.title); nurl = (window.location.protocol.replace(":",台北免留車,"") + '://snstj.' + window.location.host + window.location.pathname+'?snstj_t163'); //tjurl=''+nurl+'&_ntit='+ntit+'&_nref=&_nfla=&_nssn=&_nxkey='+nxkey+'&_end1'; //img = new Image(); //img.src = tjurl; neteaseTracker( false, nurl,埋線拉提, "",鳳山免留車, "snstj" ); break; case "lofter-all-text": function getClass(tagname, className) { if (document.getElementsByClassName) { return document.getElementsByClassName(className); } else { var tagname = document.getElementsByTagName(tagname); var tagnameAll = []; for (var i = 0; i >分享到: 48小時評論排行 延伸閱讀 網易首頁新聞首頁 0人參與 更多熱門房源>> 聚合閱讀 重新定位新聞瀏覽習慣 美女直播 約會所 APP下載 PC客戶端下載 90後語音交友小時代 不做嘴炮 只筦約到 0人跟貼 | 0人參與 網友跟貼 0人跟貼 | 0人參與 | 手機發跟貼 | 注冊
跟貼熱詞:
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|小黑屋|時尚女孩酒店經紀論壇  

seo, 汽機車借款, 美體, 汽車借款, 當舖, Ellanse, 未上市股票, 白木耳, 壯陽藥生酵素,

GMT+8, 2024-5-3 23:46 , Processed in 0.395350 second(s), 8 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表