精彩的变色文字 dn001 2009-06-21 08:30:03 <!--把如下代码加入<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="Sina " class="initial2" onClick="jumpto2('http://sina.com.cn')"> <input type="button" value="Sohu " class="initial2" onClick="jumpto2('http://Sohu.com')"> </form>