$(document).ready(function() { // 执行banner切换插件 // $(function(){ // $('.flicker-example').flicker(); // }); // function hello(){ // alert(1) // }; $('.DB_tab25').DB_tabMotionBanner({ key: 'b28551', autoRollingTime: 6000, bgSpeed: 2000, motion: { DB_1_1: { left: 100, opacity: 0, speed: 1000, delay: 500 }, DB_2_1: { left: 150, opacity: 0, speed: 1000, delay: 500 }, DB_3_1: { left: -150, opacity: 0, speed: 1000, delay: 500 }, DB_3_2: { left: -150, opacity: 0, speed: 1000, delay: 500 }, DB_2_2: { left: 150, opacity: 0, speed: 1000, delay: 500 }, end: null } }) }); $(function() { $(".tab_box1 .hd_l a").mousemove(function() { $(this).addClass("on").siblings("a").removeClass("on"); $(this).parents(".tab_box1").find(".hd_r a").hide().eq($(this).index() / 2).show(); $(this).parents(".tab_box1").find(".bd > ul").hide().eq($(this).index() / 2).show(); }); }); $('.nav_list>ul>li').each(function() { var navbox = $(this).find('.nav_boxl'); var heibox = navbox.height(); $(this).on('mouseenter', function() { $(this).css('background', '#0452a4'); navbox.css('height', '0'); navbox.css('display', 'block'); navbox.animate({ height: heibox - 0 + 26 + 'px' }); }); $(this).on('mouseleave', function() { navbox.css('display', 'none'); $(this).css('background', 'none'); }); }); $('.picScroll-jp').on('mouseenter', function() { $(this).find('.hd').css('display', 'block') }); $('.picScroll-jp').on('mouseleave', function() { $(this).find('.hd').css('display', 'none') })