IE全屏

The No Ultimate Guide to FullScreen on Internet Explorer!

Intro

I am far from being an expert on these browsers tricks, but someone ask me about this subject,
and I found this is a very conflictive subject!

1. Opening a fullscreen window in another browser:


----- file: index.html -----

<html>
<head>
<title>First Window</title>
<script language="javascript">
<!--

function fullscreen()
	w = window.open('newwindow.html', '', 'fullscreen=1')

-->
</script>
</head>
<body onLoad="fullscreen();">
</body>
</html>

----- eof -----

----- file: newwindow.html -----

<html>
<head>
<title>FullScreen Window</title>
</head>
<body>
<h1> Fullscreen Windows!</h1>
</body>
</html>

----- eof -----


Credits: Everyone.


2. Some claims this javascript ran in some browsers:

----- file: index.html -----

<html>
<head>
<title>Fullscreen Window</title>
<script language="javascript">
<!--

function fullscreen()
	w = window.open('', '_self', 'fullscreen=1')

-->
</script>
</head>
<body onLoad="fullscreen();">
</body>
</html>

----- eof -----

Credits: Everyone.


3. Changing current window to fullscreen on a IE less than...

----- file: index.html -----

<html>
<script language="VBScript">
<!--
 
Set objInetExp = CurrentBrowser().getInstance()
objInetExp.TheaterMode=TRUE
  
-->
</script>
<head>
<title>Another Fullscreen running in some old IE</title>
</head>
<body>
<h1>FullScreen</h1>
</body>
</html>

----- eof -----


Credits: search on http://groups.google.com :: TheaterMode CurrentBrowser


4. Changing current window to fullscreen on a IE more than... and windows with activedesktop.



----- file: index.html -----
<html>
	<head>
		<title>Fullscreen</title>
<script language="VBScript">
<!--

Option Explicit
Dim apps
Dim win
Set apps = createobject("shell.application")
For Each win in apps.Windows
  If typename(win.Document) = "HTMLDocument" Then
	if win.Document.title = self.document.title then
		rem self.TheaterMode=true
		win.TheaterMode=True
	end if
  End If
Next

-->
</script>
	</head>
	<body>
		<h1>FullScreen</h1>
	</body>
</html>
----- eof -----

Credits: Michael Harris


5. Changing current window to fullscreen expanding it beyond borders!

----- file: index.html -----
<html>
<head>
<title> FullScreen </title>
<script language="javascript">
<!--

/* =============================================================================== */ 
/*  Name: fullscreen                                                               */
/*  Function: this is going to cause IE to go into a kind of fullscreen mode       */
/*  Call: fullscreen()                                                             */
/*  Supported Browsers: IE5.x,IE6.x                                                */
/*  Author: Dimitris Anoyatis                                                      */
/*  E-Mail(s):[email protected],[email protected]                               */
/*  Version: 1.0.3                                                                 */
/*  Status: Freeware (Actually Mentionware; just mention me on your webpage)       */
/*  Requirements: Just keep this with the script please... Not 2 much 2 ask is it? */
/*                                                                                 */
/*                   Hope you find this script useful :)                           */
/* =============================================================================== */

function fullscreen(){
	var hdiff;
	window.resizeTo(screen.width/2,screen.height/2)
	window.moveTo(0,10)

	hdiff=window.screenTop;
	window.moveTo(-6,-hdiff+6);
	window.resizeTo(screen.width+13,screen.height+hdiff+26)
}

function restore(){
	window.moveTo(-4,-4);
	window.resizeTo(screen.width+8,screen.availHeight+8);
}
-->
</script>
</head>
<body>
<a href="javascript:fullscreen();">FullScreen</a> to fullscreen<br>
<a HREF="javascript:restore();">restore()</a> to restore
</body>
</html>

----- eof -----

Credits: Dimitris Anoyatis


6. If none of these "suggestions" ran, try pressing the "F11" key...



Sebastian Wain
--
http://swain.webframe.org


pd: It's incredible how something so trivial can't be made in some effective and unique way!

你可能感兴趣的:(IE全屏)