Create an online reading room using IFRAME
Author:Eve Cole
Update Time:2009-06-20 17:01:01
With the rapid development and continuous popularity of the Internet in China, more and more people use the Internet as the best tool to obtain information and learn knowledge. Various traditional media at home and abroad are also rushing to launch electronic versions online: such as "Computer News", "Guangming Daily", "China Youth Daily" and so on. Therefore, reading and reading newspapers on the Internet has become an endless pleasure for netizens and bookworms.
Although you can view several websites at the same time by opening seven or eight browser windows, the more browser windows you open, the more strained the machine's resources will be. For those who like to listen to MP3 music while surfing the Internet, they often have no choice but to give up (not enough memory!). Is there any good solution?
The easiest way to think of is to use the Frame framework in the HTML language. Friends who have designed a homepage know that using Frame can divide the page into several frames that do not affect each other, and one page can be loaded in each frame. Moreover, there can be no relationship between pages in different frames. This can make full use of the page space and increase the amount of information on the page. However, Frame has a flaw: it can only divide the browser window. For pages larger than the Frame size, you can only add scroll bars to move the display window, which is very inconvenient. Although using Frame to display different newspaper and magazine sites in different Frames can reduce the number of browsers opened at the same time, the small reading space is unbearable!
In fact, there is also a tag IFRAME in the HTML language that is related to Frame. We can use it to achieve our goal. IFRAME is the abbreviation of Inline Frame, which is called inline frame. Using IFRAME, web page designers can insert an inline frame anywhere in the HTML page, without having to use the FrameSet tag to divide space for each Frame in a main page before using Frame. Different from the general Frame, each IFRAME can independently define its size, rather than dividing a browser window that is not large! In other words, an IFRAME can be as large as the browser window, or even larger! In this way, the problem of display space is also solved.
The following HTML page file is an "online reading room" designed using IFRAME. On one page, IFRAME can display the content of three different newspaper and periodical sites at the same time, and the display space of each site is a full screen! Say goodbye to Frame!
You can change the SRC attribute of IFRAME to point it to your favorite newspaper and magazine site, and customize your own online reading room!
Note: Please use IE browser (3.0 or above), Netscape does not support this tag.
"html"
"head"
《title》Online Reading Room《/title》
《/head》
《body》
"p align="center""big""font color="#0000FF" face="Italian_GB2312""strong""big""big"My online reading room"/big""/big" /strong》《/font》《/big》《/p》
"p align="center"" "font color="#FF0000"" Guangming Daily "/font" "/p"
《IFRAME height=450 width=100% src=″http://www.gmd.com.cn/″》
《/IFRAME》
"p align="center"" "/p"
"p align="center"" "font color="#FF0000"" Computer Newspaper "/font" "/p"
《IFRAME height=450 width=100% src=″http://www.cpcw.com″》
《/IFRAME》
"p align="center"" "/p"
"p align="center"" "font color="#FF0000"" China Youth Daily "/font" "/p"
"IFRAME height=450 width=100% src="http://www.cyd.com.cn""
《/IFRAME》
《/body》
《/html》
(Shaanxi Chen Jian)