はてなブログで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>
テスト
動いてるな。