IE browser stealth
When you browse a webpage, you often find that your browser window is missing, but the webpage content is still there. Is this amazing? As long as there are three principles for implementing this function, different implementation methods give each of them a name, namely, the method of crossing the sea, the method of returning the dead and returning to the truth. Don't be scared by their names. In fact, it's not difficult to implement it. Just read the following content and you will understand the truth!
I. javascript
We know that the resolution of the monitor determines the area of the window we see. The larger the resolution, the larger the window area, and the more content we see. But it does not mean that the larger the display area, the better, because changes in resolution will bring about changes in menu text, may affect the font appearance of the software interface. This is an out-of-the-box question. The browser is also a program. We can use the script language to control the adjustment of the window size. In this way, we can implement the full screen method, which is in the header of the webpage file, add the following javascript code between the
<Script>
<! --
Function omiga_window (){
Window. open ("12.htm"," "," fullscreen = 1, menubar = 0, toolbar = 0, directories = 0, location = 0,
Status = 0, scrollbars = 0 ")
}
// -->
</Script>
The code function is to call up another browser window from a webpage, add the setting statement, set the size of the new window to full screen, and then display the new webpage content in this window, so as to achieve full screen.
Do not forget to add the code for loading functions in the webpage to the <body> tag of the webpage file. The code settings are as follows:
<Body onload = "omiga_window ()" onBlur = "self. close ()" scroll = "no">
II. Method of returning souls
Some may be afraid of seeing the code. Tell you, no fear! If we don't know the script code, we can use the Dreamweaver plug-in! Full screen!
First, click to downloadMFX-fullscreen.mxp plug-inGo to your hard disk, open the menu bar "Commands" in Dreamweaver4, select the "Manage Extensions" command, and open the plug-in management tool "Macromedia Extension Manager ", press the Ctrl + I shortcut to install the plug-in.
The next thing is quite easy. Restart Dreamweaver4 once, press Shift + F3 to open the behavior panel, and press the shortcut key Ctrl + Tab to enter the source code window, click the plus sign on the behavior panel, in the pop-up menu, select "MFX-fullscreen" in "MFX". The
A friend without a plug-in can copy the following code to a webpage file:
<Script language = "JavaScript">
<! --
Function MachakFull (Ie, other ){
// Copyright? 1999 m. milicevic machakjoe@netscape.net jjooee@tip.nl
X = screen. availWidth;
Y = screen. availHeight;
Target = parseFloat (navigator. appVersion. substring (navigator. appVersion. indexOf ('.')-1, navigator. appVersion. length ));
If (navigator. appVersion. indexOf ("Mac ")! =-1) & (navigator. userAgent. indexOf ("MSIE ")! =-1) & (parseInt (navigator. appVersion) = 4 ))
Window. open (other, "sub", 'rollbars = yes ');
If (target> = 4 ){
If (navigator. appName = "Netscape "){
Var MachakFull = window. open (other, "MachakFull", 'rollbars = yes', 'width = '+ x + ',