[html] input type="file" 버튼을 이미지로 교체하기
로빈아빠
본문
<script type="text/javascript" language="javascript">
function imgfile()
{
document.testform.file1.click();
document.testform.text1.value=document.testform.file1.value;
}
</script>
<form name="testform">
<input type="file" name="file1" style="display='none';">
<input type="text" name="text1" size="50">
[a href="javascript:imgfile();"]파일찾기 [img src=http://cafeimg.hanmail.net/top6/mini_daum/daum_logo.gif border=0][/a]
</form>
function imgfile()
{
document.testform.file1.click();
document.testform.text1.value=document.testform.file1.value;
}
</script>
<form name="testform">
<input type="file" name="file1" style="display='none';">
<input type="text" name="text1" size="50">
[a href="javascript:imgfile();"]파일찾기 [img src=http://cafeimg.hanmail.net/top6/mini_daum/daum_logo.gif border=0][/a]
</form>
관련링크
댓글목록
등록된 댓글이 없습니다.