<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
$('img#id').mouseover(function(){
$(this).css("property","value");
});
它需要jQuery ..
///////////////////////////////////////// ///////////////////////////////
var elem = document.getElementById("id"); //your img id is passed in here
elem.onmouseover= function(){
this.style.yourPropertiesInCamelCase = "value";
}
///////////////////////////////////////// ////////////////////////////////////////////////////ps:如果您不知道它是什么是...小心“纯”Javascript 中的 css 属性。可能存在浏览器不一致...您的代码可能无法跨浏览器...