我试图使用下面的函数来获得一个DIV从左向右滑动时点击,但它甚至没有移动。任何想法可能是什么问题。jQuery滑出效果问题
功能
<script type="text/javascript">
$("#teller").click(function() {
$(this).show("slide", { direction: "right" }, 1000);
});
</script>
DIV问题
<div id="teller">
<a href="#"><img src="images/teller.png" width="44" height="329" alt="Tell a freind button" />
</a>
</div><!-- End Teller -->
你s应该设置一个jsfiddle。编辑这一个,如果你需要:http://jsfiddle.net/4x8VC/ – sparebytes
你是否使用jQuery UI我认为? – jeschafe
...我很困惑。如果'#teller'应该滑出去,那怎么能成为发起事件的人呢?你是代码没有隐藏'#teller'的例子,但是如果你要“展示”它呢? – sparebytes