代码如下:
HTML
HEAD
STYLE type='text/css'
.css1{
display:block;
width:100px;
height:100px;
background-color:blue;
}
.css2{
display:block;
width:100px;
height:100px;
background-color:red;
}
/STYLE
/HEAD
BODY
a href='#' class='css1' id=freeett/a
script src='jquery-1.3.2.js'
/script
script
$(document).ready(function(){
$("#freee").hover(function(){
$(this).addClass("css2");
}, function(){
$(this).removeClass("css2");
});
});
/...[ 查看全文 ]