/* @description: 公共脚本 * @author: wuxiaoxia * @update: wuxiaoxia (2016-08-01) */ $(function(){ $('.db_tab25').db_tabmotionbanner({ key: 'b28551', autorollingtime: 3000, bgspeed: 500, motion:{ db_1_1:{left:-50,opacity:0,speed:1000,delay:500}, db_1_2:{left:-50,opacity:0,speed:1000,delay:1000}, db_2_1:{top:50,opacity:0,speed:1000,delay:500}, db_2_2:{top:50,opacity:0,speed:1000,delay:1000}, db_3_1:{left:-50,opacity:0,speed:1000,delay:500}, db_3_2:{top:50,opacity:0,speed:1000,delay:1000}, end:null } }); $('.inewsimg').kxbdsupermarquee({ distance:485, time:3, btngo:{left:'.inewsr',right:'.inewsl'}, direction:'left' }); $('.iswitch .item').click(function(){ var num=$(this).index() $('.iswitch .morelink').attr('href',$(this).data('type')); $(this).addclass('current').siblings().removeclass('current'); $('.box .box-item').eq(num).addclass('current').siblings().removeclass('current'); }); $('.icaselist').kxbdsupermarquee({ distance:220, time:2, direction:'left' }); $('.icaselist a').mouseenter(function(e) { $(this).find('.info').stop(true,true).fadein('fast'); }).mouseleave(function(e) { $(this).find('.info').stop(true,true).fadeout('fast'); }); $('.about-switch a').click(function(){ $(this).addclass('current').siblings().removeclass('current'); $(this).parents('.clearfix').find('.box-item').eq($(this).index()).addclass('current').siblings().removeclass('current'); }); $('.indexcase-list').kxbdsupermarquee({ distance:380, time:3, btngo:{left:'.indexcaser',right:'.indexcasel'}, direction:'left' }); })