圖加框框

檔案下載 : 1  2  3  4

將下列程式碼複製至<head>程式碼</head>區內

<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="image10.gif" class="borderimage" onMouseover="borderit(this,'black')" onMouseout="borderit(this,'white')" width="40" height="40">
<img src="image11.gif" class="borderimage" onMouseover="borderit(this,'black')" onMouseout="borderit(this,'white')" width="40" height="40">
<img src="image12.gif" class="borderimage" onMouseover="borderit(this,'black')" onMouseout="borderit(this,'white')" width="40" height="40">
<img src="image13.gif" class="borderimage" onMouseover="borderit(this,'black')" onMouseout="borderit(this,'white')" width="40" height="40"></p>

下列程式碼複製至<body>程式碼</body>之間

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