《文本域美化<

<script>document.write("<center><b>文本域美化</b>")</script>
<script>document.write("</center><p>")</script>
1。样式一:<br>
      <br><input   type=file   id=file1 style="display:none"

onpropertychange="javascript:t1.value=this.value;">
<input type=text id=t1>
<img src="http://www.v404.cn/skins/vip/Skin/sk0/img/01.gif" width="43" height="11" style="cursor:hand" onClick="javascript:file1.click();"><br>
<br>
代码如下:<br>
<br>

<input type=file id=file1 style="display:none"
onpropertychange="javascript:t1.value=this.value;">
<input type=text id=t1>
<img src="a.gif" style="cursor:hand" onclick="javascript:file1.click();">

<br>
2。样式二:<br>
<br><input type="file" id="file2" style="display:none"

onpropertychange="javascript:t2.value=this.value;">
<input type="text" id="t2" onClick="javascript:file2.click();" value="点击这里"><br><br>
代码如下:<br>
<br>
&lt;input type=&quot;file&quot; id=&quot;file2&quot; style=&quot;display:none&quot; <br>onpropertychange=&quot;javascript:t2.value=this.value;&quot;&gt;<br>&lt;input type=&quot;text&quot; id=&quot;t2&quot; onclick=&quot;javascript:file2.click();&quot; value=&quot;点击这里&quot;&gt;<br>
<br><br><br><br><br>

posted @ 2010-09-29 15:03  肚肚  阅读(213)  评论(0编辑  收藏  举报