2012年5月31日 星期四

自定義file類型input框樣式的方法





<BODY>
<BR><BR><BR>
<form method="post" action="" enctype="multipart/form-data">
<input type="file" id="pic1" onchange="pic1_name.value=this.value" name="pic1" style="position:absolute;filter:alpha(opacity=0);" size="1" hidefocus>
            <img src="images/iBT_preview.png" alt="" width="90" height="45" border="0" id="BT_preview"  onmousemove="pic1.style.pixelLeft=event.x-60;f.style.pixelTop=this.offsetTop;" onclick="pic1.click()"/>
            </div>
            <div class="txt13px_gray" id="iA-PostNews-PhotoNote1input_">
              <input name="pic1_name" type="text" class="FormInput" id="pic1_name" size="45" />
            </div>
</form>
</BODY>

沒有留言:

張貼留言