我想做个 当鼠标滑到图片上时这张图片变大 鼠标移开时图片还原 大哥们  教教我吧 

解决方案 »

  1.   


    <body>
    <script src="jquery.js" type="text/javascript"></script>
    <img id="pic" src="1.jpg" width="113" height="59" />
    <script>
    var obj = $("#pic");
    var oldW = obj.attr("width");
    var oldH = obj.attr("height");

    obj.bind("mouseover", function(){
    $(this).attr({"width":300, "height":300});
    }).bind("mouseout", function(){
    $(this).attr({"width":oldW, "height":oldH});
    });
    </script>
    </body>
      

  2.   

    1楼大哥 jquery 库是什么呢?能不能 给我个 呢?
      

  3.   

    [email protected]  谢了啊