 |
|
|  |
| 파일업로드(찾아보기버튼)를 이미지로 변경 하기 |
|
|
 |
16년 전 |
간단 하게 설명드리자면
type = file 인 input 태그를 숨키고 이미지 주소를 받을수잇는 text 박스를 만들고
이미지를 클릭시에 이벤트가 실행되어 file1 이라는 file 을 실행시켜 file2 에 해당 경로를
넣어주시는 것 입니다.
예제)
<input type=file name='file1' style='display: none;'>
<input type='text' name='file2' id='file2'>
<img src='이미지경로' border='0' onclick='document.all.file1.click(); document.all.file2.value=document.all.file1.value'> |
|
추천 : 458 |
추천
목록
|
|
|  |
|