<script>
$('#nw').hover(
function(){$(this).css('background','#000')}, //鼠标移入
function(){$(this).css('background','#CCC')} //鼠标移出
);
hover(over,in),其中over是鼠标移入的函数,in是鼠标移出的函数。
<script>
$('#nw').hover(
function(){$(this).css('background','#000')}, //鼠标移入
function(){$(this).css('background','#CCC')} //鼠标移出
);
hover(over,in),其中over是鼠标移入的函数,in是鼠标移出的函数。