<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title> 光標聚焦事件 </title>? <script type="text/javascript">? ? function message(){ ?alert("請選擇,您現在的職業!"); }, function message1(){ ? ?var new2=document.getElementById("new1"); ? ?new2.style.backgroundColor="pink"; ? ? }? </script></head><body>? <form>? ? ? <input onmouseover="message()" value="請選擇您的職業:">? ? <select name="career" id="new1" onfocus="message1()">?? ? ? <option>學生</option>?? ? ? <option>教師</option>?? ? ? <option>工程師</option>?? ? ? <option>演員</option>?? ? ? <option>會計</option>?? ? </select>?? </form></body></html>
鼠標經過的效果出不來,幫我看看哪里寫錯了
慕用7797256
2018-03-13 13:57:37