6163945861

版权所有  è‹ICP备11005819号-4  
$(function() { var ie6 = window.ActiveXObject&&!window.XMLHttpRequest; var Slider = function(){ function slideTo(idx) { } var timer; function startAutoPlay() { stop(); / timer = setTimeout(Slider.slideNext, 5000); } function stop() { timer && clearTimeout(timer); } return { slideTo: slideTo, slidePrev: function() { if (current == 0) return; slideTo(current - 1); }, slideNext: function() { slideTo(current + 1); }, startAutoPlay: startAutoPlay, stop: stop } }(); if (!ie6) { Slider.startAutoPlay(); } $('.section3').on('mousemove', function(e) { var offsetX = e.clientX / window.innerWidth - 0.5, offsetY = e.clientY / window.innerHeight - 0.5; $('.section3 .layer2').css('left', -10 - 40 * offsetX).css('top', -10 - 40 * offsetY); $('.section3 .layer3').css('left', 10 + 40 * offsetX).css('top', 50 + 20 * offsetY); $('.section3 .layer4').css('left', 10 + 60 * offsetX).css('top', 140 + 30 * offsetY); }); $('.section4').on('mousemove', function(e) { var offsetX = e.clientX / window.innerWidth - 0.5, offsetY = e.clientY / window.innerHeight - 0.5; $('.section4 .layer2').css('left', 80 - 20 * offsetX).css('top', 30 - 20 * offsetY); }); $('.section5').on('mousemove', function(e) { var offsetX = e.clientX / window.innerWidth - 0.5, offsetY = e.clientY / window.innerHeight - 0.5; $('.section5 .layer2').css('left', 50 - 40 * offsetX).css('top', 10 - 40 * offsetY); }); })