發新話題
打印

滑鼠經過圖檔出現框線

滑鼠經過圖檔出現框線

<script language="JavaScript1.2">
function borderit(which,color){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
which.style.borderColor=color
}
}

</script>
<p align="center"><img src="http://bunbun000.com/images/01.gif" class="borderimage" onMouseover="borderit(this,'black')" onMouseout="borderit(this,'white')" width="80" height="80">
<img src="http://bunbun000.com/images/02.gif" class="borderimage" onMouseover="borderit(this,'black')" onMouseout="borderit(this,'white')" width="80" height="80">
<img src="http://bunbun000.com/images/03.gif" class="borderimage" onMouseover="borderit(this,'black')" onMouseout="borderit(this,'white')" width="80" height="80">
<img src="http://bunbun000.com/images/04.gif" class="borderimage" onMouseover="borderit(this,'black')" onMouseout="borderit(this,'white')" width="80" height="80"></p>

<style>
.borderimage{
border:1px solid white;
}
</style>











http://bunbun000.com/image/01.gif <<< 圖檔可自己更改
width="80" height="80" <<< 跟圖檔之大小更改

TOP

複製上列語法



我唔係人.........

TOP