亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        上傳前判斷圖片大小

        字號(hào):


            <script>
            var img=null;
            function s()
            {
            if(img)img.removenode(true);
            img=document.createelement(img);
            img.style.position=absolute;
            img.style.visibility=hidden;
            img.attachevent(onreadystatechange,orsc);
            img.attachevent(onerror,oe);
            document.body.insertadjacentelement(beforeend,img);
            img.src=inp.value;
            }
            function oe()
            {
            alert(cant load img);
            }
            function orsc()
            {
            if(img.readystate!=complete)return false;
            alert(圖片大?。?img.offsetwidth+x+img.offsetheight);
            alert(圖片尺寸:+img.filesize);
            }
            </script>
            <input id=inp type=file>
            <br>
            <button onclick=s()>test</button>