HTML Advanced tab (2) ———— window sub-frame (2) ———— Background Management page

Source: Internet
Author: User

Use frameset to frame the window and build a simple background page. This blog is as a simple background management page of the actual combat drill.


1 First, you need a page, using <frameset> proportionally divided into three areas suitable for: Head, menu, body.

<frameset> cannot be written in <body>.

Give each <frame> a name so that the target property can point directly to the specified location when the link is back.

The code is as follows (the file name is custom, I write frameset.html):


2 We need to specify a different URL in three frames, we need to write several HTML files: head.html; menu.html; menu1.html; menu2.html; menu3.html; menu4.html; Main.html

Head.html:

Four options, each selected link to a different menu, target points to the form where the menu is located.

<center>

Menu.html:

Nine options, each selected link to a different content, target points to the form in which the principal is located.

Because the method used is exactly the same as the header link menu, the URL is empty and not written.

<center>
Menu1.html:

<center>

Menu2.html:

<center>

Menu3.html:

<center>

Menu4.html:

<center>

Main.html:

<center>

After you have written all the files, save them under the same directory. Open the frameset.html file to see the following effect:


After clicking on the second item on the head:


Well, the basic function of a background is realized. If you write a bug, please be patient with debugging.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.