<samp>素材图片:</samp><input id="img" type="file" runat="server" οnchange="ViewPic()" />
<samp>图片预览:</samp><span id="picfrm" class="a" style="width:230px;height:180px;display:block;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);"></span>
<script type="text/javascript">
function ViewPic()
{
imgStr = document.getElementById("img").value;
document.getElementById("picfrm").filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = document.getElementById("img").value;
}
</script>