$( "p" ).dblclick( function () {
$( this ).css( "color" , "green" );
})
$( "p" ).mouseenter( function () {
$( this ).text( "鼠标指针穿过元素" );
})
$( "p" ).mouseleave( function () {
$( this ).text( "鼠标指针离开元素" );<br>})
$( "p" ).mousedown( function () {
$( this ).text( "鼠标指针移动到元素上方,并按下鼠标按键" );
})
$( "p" ).mouseup( function () {
$( this ).text( "在元素上松开鼠标按钮时" );
})
$( ":text" ).focus( function () {
$( this ).val( "元素获得焦点" );
})
$( ":text" ).blur( function () {
$( this ).val( "元素失去焦点" );
})
|