※ 變化顏色的按鈕 ※
|
<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> <br> </p> <form onMouseover="change('red')" onMouseout="change('lime')"> <p align="center"><input type="button" value="本站新聞" class="initial2" onClick="jumpto2('news.htm')"> <input type="button" value="即時新聞" class="initial2" onClick="jumpto2('new.htm')"> <input type="button" value="網頁概論" class="initial2" onClick="jumpto2('html.htm')"> </form> |