jQuery实现小动画

 <script type="text/javascript">

       

        //展开图片或收缩图片         $(function () {

            $('#Button3').click(function () {                 $('#img').show(5000);             })

            $('#Button4').click(function () {                 $('#img').hide(5000);             })         })     </script> < /head> < body>     <img alt="" id="img"  src="images/16.jpg" />         <input id="Button3" type="button" value="Show Img" />

        <input id="Button4" type="button" value="Hide Img" />

</body>

posted @ 2013-04-18 14:57  奇奇博客  阅读(138)  评论(0编辑  收藏  举报