鼠标滑过时图片效果
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>