var swiper = new Swiper('.swiper-container', { spaceBetween: 0, centeredSlides: true, autoplay:true, pagination: { el: '.swiper-pagination', clickable: true }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' } }); var movie_name; $('.buy_hot_movie').mouseover(function(){ movie_name = $(this).html(); $(this).css('background','orangered'); $(this).css('color','white'); $(this).html('点击购票'); }).mouseleave(function(){ $(this).css('background','#F0FFFF'); $(this).css('color','darkorange'); $(this).html(movie_name) }); $('.buy_after_movie').mouseover(function(){ movie_name = $(this).html(); $(this).css('background','orangered'); $(this).css('color','white'); $(this).html('点击预约'); }).mouseleave(function(){ $(this).css('background','#F0FFFF'); $(this).css('color','darkorange'); $(this).html(movie_name) }); $('.buy_ago_movie').mouseover(function(){ movie_name = $(this).html(); $(this).css('background','orangered'); $(this).css('color','white'); $(this).html('查看详情'); }).mouseleave(function(){ $(this).css('background','#F0FFFF'); $(this).css('color','darkorange'); $(this).html(movie_name) }); $('.navbar li').mouseover(function(){ $(this).children().css('color','#FF7F50') }).mouseleave(function(){ $(this).children().css('color','white'); $('.first_page').css('color','orangered') }); $('.hot_right_movie_list a li').mouseover(function(){ $(this).css('background','#FF7F50'); $(this).css('color','white'); }).mouseleave(function(){ $(this).css('background','white'); $(this).css('color','black'); })