87,909
社区成员
发帖
与我相关
我的任务
分享
<style type="text/css">
.xx{ border:3px solid #FF6600;}
.oo{boder:0px}
</style>
<script>
function onpageload(){
setImgEvent()
}
function setImgEvent() {
var img=document.getElementById("img")
img.attachEvent("onmouseover", function(){show("xx")})
img.attachEvent("onmouseout", function(){hidde("oo")})
}
function show(e){
document.getElementById("img").className=e
}
function hidde(e){
document.getElementById("img").className=e
}
</script>
<body onload="onpageload()">
<img id="img" src="http://img1.qq.com/news/pics/13403/13403344.jpg" width="310" height="210">
</body>
img.onmouseout = function(){
menuMouseOut(this.id);
};
img.onmouseover = function(){
menuMouseIn(this.id);
};