업로드전에 파일 사이즈 구하기 > script

본문 바로가기
사이트 내 전체검색

script

업로드전에 파일 사이즈 구하기

페이지 정보

작성자 서방님 댓글 0건 조회 180회 작성일 06-09-12 17:01

본문

<form> 
    <input type="file" onChange="getFileSize( this.value );">
    <img name="tempFile" id="tempFile" width="0" height="0"> 

    <br>
    <span id="sizeReport" style="color:red"></span>  Bytes

    <script language=javascript>
    function getFileSize( path )
    {
        var fileObj = document.getElementById("tempFile");
        fileObj.dynsrc = path;
        document.getElementById("sizeReport").innerText = fileObj.fileSize;
    }
    </script>
</form>

http://libphp.com/

댓글목록

등록된 댓글이 없습니다.

Total 846건 55 페이지
게시물 검색

회원로그인

접속자집계

오늘
106
어제
190
최대
1,347
전체
167,514
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.