- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <title>无标题页</title>
- <style type="text/css">
- #newPreview
- {
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);
- }
- </style>
- <script type="text/javascript" language="javascript">
- <!--
- function PreviewImg(imgFile)
- {
- var newPreview = document.getElementById("newPreview");
- newPreview.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgFile.value;
- newPreview.style.width = "80px";
- newPreview.style.height = "60px";
- }
- -->
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <input type="file" size="20" οnchange="javascript:PreviewImg(this);" />
- <div id="newPreview"></div>
- </form>
- </body>
- </html>
上传图片预览
最新推荐文章于 2024-09-08 21:29:56 发布