1 在工作中,客户需求为 在系统中查看图片,最好用电子书的方式查看,其中涉及到全屏的功能,我从网上摘抄一下,又做了点修改,代码如下:
<html>
<head>
<title>123</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
<!--
function omiga_window(){
window.open("full_window.htm","","fullscreen,scrollbars")
}
//-- >
</script>
</head>
<body οnlοad="omiga_window()" οnblur="focus();closes.Click();" scroll="no">
<object id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object >
<p> </p>
<p> </p>
全屏!
</body>
</html>
<html>
<head>
<title>123</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
<!--
function shutdown(){
window.close();
}
//-- >
</script>
</head>
<body>
<input type="button" value="退出全屏" οnclick="shutdown()"/>
</body>
</html>