イベント

クリックイベント

設定

 $('a').click(function(){
    $(this).css('color', 'red');
 });

実行

 $('a').click();

マウスオーバー

mouseover() / mouseout()

 $('li')
 .mouseover(
     function(){
         $(this).css('color', 'red');
     })
 .mouseout(
     function(){
         $(this).css('color', 'blue');
     }
  );

hover()

 $('li')
 .hover(
     function(){
         $(this).css('color', 'red');
     },
     function(){
         $(this).css('color', 'blue');
     }
  );

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2013-04-14 (日) 20:10:29