//cnzz统计 //document.writeln(""); //百度统计 var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "http://hm.baidu.com/hm.js?3ebbcea31bca0f84f63b0edddc791faf"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); //专题百度统计 var pathname = window.location.pathname; var pathnameArr = pathname.split("/"); if(pathnameArr[1] == 'zt'){ var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "http://hm.baidu.com/hm.js?3ebbcea31bca0f84f63b0edddc791faf"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); } //追踪下载按钮点击事件 if (location.href.split('/')[3] === 'soft') { $(".J_download").on("click", function() { _hmt.push(['_trackEvent', 'soft-godown', 'click']); }); $(document).on('click', '.soft-safedown', function() { _hmt.push(['_trackEvent', 'soft-safedown', 'click']); }); $(document).on('click', '.imgss', function() { _hmt.push(['_trackEvent', 'soft-manager', 'click']); }); $(".local_download").on("click", function() { _hmt.push(['_trackEvent', 'soft-local', 'click']); }); }else if(location.href.split('/')[3] === 'win7' || location.href.split('/')[3] === 'windows8' || location.href.split('/')[3] === 'win10' || location.href.split('/')[3] === 'linux' || location.href.split('/')[3] === 'xp' || location.href.split('/')[3] === 'up' || location.href.split('/')[3] === 'win11'){ $(".local_download").on("click", function() { _hmt.push(['_trackEvent', 'windowsdown', 'click']); }); } $("#xunleidown").on("click", function() { _hmt.push(['_trackEvent', 'xunleidown', 'click']); }); $(".local_download_xzq").on("click", function() { _hmt.push(['_trackEvent', 'gaosudown', 'click']); }); $(".btn-dl_swift").on("click", function() { _hmt.push(['_trackEvent', 'gaosudown', 'click']); }); //百度主动推送 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'http://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); // 系统点击 function method_1() { var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "http://hm.baidu.com/hm.js?3ebbcea31bca0f84f63b0edddc791faf"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); } // 软件点击 function method_2() { var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "http://hm.baidu.com/hm.js?3ebbcea31bca0f84f63b0edddc791faf"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); } var oHost = window.location.pathname; if (oHost.indexOf("soft") != -1){ $(".m-art-dl .item").click(function () { method_2(); }) }else { $(".m-art-dl .item").click(function () { method_1(); }) } // 下载统计代码 (function () { var s = document.createElement("script"); s.src = "http://click.338888.net/static/hm.js?6e1d8700bab861be9f74c9dee849f356"; s.setAttribute('data-btn', ['item>a']); // s.setAttribute('data-url','data-href'); if (oHost.indexOf("soft") != -1){ s.setAttribute('data-tag', 'soft'); }else{ s.setAttribute('data-tag', 'system'); } var b = document.getElementsByTagName("body")[0]; b.parentNode.insertBefore(s, b); })(); // function system_down_url_click_count(url){ // clickTrigger(url); // }