(function ($) { $(document).ready(function () { $(".newsbb li").hover(function () { var nindex = $(".newsbb li").index(this); $(".news_roll .dlwrap span:eq(" + nindex + ")").removeclass().addclass("active"); $(".news_roll .dlwrap span:eq(" + nindex + ")").siblings("span").removeclass(); $(".news_roll li:eq(" + nindex + ")").fadein(); $(".news_roll li:eq(" + nindex + ")").siblings().fadeout(); $(".newsbb li:eq(" + nindex + ")").removeclass().addclass("active"); $(".newsbb li:eq(" + nindex + ")").siblings().removeclass(); }) $(document).ready(function () { try{ var showpicture3 = new pictureshows( 'picture_box2', //外层样式名称 'slide', //运动模式 slide,opacity,stack(需加参数,方法为:stack_个数_间距) stack_5_2,side false, //是否有箭头 true, //是否自动 '3000', //自动播放间隔时间 true, //是否有banner上的按钮 false, //是否有缩略图 "cancel", //滚动条 滚动:scroll,箭头切换:scroll_arrow,切换和箭头:scroll_and_sj,取消:cancel 5, //缩略图显示数量 500, //运动速度 0 ); }catch(e){} }) }); })(jquery);