中文(繁体)
<!-- 將以下程式碼加入<body>區域--> <style> <!-- .initial2{font-weight:bold;background-color:lime} //--> </style> <script> <!-- function change(color){ var el=event.srcElement if (el.tagName=="INPUT"&&el.type=="button") event.srcElement.style.backgroundColor=color } function Jumpto2(url) { window.location=url } //--> </script> <form onMouseover="change('yellow')" onMouseout="change('lime')"> <input type="button" value="新浪" class="initial2" onClick="jumpto2('http://sina.com.cn')"> <input type="button" value="搜狐" class="initial2" onClick="jumpto2('http: //搜狐網')"> </form>