鼠标滑过时图片效果

1 <script language="JavaScript">
2 function borderit(which,color){
3 if (document.all||document.getElementById){
4 which.style.borderColor=color
5 }
6 }
7 </script>
<div class="k_kuang"><img class="borderimage" onMouseover="borderit(this,'#cccccc')" onMouseout="borderit(this,'white')" src="images/bb_fanke.jpg" width="229" height="254" />
</div>
<style>
.borderimage{
border:2px solid #ffffff;
}
</style>
posted on 2012-10-26 14:19  小怪兽打得过奥特曼  阅读(134)  评论(0编辑  收藏  举报