<OBJECT id="min" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM name="Command" value="Minimize">
</OBJECT>
<button onClick="min.Click()"><font face="webdings">0</font></button>
这个不好用,有其他解决方法吗?
<PARAM name="Command" value="Minimize">
</OBJECT>
<button onClick="min.Click()"><font face="webdings">0</font></button>
这个不好用,有其他解决方法吗?
var alwaysLowered = false;
function Minimize() {
window.innerWidth = 100;
window.innerHeight = 100;
window.screenX = screen.width;
window.screenY = screen.height;
alwaysLowered = true;
} function Maximize() {
window.innerWidth = screen.width;
window.innerHeight = screen.height;
window.screenX = 0;
window.screenY = 0;
alwaysLowered = false;
}
</SCRIPT><A HREF="javascript:void(Minimize());">Minimize</A>
<A HREF="javascript:void(Maximize());">Maximize</A>
window.innerHeight = 100; 没innerWidth与innerHeight属性吧
可惜浏览器里基本都默认把这些操作禁止了。楼主有兴趣的话可以打开IE的Internet选项看看。
<html>
<head>
<title>Example </title>
<script type="text/javascript">
function makeMin(){
window.blur();
}</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body><span>
<br>
<b>页面最小化问题.....</b>
<br><br>
created: 2009-11-27<br>
author: shenzhenNBA
</span>
<p> </p>
<p> </p>
<p> </p>
<p> <input name="btn" type="button" value="页面最小化" onClick="javascript:makeMin();"></p>
</body>
</html>
有分不?