<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>wwjj</title>
<script type="text/javascript">
function abc()
{
if(navigator.userAgent.toLowerCase().indexOf("ie")!=-1)
document.getElementById("abimg").src=document.getElementById("fid").value;
else
{
var vv=document.getElementById("fid").files[0].getAsDataURL(); document.getElementById("abimg").src=vv;
}
}
</script>
</head>
<body>
<input type="file" id="fid" onchange="abc()">
<img id="abimg">
</body>
</html>