<head>
    <title></title>
    <style type="text/css">
        .imgclass
        {           
            width: 300px;
            height: 300px;
            border: solid 1px red;
            position:relative; left:100px; top:100px;
        }
        img
        {
            position:absolute;
            top:10px;
            left:10px;
            height:100px;
            width:100px;
            }
        td
        {
            width:300px;
            height:300px;
            }
    </style>
    <script src="jquery-1.9.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('img').click(function () {
                //$('img').css({width:'500px',height:'500px'});
                //$('img').animate({width:'500px',height:'500px'}, 2000);
                $(this).animate({ width: '500px' }, 2000).animate({ height: '500px' }, 2000).animate({ left: '+=100px' }, 2000).animate({ top: '-=100px' }, 2000);
            })


            $('#Button1').click(function () {
                $('#spinfo').animate({ fontSize: '40px' }, 2000);
            })

            $('#Button2').click(function () {
                $('img').stop();
            })

            $('#Button3').click(function () {
                $('img').delay(2000).hide(2000);
            })

            $('#Button4').bind('click', function () {
                $('img').fadeIn(2000, function () {
                    $('#Button4').val("哈哈");
                })
            })

            $('#Button5').click(function () {
                $('img').fadeOut(2000, function () {
                    $('#Button5').val("嗯嗯");
                })
            })
            $('#Button6').click(function () {
                $('img').fadeTo(2000, 0.5, function () {
                    $('#Button6').val("呵呵");
                })
            })

            $('#Button7').click(function () {
                $('img').slideUp(2000);
            })
            $('#Button8').click(function () {
                $('img').slideDown(2000);
            })
            $('#Button9').click(function () {
                $('img').slideToggle(2000)
            })
        })
    </script>
</head>
<body>
    <input />
</body>

相关文章:

  • 2022-01-28
  • 2021-11-05
  • 2021-11-05
  • 2021-11-05
  • 2021-11-05
  • 2021-11-05
猜你喜欢
  • 2021-12-07
  • 2022-12-23
  • 2021-12-01
  • 2022-03-15
  • 2022-12-23
  • 2021-10-30
  • 2021-09-12
相关资源
相似解决方案