<!-- 把如下代碼加入<body>區域中 -->
<input type="button" value="移過來試試" style="border:1 black solid;background:#f4f4f4" onmouseover="tst(this,'red','#ffffff')" onmouSEOut="tst(this,'black','#f4f4f4')">
<script>
function tst(obj0,obj1,obj2){
obj0.style.border="1 "+obj1+" solid";
obj0.style.background=obj2;
}
</script>