<html>
<head>
<script type="text/javascript">
function selectFile(oFile,imgname)
{
if(oFile.value=="") return;
var pos = oFile.value.lastIndexOf(".");
var pos2 = oFile.value.lastIndexOf("//");
document.getElementById(imgname).filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src=oFile.value;
}
</script>
</head>
<body>
<input type='file' id='OBJSRC' name='OBJSRC' οnchange="selectFile(this,'OBJ');" style='width:300px;'/>
<div id="OBJ" style="vertical-align:middle;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image,src=/hztech/images/tpyl.gif);width:400px;height:400px;"/>
</div>
</body>
</html>
DXImageTransform.Microsoft.AlphaImageLoader实例
最新推荐文章于 2021-08-03 11:23:56 发布