ue, interTime:3500, vis:1, prevCell:".link_left2", nextCell:".link_right2", }); }); } $(window).scroll(function(){ if ((screen.width < 600)) { $(document).ready(function() { $(".event_box2").slide({ titCell: ".parHd2 li", mainCell: ".parBd", defaultPlay: false, titOnClassName: "act", prevCell: ".sPrev", nextCell: ".sNext",pnLoop:false }); $(".parHd2").slide({ mainCell: " ul", vis: 2, effect: "left", defaultPlay: false, prevCell: ".sPrev", nextCell: ".sNext" ,pnLoop:false,autoPage:true}) }); }else if(screen.width < 1200){ $(document).ready(function() { $(".event_box2").slide({ titCell: ".parHd2 li", mainCell: ".parBd", defaultPlay: false, titOnClassName: "act", prevCell: ".sPrev", nextCell: ".sNext",pnLoop:false }); $(".parHd2").slide({ mainCell: " ul", vis: 3, effect: "left", defaultPlay: false, prevCell: ".sPrev", nextCell: ".sNext" ,pnLoop:false,autoPage:true}) }); }else{ $(document).ready(function() { $(".event_box2").slide({ titCell: ".parHd2 li", mainCell: ".parBd", defaultPlay: false, titOnClassName: "act", prevCell: ".sPrev", nextCell: ".sNext",pnLoop:false }); $(".parHd2").slide({ mainCell: " ul", vis: 6, effect: "left", defaultPlay: false, prevCell: ".sPrev", nextCell: ".sNext" ,pnLoop:false,autoPage:true}) }); } });