怎么样去掉IE的 滚动条和标题条? window.open("your.htm","","fullscreen=3"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.open("your.htm","","fullscreen=3");好方法,我将fullscreen=3换成fullscreen=1这样就没有题条啦,然后将滚动条调成与背就一样的颜色就可以看到类似全屏的效果了,有没有那位朋友有更好的方法?无人回答的话就给楼上两位加分! window.open("your.htm","","fullscreen=3,scrollbars=no"); 真正全屏解决之道:1.htm<html><head><title>无标题文档</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body onload="window.open('fullscreen.htm','','fullscreen=1,scroll=no');"></body></html>fullscreen.htm<html><head><title>无标题文档</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language="JavaScript1.2"> <!-- function opensmallwin(myurl){ var w2=300;//想弹出窗口的宽度 var h2=100;//想弹出窗口的高度 var w3=window.screen.width/2-w2/2; var h3=window.screen.height/2-h2/2; window.open(myurl,'small','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,width='+ w2 +',height='+ h2 +',left='+ w3 +',top='+ h3 +''); } //--> <!--function modelesswin(url,mwidth,mheight){ if (document.all&&window.print) eval('window.showModelessDialog(url,"","help:0;resizable:0;status:0;center:1;scroll:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")') else eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")') }//--></script> </head><body scroll="no"><div align="right"><a href="javascript:" onclick="window.close()">关闭</a> </div><p></P><div align="right"><a href="javascript:" onclick="opensmallwin('login.htm')">登录</a> </div><p></P><div align="center"><a href="javascript:" onclick="modelesswin('login.htm',300,160)">用模态登录窗口</a> </div></body></html>login.htm<html><head><title>用户登录</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css"><!--body { background-color: #EAEAEA; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; color: #336699;}input.boxline { width: 100px; font-family: "Times New Roman", "Times", "serif"; font-size: 9pt; border: 1px solid #669999; height: 18px;}input.whiteline { font-size: 12px; border: 1px #999999 solid}--></style></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="14" bgcolor="#CCCCCC"> <tr valign="top"> <td width="10%" nowrap align="right"><b>用户名:</b></td> <td width="90%"><input name="textfield1" type="text" size="25" class="whiteline"></td> </tr> <tr valign="top"> <td nowrap align="right"><b>密 码:</b></td> <td><input name="textfield12" type="password" size="25" class="whiteline"></td> </tr> <tr valign="top"> <td> </td> <td><input type="submit" name="Submit" value="登 录" class="boxline"></td> </tr></table></body></html> 不要标题可以用fullscreen如果不要scroll你可以在你的打开的页面中的body标签中加上<body scroll=no>这样的话就隐藏了SCROLL了。 自动关掉原窗口:<html><head><title>无标题文档</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css"><!--body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}--></style></head><body onload="window.open('fullscreen.htm','','fullscreen=1,scroll=no');window.opener=null;window.close()"><input type=button value=关闭 onclick="window.opener=null;window.close()"> <!-- IE5.5+ 不会有弹出提示 --> <OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT> <input type=button value=关闭窗口 onclick=document.all.WebBrowser.ExecWB(45,1)> </body></html>关键是在onload事件中加入:window.opener=null;window.close() js如何获取一个值之后判断是否执行另外一个js方法? css expression IE6浏览器滚动条无限往下拉 新手请教超链接问题 js 数组 js字符串转化为十六进制问题 javascript调用vc的dll,回答出来的,感谢你八辈祖宗█████████████ js加密解密的问题 ActiveXObject("Excel.Application")出错 怎樣傳遞參數 还是JAVASCRIP调用JAVA CLASS的问题 javaxcript如何返回多个值 哪位高人给把以下加密的代码解一下密
无人回答的话就给楼上两位加分!
1.htm
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body onload="window.open('fullscreen.htm','','fullscreen=1,scroll=no');">
</body>
</html>
fullscreen.htm
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript1.2">
<!--
function opensmallwin(myurl){
var w2=300;//想弹出窗口的宽度
var h2=100;//想弹出窗口的高度
var w3=window.screen.width/2-w2/2;
var h3=window.screen.height/2-h2/2;
window.open(myurl,'small','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,width='+ w2 +',height='+ h2 +',left='+ w3 +',top='+ h3 +'');
}
//--> <!--
function modelesswin(url,mwidth,mheight){
if (document.all&&window.print)
eval('window.showModelessDialog(url,"","help:0;resizable:0;status:0;center:1;scroll:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}
//--></script>
</head><body scroll="no">
<div align="right"><a href="javascript:" onclick="window.close()">关闭</a> </div>
<p></P>
<div align="right"><a href="javascript:" onclick="opensmallwin('login.htm')">登录</a> </div><p></P>
<div align="center"><a href="javascript:" onclick="modelesswin('login.htm',300,160)">用模态登录窗口</a> </div>
</body>
</html>
login.htm
<html>
<head>
<title>用户登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
background-color: #EAEAEA;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 24px;
color: #336699;
}
input.boxline {
width: 100px;
font-family: "Times New Roman", "Times", "serif";
font-size: 9pt;
border: 1px solid #669999;
height: 18px;}input.whiteline {
font-size: 12px; border: 1px #999999 solid
}
-->
</style></head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="14" bgcolor="#CCCCCC">
<tr valign="top">
<td width="10%" nowrap align="right"><b>用户名:</b></td>
<td width="90%"><input name="textfield1" type="text" size="25" class="whiteline"></td>
</tr>
<tr valign="top">
<td nowrap align="right"><b>密 码:</b></td>
<td><input name="textfield12" type="password" size="25" class="whiteline"></td>
</tr>
<tr valign="top">
<td> </td>
<td><input type="submit" name="Submit" value="登 录" class="boxline"></td>
</tr>
</table>
</body>
</html>
如果不要scroll
你可以在你的打开的页面中的body标签中加上
<body scroll=no>
这样的话就隐藏了SCROLL了。
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head><body onload="window.open('fullscreen.htm','','fullscreen=1,scroll=no');window.opener=null;window.close()">
<input type=button value=关闭 onclick="window.opener=null;window.close()">
<!-- IE5.5+ 不会有弹出提示 --> <OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>
<input type=button value=关闭窗口 onclick=document.all.WebBrowser.ExecWB(45,1)>
</body>
</html>关键是在onload事件中加入:
window.opener=null;window.close()