<div class="codetitle"> <span><a style="CURSOR: pointer" data="40856" class="copybut" id="copybut40856" onclick="doCopy('code40856')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code40856"> <br><br><br><br><br><br><title>回應滑鼠自動選取文字方塊內容</title> <br><br><br><input id="a" type="text" value="請輸入搜尋字" onmouseover=" selectInputContent(this.id)"><br><script type="text/javascript"><BR>function selectInputContent(n){<BR> obj =document.getElementById(n);<BR> obj.cus( );<BR> obj.select();<BR>}<BR></script> </div>