<script type="text/javascript">
function CloseWin() //这个会提示是否关闭浏览器
{
window.opener=null;
window.open("","_self");
window.close();
}
//如果在框架中关闭整个框架页面的话如下
//这个是不提示关闭
function  aa  (   )
      {
         
           if (window.confirm('您确认要退出系统吗?'))
           {
             top.opener=null;
             top.open("","_self");
             top.close();
             window.close;
            
            }
         else
          {return false;}
        
       
       
      }

function Preview(imgFile)
{
document.getElementById("pic").filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgFile.value;
var img=new Image();
img.src=imgFile.value;
alert(img.fileSize);
alert(img.width);
alert(img.height);
}
</script>

<a href="javascript:CloseWin();"> 点击这里无提示关闭当前窗口</a><br />

请选择要预览的图片:<input type="file" onchange="javascript:Preview(this);" /><br />
<div ></div>

 

源文件下载:/Files/chinhr/ie6--7.htm

相关文章:

  • 2021-08-17
  • 2021-10-26
  • 2022-03-09
  • 2021-05-21
  • 2022-02-20
  • 2021-07-21
猜你喜欢
  • 2021-12-07
  • 2021-12-26
  • 2021-06-26
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案