日期:2014-05-16  浏览次数:20596 次

如何实现首页全屏显示,无地址栏
RT

------解决方案--------------------
这个其实用js来控制的话会有一定的效果,不过真的要做的比较好点,需要修改浏览器的源码,也是有几个参数挺简单的
------解决方案--------------------
用个过渡页面:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.*"%>
<html>
<head>
<title>首页加载页面</title>
</head>
<body target="NZCRM"><form name=loading >
<table width="100%" height="100%" align="center" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td>

<P align=center><FONT face=Arial color=#0066ff size=2>loading...</FONT> <INPUT 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder; PADDING-BOTTOM: 0px; COLOR: #0066ff; BORDER-TOP-style: none; PADDING-TOP: 0px; FONT-FAMILY: Arial; BORDER-RIGHT-style: none; BORDER-LEFT-style: none; BACKGROUND-COLOR: white; BORDER-BOTTOM-style: none" 
size=46 name=chart> <BR><INPUT 
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: #0066ff; BORDER-BOTTOM: medium none; TEXT-ALIGN: center" 
size=47 name=percent>
</td></tr>
</table> 
<SCRIPT> 
var bar=0 
var line="||" 
var amount="||" 
count(); 
function count(){ 
bar=bar+2
amount =amount + line 
document.loading.chart.value=amount 
document.loading.percent.value=bar+"%" 
if (bar<100) 
{setTimeout("count()",10);} 
else 
{
 window.opener=null; 
 window.close() ;
 window.open('Main/Index2_1.jsp','NZCRM','top=0,left=0,fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height='+ new String(screen.availHeight-28) + ',width=' + new String(screen.availWidth-10));
 } 
 
}</SCRIPT>
</P>
</form>
</body>
</html>
------解决方案--------------------
探讨
用个过渡页面:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.*"%>
<html>
<head>
<title>首页加载页面</title>
</head>
<body ta……

------解决方案--------------------
做一个空白页,在空白页上写js打开一个新的窗口,然后关闭原来的页面:
空白页内容
<SCRIPT LANGUAGE="JavaScript">
<!--
h = screen.Height - 60;
w = screen.width - 10;
feature='top=0,left=0,width='+w+',height='+h+',resizable=yes,toolbar=0,menu=0,fullscreen=0,scrollbars=auto;window.opener=null;window.close()';
window.open('XXXX.jsp' ,, feature,false);
window.opener=null;
window.close();

//-->
</SCRIPT>