$(function(){ $("#pro").mouseover(function(){ $("#pro").attr("src","http://www.yadea.com.cn/ydzhuanti/images/menu_1.png"); }); $("#pro").mouseout(function(){ $("#pro").attr("src","http://www.yadea.com.cn/ydzhuanti/images/menu_1.gif"); }); $("#tel").mouseover(function(){ $("#tel").attr("src","http://www.yadea.com.cn/ydzhuanti/images/menu_2.png"); }); $("#tel").mouseout(function(){ $("#tel").attr("src","http://www.yadea.com.cn/ydzhuanti/images/menu_2.gif"); }); $("#weixin").mouseover(function(){ $("#weixin").attr("src","http://www.yadea.com.cn/ydzhuanti/images/menu_3.png"); }); $("#weixin").mouseout(function(){ $("#weixin").attr("src","http://www.yadea.com.cn/ydzhuanti/images/menu_3.gif"); }); })
top

 

$(document).ready(function(){ $('#nav').localScroll(10046); $('.top_rim').localScroll(10046); //.parallax(xPosition, speedFactor, outerHeight) options: //xPosition - Horizontal position of the element //inertia - speed to move relative to vertical scroll. Example: 0.1 is one tenth the speed of scrolling, 2 is twice the speed of scrolling //outerHeight (true/false) - Whether or not jQuery should use it's outerHeight option to determine when a section is in the viewport $('#home').parallax("50%", 0.1); $('#about').parallax("50%", 0.1); $('#famous').parallax("50%", 0.1); $('#news').parallax("50%", 0.1); $('#products').parallax("50%", 0.1); $('#sector').parallax("50%", 0.1); $('#contact').parallax("50%", 0.3); $('.sprite').parallax("50%", 0); $('#products .screen').parallax("50%", 0-0.5); $('#about .screen').parallax("50%", 0-0.5); $('#sector .screen').parallax("50%", 0-0.5); $('#home .sprite1').parallax("50%", 0-0.5); $('#famous .sprite').parallax("50%", 0-0.5); $('#sector .sprite').parallax("50%", 0-0.5); }) function SlyarErrors() { return true; } window.onerror = SlyarErrors;