1//smartRollover.js 2function smartRollover() { 3 if(document.getElementsByTagName) { 4 var images = document.getElementsByTagName("img"); 5 6 for(var i=0; i < images.length; i++) { 7 if(images[i].src.match("_off.")) 8 { 9 images[i].onmouseover = function() { 10 this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on.")); 11 } 12 images[i].onmouseout = function() { 13 this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off.")); 14 } 15 } 16 } 17 } 18} 19 20if(window.addEventListener) { 21 window.addEventListener("load", smartRollover, false); 22} 23else if(window.attachEvent) { 24 window.attachEvent("onload", smartRollover); 25} 26 27 28// $(function() { 29// //SCROLL TO TOP 30// $(".page_up a").click(function () { 31// $('body, html').animate({ scrollTop: 0 }, 500); 32// return false; 33// }); 34// }); 35 36 37// $(document).ready(function() { 38// var flag = false; 39// var page_up = $('.page_up'); 40// $(window).scroll(function () { 41// if ($(this).scrollTop() > 50) { 42// if (flag == false) { 43// flag = true; 44// page_up.stop().animate({ 45// 'right': '120px' 46// }, 500); 47// } 48// } else { 49// if (flag) { 50// flag = false; 51// page_up.stop().animate({ 52// 'right': '-500px' 53// }, 500); 54// } 55// } 56// }); 57// page_up.click(function () { 58// $('body, html').animate({ scrollTop: 0 }, 500); 59// return false; 60// }); 61// }); 62 63$(function() { 64 //roll_up 65 var pagetop = $('.pageup'); 66 var pagetop_btn = $('.pageup a'); 67 $(window).scroll(function(){ 68 if ($(this).scrollTop() > 160) { 69 pagetop.fadeIn(); 70 } else { 71 pagetop.fadeOut(); 72 } 73 }); 74});
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.