603628股票行情:急!关于网页最小化窗口代码的问题

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/23 19:23:34
下面是我的文件代码:
为什么放在一个文件里可以,全部复制到另一个文件就不行了.....
是不是HTML的可以,ASP就不行?
有没有其他可以最小化的代码.一定行的..

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>JaveScript最小化窗口代码<br />

<SCRIPT>function runEx(){var winEx = window.open(’’, ’’, ’resizable,scrollbars’); winEx.document.open(’text/html’, ’replace’);winEx.document.write(unescape(event.srcElement.parentElement.children[2].value));}</SCRIPT>

HTML代码如下:
<BR><script> function MinimizeWindow() {
var str="<object id=minw type='application/x-oleobject' classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'><param name='Command' value='MINIMIZE'></object>";
if(document.body)
{
if(!document.getElementById("minw"))document.body.insertAdjacentHTML("BeforeEnd",str);
minw.Click();
}
else
{
document.write(str+"<script>minw.Click()</scrip"+"t>");
} } </script>
<input type="button" onclick="MinimizeWindow();" value="点我就不是当前窗口了"><br>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1024" height="600">
<param name="movie" value="http://127.0.0.1/QQBB/web/flash/index.swf">
<param name="quality" value="high">
<embed src="http://127.0.0.1/QQBB/web/flash/index.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1024" height="600"></embed>
</object>
</body>
</html>

当然不行了,注意下面的内容:
<head> </head> 之间是文件头的内容
<body> </body> 是网页主体内容。

你需要最小化窗口,只需要复制该功能的代码就行。多了肯定有问题。
参考:http://biz.cnhoo.com/wz/xgsyxx/default1.asp?lan=gb&catid=261047&contentid=77279

加我QQ:108603789