Yanor.net/
Wiki
Blog
GitHub
Sandbox
開始行:
* イベント [#h6616c23]
** クリックイベント [#q21bb095]
*** 設定 [#h72ea341]
$('a').click(function(){
$(this).css('color', 'red');
});
*** 実行 [#g9c8e99d]
$('a').click();
** マウスオーバー [#d9fde433]
*** mouseover() / mouseout() [#e7dfdd66]
$('li')
.mouseover(
function(){
$(this).css('color', 'red');
})
.mouseout(
function(){
$(this).css('color', 'blue');
}
);
*** hover() [#s199bf83]
$('li')
.hover(
function(){
$(this).css('color', 'red');
},
function(){
$(this).css('color', 'blue');
}
);
終了行:
* イベント [#h6616c23]
** クリックイベント [#q21bb095]
*** 設定 [#h72ea341]
$('a').click(function(){
$(this).css('color', 'red');
});
*** 実行 [#g9c8e99d]
$('a').click();
** マウスオーバー [#d9fde433]
*** mouseover() / mouseout() [#e7dfdd66]
$('li')
.mouseover(
function(){
$(this).css('color', 'red');
})
.mouseout(
function(){
$(this).css('color', 'blue');
}
);
*** hover() [#s199bf83]
$('li')
.hover(
function(){
$(this).css('color', 'red');
},
function(){
$(this).css('color', 'blue');
}
);
ページ名: