barutanGNE's blog

kindleで読んだ本の感想や、プログラミングに関する記事など。

はてなブログでjQueryテスト

ソースコード

  <div id="box" style="width:100px; height:100px; background: red;"> </div>

  <script>
    $(function() {
      $("#box").mouseover( function(){
        $(this).css("background","green");
      })
      .mouseout( function(){
        $(this).css("background","red");
      });
    })
  </script>

テスト


動いてるな。