var swiper = new swiper('.banner', { spacebetween: 0, effect: 'fade', pagination: { el: '.page1', clickable: true, }, navigation: { nextel: '.swiper-button-next_ban', prevel: '.swiper-button-prev_ban', }, autoplay: { delay: 5000, disableoninteraction: false, }, }); var swiper2 = new swiper('.about .swiper-container', { pagination: { el: '.page_about', type: 'fraction', }, navigation: { nextel: '.swiper-button-next_about', prevel: '.swiper-button-prev_about', }, }); $(function(){ var oinput = $(".messbox input,.messbox textarea"); oinput.focus(function () { $(this).siblings("label").hide(); }); oinput.blur(function () { if($(this).val()==""){ $(this).siblings("label").show(); } }); }); function click_scroll() { var scroll_offset = jquery(".carousel-scroll").offset(); jquery("body,html").animate({ scrolltop:scroll_offset.top },450); }