Programming/HTML & Java Script
이미지 파일을 업로드할때 사이즈 얻어오는 방법
sonhc
2006. 8. 17. 09:02
<img src="" id=i0 =chk()>
<input type=file id=fl onchange="i0.src=this.value">
<script>
function chk() {
a=document.images.i0;
alert(a.width+'x'+a.height+'='+a.fileSize);
}
</script>
<input type=file id=fl onchange="i0.src=this.value">
<script>
function chk() {
a=document.images.i0;
alert(a.width+'x'+a.height+'='+a.fileSize);
}
</script>