预览本地图片的js脚本

菠菜 posted @ 2009年2月25日 18:04 in JavaScript with tags js 图片 , 1126 阅读

//本脚本需要prototype 支持

 

function show(el){

if(Prototype.Browser.IE){
                $('imgLogo').src = "file://"+ el.value;
            }
            else{
                $("imgLogo").src = el.files[0].getAsDataURL();
            }

}

 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter