Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web Development
Expertise: Beginner
Jul 5, 2000

Creating Frames

Question:
I want to make a simple frame for my Web site, but I don't know how. I've looked through your tutorial but I still don't fully understand. Can you help?

Answer:

Why don't I give you a couple of examples to get you started:

Example 1:





Example 2:






First of all, remember that all of your "user-visible" interface objects (such as text, hyperlinks, images, etc.) are in the framed pages, not in the "container" page.

The "container" page does NOT use a tag. Instead, it uses a tag. The tag provides the COLS and ROWS parameters to enable you to define how (in terms of rows and columns) your frames will be presented to the user. You can use either ROWS or COLS to do this. The number of values in ROWS, or in COLS should match the number of tags that are present. The values define the sizes of each frame. In the first example above, the first frame (page1.htm) will consume 25% of the available space in the client's browser. The second frame will use the remaining 75%.

The tags provide the SRC (source) parameter to allow you to identify the file that should be framed and displayed to the user. The NAME parameter enables access to individual frames by client-side script.

This should be enough basic information to get you started. You can play around with various combinations of ROWS and COLS until you get the hang of it.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date