区域选择
湘潭 |
株洲 |
区域选择
$(document).ready(function(){ $("#jsddm li").each(function() { $(this).mouseover(function() { $(this).find('ul').css("visibility","visible"); }); $(this).mouseout(function(){ $(this).find('ul').css("visibility","hidden"); }); } ); });
网站建设

公司动态

16条记录
$(function(){ var aSlidePage = $('#slide .slide-nav-box a'); var aSlideCon = $('#slide .slide-box li'); var iSize = aSlideCon.size(); var iNow = 0; var timer = null; aSlidePage.each(function(index){ $(this).mouseover(function(){ iNow = index; slideRun() }) }) function slideRun(){ aSlidePage.removeClass('active'); aSlidePage.eq(iNow).addClass('active'); aSlideCon.stop(); aSlideCon.find('b').stop(); aSlideCon.eq(iNow).siblings().animate({ opacity:0 },1000).find('b').animate({ opacity:0, top:-40 },1000); aSlideCon.eq(iNow).animate({ opacity:1 },1000).find('b').animate({ opacity:1, top:-10 },1000); } autoRun(); function autoRun(){ timer = setInterval(function(){ iNow++; if(iNow>iSize-1) iNow=0; slideRun(); },6000) }; $('#slide').hover(function(){ clearInterval(timer); },function(){ autoRun(); }) }) function over(obj){ var $obj = $(obj); var url = $obj.css('backgroundImage'); url = url.replace(".jpg","_r.jpg"); $obj.css('backgroundImage',url); } function out(obj){ var $obj = $(obj); var url = $obj.css('backgroundImage'); url = url.replace("_r.jpg",".jpg"); $obj.css('backgroundImage',url); }