149、带彩色边框的图片

149、带彩色边框的图片

脚本说明:

把如下代码加入<body>区域中

<style>

.borderimage{

border:1px solid white;

}

</style>

<script language="JavaScript1.2">

 

function borderit(which,color){

//if IE 4+ or NS 6+

if (document.all||document.getElementById){

which.style.borderColor=color

}

}

</script>

<img src="yourimage.gif" class="borderimage" onMouseover="borderit(this,'blue')" onMouseout="borderit(this,'white')">

 

Write a comment

Comments: 0