<style type="text/css">
#show{
border:5px solid red;
}
</style>
<script type="text/javascript">
function showcolor(which,color,width){
if(document.all||document.getElementById){
which.style.borderColor=color;
which.style.width=width;
}
}
</script>
<body>
<img src="./Images/1.jpg"
style="width:470px;height:350px;"
id="show"
οnmοuseοver="showcolor(this,'blue','500px')"
οnmοuseοut="showcolor(this,'#cfb200','200px')">
</body>
js给图片设置鼠标滑过去的变化
最新推荐文章于 2022-12-28 21:39:50 发布