The magical experience of hiding frames in web pages

  
        

Web page framing is usually used to organize and orchestrate the home page layout. In fact, clever use of framing technology can also perform some important functions. This article describes the use of hidden frames to implement three applications. How to hide the frame? The author hides the frame by setting the height of the frame (for upper and lower framing) to 0. The html file can still be placed in the hidden frame, but it is not displayed on the overall layout of the web page. In this example, the html code for constructing a hidden frame is as follows: Please browse the web pages with IE4 .x/5.x up browser.

〈/noframes> 〈/frameset> where the upper hidden frame is named hideframe and the hidefile.htm file is placed. The lower frame places the main file of the web page.

First, keep the value of the memory variable

In webpage programming, there are some variables, such as the user's registration name and ID number, which are always the same during this login period. In order to keep the values ​​of these variables in the process of switching web pages, someone uses ASP's session variable, but sometimes the session will be inexplicably lost. In fact, we only need to save the values ​​of the variables in hidden frames, and call them when they are used. For example, the contents of the hidefile.htm file in a hidden frame are as follows:

〈/form〉 The statement for saving variable values ​​from other frames to hidden frames is as follows:
Copyright © Windows knowledge All Rights Reserved