0
我试图修改代码:JQuery的高度设置
<script type="text/javascript">
$(function() {
$('#accordion > li').hover(
function() {
var $this = $(this);
$this.stop().animate({'height':'400px'},500);
$('.description',$this).stop(true,true).fadeIn();
},
function() {
var $this = $(this);
$this.stop().animate({'height':'39px'},1000);
$('.description',$this).stop(true,true).fadeOut(500);
}
);
});
</script>
,这样我可以做一个垂直的手风琴,我做成功。但是我希望手风琴在链接上停止点击(选择)。请帮忙
'我想手风琴停在点击(上选择)上link' - 你想悬停在链接上的用户点击后停止。如果您你可以简单地解除mouseenter和mouseleave事件的绑定。例如:'.unbind('mouseenter mouseleave');' – 2012-04-19 19:13:42