开发者

jQuery Plug-ins

开发者 https://www.devze.com 2022-12-31 09:11 出处:网络
I am looking for a jQuery plug-in which will show / hi开发者_如何学Cde a div in a very smooth & slide manners when I click on a link.

I am looking for a jQuery plug-in which will show / hi开发者_如何学Cde a div in a very smooth & slide manners when I click on a link.

Do anyone have any idea or URL? Thanks.


See demo here :)

You can simply do like:

<style type="text/css">
#dv {
  width:100px;
  height:100px;
}
</style>

<a href="#" id="link">Slide Div</a>
<div id="dv">Some Content</div>

<script type="text/javascript">
$(function(){
  $('#link').click(function(){
    $('#dv').slideToggle('slow');
    return false;
  });
});
</script>


You don't need plugins for that; that's supported in jQuery out of the box:

$('#myLink').click(function() {
    $('#myDiv').slideToggle('fast');
}
0

精彩评论

暂无评论...
验证码 换一张
取 消