页:
[1]
| 我是菜鸟我怕谁 | 2004-12-1 02:47 AM |
|
大侠帮忙~~
下面脚码想要满屏打开“index.htm'”页面,但是在我得机器上能打开,但换了另一台机器却打不开“index.htm'”页面,为什么?
<html>
<title>启动程序:</title>
<head>
<script language="JAVASCRIPT">
function detectVersion()
{
version = parseInt(navigator.appVersion);
return version;
}
function detectOS()
{
if(navigator.userAgent.indexOf('Win') == -1)
{
OS = 'Macintosh';
}
else
{
OS = 'Windows';
}
return OS;
}
function detectBrowser()
{
if(navigator.appName.indexOf('Netscape') == -1)
{
browser = 'IE';
}
else
{
browser = 'Netscape';
}
return browser;
}
function FullScreen()
{
var adjWidth;
var adjHeight;
if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape'))
{
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE'))
{
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape'))
{
adjWidth = 30;
adjHeight = 30;
}
if(detectVersion() < 4)
{
self.location.href = 'gl/index.htm';
}
else
{
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
var thewindow = window.open('gl/index.htm', 'WindowName', winSize);
thewindow.moveTo(0,0);
print("qweqw");
}
}
function MakeItSo()
{
if((detectOS() == 'Windows') && (detectBrowser() == 'IE'))
{
window.open('gl/index.htm','vwind_com','fullscreen=yes');
}
else
{
onload=FullScreen();
}
}
</script>
</head>
<body onload='MakeItSo()'>
</body>
</html>
index.htm'的脚码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title> </title>
<meta http-equiv="Page-Enter" content="revealTrans(Duration=2.0,Transition=12)">
<meta http-equiv="Page-Exit" content="revealTrans(Duration=2.0,Transition=12)">
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<p><br>
</p>
<p> </p>
<br>
<br>
<br>
<table width="613" height="411" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td width="609"><div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="400">
<param name="movie" value="flash/kai.swf">
<param name="quality" value="high">
<embed src="flash/kai.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="400"></embed></object>
</div></td>
</tr>
</table>
</div>
</body>
</html>
谢谢~~~ |
|
用这一句就可以了.为什么要用那么多呢?
window.open('gl/index.htm','vwind_com','fullscreen=yes'); |
Powered by Discuz! Archiver 6.1.0
© 2001-2006 Comsenz Inc.
Processed in 2.474167 second(s), 2 queries |