$(function(){ //$(".mainmenu dl").hide(); $("li.mainmenu").hover(function(){ $(this).find("dl").stop(true,true); $(this).find("dl").slideDown(); },function(){ $(this).find("dl").stop(true,true); $(this).find("dl").slideUp(); }); }) //定时器 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)},3000); $(".slider_menu").hover(function(){ clearInterval(timer); }, function(){ timer = setInterval(function(){rotateBanner(1)},3000); }); 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-color",$("#qiehuan li").eq(_img-1).attr("data-color")).animate({backgroundPositionY: 0}, 200); }); $(".slider_menubar").stop().animate({top: 99}, 300, function(){ $(this).html($("#qiehuan li").eq(_img-1).html()).animate({top: 0}, 200); }); } // end $(function () { //切换对象为其他,这里为包含图片和标题的层 $('#change_32 div.changeDiv').soChange({//对象指向层,层内包含图片及标题 thumbObj:'#change_32 .ul_change_a2 span', thumbNowClass:'on'//自定义导航对象当前class为on }); });
Copyright ©2016 成人糖心vlog污 - 糖心vlog不良女孩