夺命雷公狗jquery---19事件切换hover

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="js/jquery.js"></script>
        <script>
            $(function(){
                $('img').hover(function(){
                    $('#result').html('GOGOGO');
                },function(){
                    $('#result').html('out-out');
                })
            })
        </script>
    </head>
    <body>
        <img src="images/1.jpg" width='100' height='100'>
        <hr />
        <div id="result"></div>
    </body>
</html>

 

posted @ 2015-10-26 13:14  夺命雷公狗  阅读(144)  评论(0编辑  收藏  举报