1 2//å å ¥æ¶è 3function addBookmark(_this) { try { var _title = document.title; var url = document.URL; if (window.sidebar) { var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("firefox") > -1 && ua.match(/firefox\/([\d.]+)/)[1] == "23.0") { _this.setAttribute("title", _title) } else { window.sidebar.addPanel(_title, url, "") } } else if (window.opera && window.print) { var __mbm = document.createElement("a"); __mbm.setAttribute("rel", "sidebar"); __mbm.setAttribute("href", url); __mbm.setAttribute("title", _title); __mbm.click() } else if (document.all) { window.external.AddFavorite(url, _title); return } else { alert("æµè§å¨ä¸æ¯æè¯¥æä½ï¼å°è¯å¿«æ·é® Ctrl + D !") } } catch (e) { alert("æµè§å¨ä¸æ¯æè¯¥æä½ï¼å°è¯å¿«æ·é® Ctrl + D !") } } 4 5 6 $(function () { 7 //ä½¿ç¨æµ®å¨ä¸»å¯¼èª 8 // $(document.body).append($("div.topwrap").clone().addClass("topwrap1").hide()); 9 var div = $("div.topwrap1"); 10 var div2 = $("div.topwrap2"); 11 $(window).scroll(function () { 12 if ($(this).scrollTop() > 239) { 13 div.show(); 14 div2.hide(); 15 } 16 else { 17 div.hide(); 18 div2.show(); 19 } 20 }).scroll(); 21 22 }) 23 24 25 function clickIE4(e) { 26 var e = e || window.event; 27 if (e.button && e.button == "2") { 28 return false; 29 } 30} 31 32function clickNS4(e) { 33 var e = e || window.event; 34 if (document.layers || document.getElementById && !document.all) { 35 if (e.which == 2 || e.which == 3) { 36 return false; 37 } 38 } 39} 40 41function OnDeny() { 42 if (event.ctrlKey || event.keyCode == 78 && event.ctrlKey || event.altKey || event.altKey && event.keyCode == 115) { 43 return false; 44 } 45} 46 47try { 48 if (document.layers) { 49 document.captureEvents(Event.MOUSEDOWN); 50 document.onmousedown = clickNS4; 51 document.onkeydown = OnDeny(); 52 } else if (document.all && !document.getElementById) { 53 document.onmousedown = clickIE4; 54 document.onkeydown = OnDeny(); 55 } 56} catch (e) { } 57 58try { 59 document.oncontextmenu = function () { 60 return false; 61 }; 62} catch (e) {} 63 64try { 65 document.body.onselectstart = function () { 66 return false; 67 } 68} catch (e) {} 69 70try { 71 document.body.oncopy = function () { 72 return false; 73 } 74} catch (e) {} 75 76 77 jQuery(".fullSlide").slide({ titCell:".hd li", mainCell:".bd ul", effect:"fold", autoPlay:true, delayTime:700 }); 78 79 80 $(function() { 81 // æ³¨åæ é»è®¤å¼æ¸ 空 82 $(".g_ser input").focus(function() { 83 if ($(this).val() == this.defaultValue) { 84 $(this).val(""); 85 }; 86 }).blur(function() { 87 if ($(this).val() == "") { 88 $(this).val(this.defaultValue); 89 }; 90 }); 91 }) 92 93 94 var key = document.getElementById("key"); 95 96 function searchInfo() { 97 var base = $('head').data('base'); 98 if (key.value) { 99 location.href = base + "search.php?key=" + key.value; 100 } else { 101 alert('请è¾å ¥æ¨è¦æç´¢çå ³é®è¯ï¼'); 102 } 103 } 104 key.addEventListener('keypress', function(event) { 105 var keycode = event.keycode || event.which; 106 if (keycode == "13") { 107 searchInfo(); 108 } 109 }); 110 111 function searchLink(el) { 112 var href = $(el).attr("href"); 113 location.href = href ? href : "/search.php?key=" + $(el).html(); 114 } 115 116 117 $(function () { 118 var a_imgs = $(".video a.a_video"); 119 a_imgs.css({ "z-index": "1", "visibility": "visible" }); 120 a_imgs.click(function () { 121 a_imgs.css({ "z-index": "0", "visibility": "hidden" }); 122 $(".vdo").show().removeClass("hide"); 123 }); 124 }) 125 126 127 128 var elements = $(".layui-btn"); 129 elements.bind("click", function () { 130 var me = $(this); 131 var cnt = me.find("em").html(); 132 layer.open({ 133 type: 1, 134 title: false, 135 scrollbar: false, 136 area: ['1200px', '600px'], 137 shade: 0.8, 138 closeBtn: 1, 139 skin: 'videoclass', 140 shadeClose: true, 141 content: cnt 142 }); 143 }) 144 145 146 147 //æ°åå¢å å¨ç» 148 $.fn.countTo = function(options) { 149 options = $.extend({}, $.fn.countTo.defaults, options || {}); 150 var loops = Math.ceil(options.speed / options.refreshInterval), 151 increment = (options.to - options.from) / loops; 152 153 return $(this).each(function() { 154 var _this = this, 155 loopCount = 0, 156 value = options.from, 157 interval = setInterval(updateTimer, options.refreshInterval); 158 159 function updateTimer() { 160 value += increment; 161 loopCount++; 162 $(_this).html(value.toFixed(options.decimals)); 163 164 if (typeof(options.onUpdate) == 'function') { 165 options.onUpdate.call(_this, value); 166 } 167 168 if (loopCount >= loops) { 169 clearInterval(interval); 170 value = options.to; 171 172 if (typeof(options.onComplete) == 'function') { 173 options.onComplete.call(_this, value); 174 } 175 } 176 } 177 }) 178 }; 179 180 $(function(){ 181 $('.ibanner').slide({mainCell:".bd",effect:"leftLoop",autoPlay:true,delayTime:500,interTime:5000}); 182 $('.icustom-list').slide({mainCell:".bd",effect:"topLoop",vis:5}); 183 184 185 function countadd(){ 186 var count = 0; 187 count++; 188 $('.ibrand-num.ani li').each(function(){ 189 dataperc = $(this).attr('data-perc'), 190 $(this).find('.num').delay(6000).countTo({ 191 from: 0, 192 to: dataperc, 193 speed: 2500, 194 refreshInterval: 150 195 }); 196 }); 197 } 198 function scrolltop(){ 199 var top = $(window).scrollTop(); 200 var htop = $('.ibrand-wrap').offset().top - $(window).height()/3;
201 if(top>=htop){ 202 countadd(); 203 $('.ibrand-num').removeClass('ani'); 204 } 205 } 206 scrolltop(); 207 $(window).scroll(function(){ 208 scrolltop(); 209 210 }); 211 }) 212 213 214 jQuery(".sblst").slide({ mainCell:".sbbd ul",vis:3,prevCell:".u_ljt",nextCell:".u_rjt",autoPlay:true,effect:"leftLoop"}); 215 216 217 jQuery(".g_an").slide({ mainCell:".anbd",vis:1,prevCell:".u_ljt",nextCell:".u_rjt",autoPlay:true,effect:"leftLoop"}); 218 219 220 $(".g_lc").slide({ 221 titCell: ".lchd li", 222 mainCell: ".lcbd", 223 autoPlay: true, 224 titOnClassName: "on", 225 effect: "fold", 226 vis: 1 227 }); 228 229 230jQuery(".m_zs").slide({mainCell:".zslst ul",autoPlay:true,effect:"leftMarquee",vis:4,interTime:50,trigger:"click"}); 231 232 233 if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){ 234 new WOW().init(); 235 }; 236 237 238 $(function() { 239 var time; 240 //var winHeight = top.window.document.body.clientHeight || $(window.parent).height(); 241 $('.client-2').css({ 242 'marginTop': -($('.client-2').height() / 2) 243 }); 244 $('#client-2 li').on({ 245 'mouseenter': function() { 246 var scope = this; 247 time = setTimeout(function() { 248 var divDom = $(scope).children('div'); 249 var maxWidth = divDom.width(); 250 $(scope).stop().animate({ 251 left: 77-maxWidth}, 'normal', function() { 252 var pic = $(scope).find('.my-kefu-weixin-pic'); 253 if (pic.length > 0) { 254 pic.show(); 255 } 256 }); 257 }, 100) 258 }, 259 'mouseleave': function() { 260 var pic = $(this).find('.my-kefu-weixin-pic'); 261 var divDom = $(this).children('div'); 262 var maxWidth = divDom.width(); 263 if (pic.length > 0) { 264 pic.hide(); 265 } 266 clearTimeout(time); 267 var divDom = $(this).children('div'); 268 $(this).stop().animate({ 269 left: 0 270 }, "normal", function() {}); 271 } 272 }); 273 //è¿åé¡¶é¨ 274 $(window).scroll(function() { 275 var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; 276 var eltop = $("#client-2").find(".my-kefu-ftop"); 277 if (scrollTop > 0) { 278 eltop.show(); 279 } else { 280 eltop.hide(); 281 } 282 }); 283 $("#client-2").find(".my-kefu-ftop").click(function() { 284 var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; 285 if (scrollTop > 0) { 286 $("html,body").animate({ 287 scrollTop: 0 288 }, "slow"); 289 } 290 }); 291 }); 292
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.