怎样用javascript实现网页真正的全屏, 包括工具栏,状态栏,地址栏都要隐藏了,只有当点击自己设定的提交按钮后,才可以离开全屏网页.怎样实现.多谢了...
解决方案 »
- PHP中的JS删除、保存功能怎样与数据库交互?
- 菜鸟求教
- 向链接发送请求,但不显示网页
- 框架集里面的多个表格ID,是否可以用函数或者变量代替? 解决马上可以送50分!
- 关于event.srcElement
- 高分求解:为什么我的一个网页的javascript代码不起作用?
- 求正则!><1>用户名长度为4-20个字符,由a-z的英文字母、0-9的数字、点、减号或下划线组成。<2>密码可使用长度为8-16的任何字符(包括字母标
- 我要通过鼠标拖动表格宽度变化不知错在哪
- javascript 真有那么好吗??(在线)
- 请问一个css样式的问题,大家进来看看
- mztreeview控件expand方法问题,急!!!!
- 请问javascript数组对象引用问题?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script language="javascript" src="smAjax.js"></script>
<script language="javascript">
function Init()
{ window.moveTo(0,0);
window.resizeTo(window.screen.width,window.screen.height);
}
</script>
</head>
<body onload="Init()">
</body>
</html>
<script language="JavaScript" type="text/JavaScript">
window.open('index.html','star','fullscreen');
</script>
第二个文件index.html里:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
<!--
body {
text-align: center;
overflow-x:hidden;
overflow-y:hidden;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
background-color: #000000;
}
table {
background-color: #FFFFFF;
height: 600px;
width: 800px;
}
.td1 {
width:138px;
background-image: url(img/l1.gif);
background-repeat: no-repeat;
}
.td2 {
height: 49px;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function starwu(i) { //v1.0
var sh=window.screen.height,sw=window.screen.width;
if (sh<600||sw<800) alert('请使用800×600以上分辨率!');
if (sh>600) {
var top=(sh-600)/2;
eval('i.style.cssText="margin-top: '+top+'px"');
}
}
//-->
</script>
</head>
<body id="body1" onLoad="starwu(body1)">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" class="td1"> </td>
<td class="td2"><div align="center"><img src="img/l2.gif" width="616" height="49"></div></td>
</tr>
<tr>
<td><div><iframe src="zm/1.htm" name="star" width="662" height="551" marginwidth="0" mrginheight="0" frameborder="0"></iframe></div></td>
</tr>
</table>
</body>
</html> 这回应该是你想要的