$(function() { $(".nav ul li #nav").hide(); $("li.mainmenu").hover(function() { $(this).find("#nav").stop(true, true); $(this).find("#nav").slideDown(); }, function() { $(this).find("#nav").stop(true, true); $(this).find("#nav").slideUp(); }); $(document).ready(function() { $(".nav ul li").hover(function() { $(this).addClass('cur').siblings().removeClass('cur'); }); }); jQuery(".slideBox1").slide({ mainCell: ".bd ul", autoPlay: true }); jQuery(".slideBox2").slide({ mainCell: ".bd ul", autoPlay: true }); jQuery(".slideBox3").slide({ mainCell: ".bd ul", autoPlay: true }); jQuery(".slideBox4").slide({ mainCell: ".bd ul", autoPlay: true }); jQuery(".slideBox5").slide({ mainCell: ".bd ul", autoPlay: true }); jQuery(".slideBox6").slide({ mainCell: ".bd ul", effect: "left", autoPlay: true }); jQuery(".twoLisImg").slide({ mainCell: ".bd ul", autoPlay: true }); jQuery(".picScroll-top").slide({ titCell: ".hd ul", mainCell: ".bd ul", autoPage: true, effect: "topLoop", autoPlay: true, vis: 2 }); jQuery(".picScroll-left").slide({ titCell: ".hd ul", mainCell: ".bd ul", autoPage: true, effect: "leftLoop", autoPlay: true, vis: 5 }); $(document).ready(function() { var $tab_li = $('.tab_menu li'); $tab_li.hover(function() { $(this).addClass('selected').siblings().removeClass('selected'); var index = $tab_li.index(this); $('div.tab_box > div').eq(index).show().siblings().hide(); }); }); $(function() { $(".select").each(function() { var s = $(this); var z = parseInt(s.css("z-index")); var dt = $(this).children("dt"); var dd = $(this).children("dd"); var _show = function() { dd.slideDown(200); dt.addClass("cur"); s.css("z-index", z + 1); }; var _hide = function() { dd.slideUp(200); dt.removeClass("cur"); s.css("z-index", z); }; dt.click(function() { dd.is(":hidden") ? _show() : _hide(); }); dd.find("a").click(function() { dt.html($(this).html()); _hide(); }); $("body").click(function(i) { !$(i.target).parents(".select").first().is(s) ? _hide() : ""; }); }) }); });