日期:2014-05-16  浏览次数:20348 次

我的电脑为什么不支持关闭IE窗口的对象?
我的代码是这样写的

<OBJECT   id= "min "   type= "application/x-oleobject "   classid= "clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11 "   VIEWASTEXT>
<PARAM   name= "Command "   value= "Minimize ">
</OBJECT>

min.Click();


提示不支持该对象,很郁闷,电脑没重装之前是可以的。请高手指点

------解决方案--------------------
安全性设置的问题
------解决方案--------------------
IE升级了吧?
------解决方案--------------------
用IE6试试,如果不行,再看看安全性
------解决方案--------------------
你的那个控件没有被运行.你需要设置一下IE安全级别.
------解决方案--------------------
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<title> test </title>
<script type= "text/javascript ">
function mm()
{
var min2=document.getElementById( 'min ');
min2.Click();
}
</script>
</head>
<body>
<form name= "form1 " method= "post " action= " ">
<OBJECT id= "min " type= "application/x-oleobject " classid= "clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11 " VIEWASTEXT>
<PARAM name= "Command " value= "Minimize ">
</OBJECT>
<input type= "button " onClick= "mm() " value= "Click ME "/>
</form>
</body>
</html>