//定时器 var timer ; var BodyHeight,BodyWidth; var yon = 0; var xon = 0; var step = 1; var Hoffset = 0; var Woffset = 0; $(function(){ timer = setInterval(function(){rotateBanner(-1)},5000); $(".slider_menu").hover(function(){ clearInterval(timer); }, function(){ timer = setInterval(function(){rotateBanner(-1)},5000); }); BodyHeight=parseInt(document.body.clientHeight); BodyWidth=parseInt(document.body.clientWidth); //alert(BodyWidth); }); //begin:首页视觉区效果 var _img = 1; function rotateBanner(step){ _img+=step; if (_img>4) { _img=1; } else if (_img<=0) { _img=4; } $("#IndexBanner").stop().animate({opacity: 0},300, function(){ $(this).css("background-image", "url(images/banner_0"+_img+".jpg)").animate({opacity: 1},300); }); $(".slider").stop().animate({backgroundPositionY: 99}, 300, function(){ $(this).css("background-image", "url(images/bar_0"+_img+".png)").animate({backgroundPositionY: 0}, 200); }); }
文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)