<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://www.learningjquery.com/js/jquery-1.7.1.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js">
</script>
<script>
$(document).ready(function(){
$('.homeslider, #left, #right').hover(function(){
$('.slidercaptions').animate({"height": "47px", "padding-top": "25px"}, {duration: 10, easing: 'easeOutBounce'});
}, function(){
$('.slidercaptions').animate({"height": "0", "padding-top": "0"}, 10);
})
})
</script>
一旦懸停在.homeslider元素.slidercaptions應該獲得高度和反彈。我不知道我做錯了什麼。任何線索將不勝感激。謝謝WordPress的 - jQuery的 - easeOutBounce不工作
P.S. 我還收錄了Easing插件。
<?php
wp_enqueue_script('easing');
wp_enqueue_script('jquery-easing', get_template_directory_uri() . '/js/jquery.easing.1.3.js', false);
?>