<!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>图片预览</title>
<script type="text/javascript">
function Preview(my) {
document.getElementById("pic").filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = my.value;
}
</script>
</head>
<body>
<input type="file" οnchange="Preview(this);" />
<div id="pic" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:100px;height:100px;"></div>
</body>
</html>
<a href="http://js.alixixi.com/">欢迎访问阿里西西网页特效代码站,js.alixixi.com</a>
转载于:https://www.cnblogs.com/slcc/archive/2012/05/18/2508247.html