标签:
<td width="100%" height="20" class="f9pt" align="center"> <font color="#346F0E">下载</font> <input type="text" name="wd" size="40" onMouseOver="this.focus()" onFocus="this.select()" style="margin-bottom:-5px;font-size:16px;height:1.78em;font-family:arial,sans-serif,宋体;padding-top:2px;padding-left:1px" maxlength="100"> </td>
<link rel=”stylesheet” type=”text/css” href=”test.css” /> <td class="f9pt myTd"> <span class=”myFont”>下载</span> <input type=”text” name=”wd” size=”40” id=”myInput” maxlength=”100” /> </td> <script type=”text/Javascript” src=”test.js”></script>
.myTd{width:100%;height:20px;text-align:center;} .myFont{color:#346F0E;} #myInput{margin-bottom:-5px;font-size:16px;height:1.78em;font-family:arial,sansserif,宋体;padding-top:2px;padding-left:1px}
var myInput = document.getElementById(“myInput”); myInput.onmouseover = function(){ this.focus(); } myInput.onfocus = function(){ this.select(); }
<style type=”text/CSS”> .myTd{width:100%;height:20px;text-align:center;} .myFont{color:#346F0E;} #myInput{margin-bottom:-5px;font-size:16px;height:1.78em;font-family:arial,sansserif,宋体;padding-top:2px;padding-left:1px} </style>
<td class="f9pt myTd">
<span class=”myFont”>下载</span>
<input type=”text” name=”wd” size=”40” id=”myInput” maxlength=”100” />
</td> <script type=”text/Javascript”> var myInput = document.getElementById(“myInput”); myInput.onmouseover = function(){ this.focus(); } myInput.onfocus = function(){ this.select(); } </script>
标签:
原文地址:http://www.cnblogs.com/xiaoloulan/p/5694202.html