The HTML Ebook Frameset
In this part of the series we look at the frameset for the HTML ebook project.
HTML Ebook - Part 3
Introduction
This is part 3 of my series, HTML Ebook. In this part of the series we look at the frameset for the HTML ebook project.
Note: If you cannot see the code or if you think anything is missing in this article (broken link, image absent), just contact me at forchatrans@yahoo.com. That is, contact me for the slightest problem you have about what you are reading.
A Frameset
A frameset is still an HTML document, but instead of the HTML BODY element, it has the FRAMESET element. The FRAMESET element defines the different frames for the HTML document. It has the number, position and size of the different frames.
Our Project Frameset
This is the code for the frameset of our project.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Title of Ebook
searchVar;
There are two framesets, one nested in another. The outer one divides the browser window into two rows: a small row higher for the banner frame and a big row lower for the rest of the window. The nested frameset divides the lower portion of the outer frameset into two columns: the left small column is for the sidebar frame and the right big column (rest of portion) is for the content frame. The outer frameset has the banner frame. The nested frameset has the sidebar frame and the content frame. Note the attributes of the frame tags.
Scrolling
The banner frame does not have scroll bars, so it has the value, "no" for the attribute, "scrolling". The sidebar frame has scroll bars, so it has the value, "yes" for the attribute, "scrolling". The content frame has scroll bars, so it has the value, "yes" for the attribute, "scrolling". The information (text and maybe some images) in the content frame can always grow downward below the bottom edge of the content frame; so the content frame needs scroll bars. As the tree of links in the sidebar is expanded, it grows to the right and downward, and may cross the right and bottom sidebar edges, so the sidebar needs scroll bars.
Frame Borders
By default a frame would display its borders. So the above frameset would display borders for the frames. Let us allow this situation for this simple project. In your commercial project, you can remove the borders, and give the pages for the different frames, slightly different background colors, to differentiate the frames; you can also add some beauty.
The Source Attributes
This frameset page, the banner, sidebar and initial content HTML page are in the same directory (head directory). So the values of the source attributes for the frames are not preceded by any path. Note the names of these values, which are the names for the HTML files for the frames. The files for the banner and sidebar will never change. The file for the content will change as the user clicks links.
Name Attribute of Content Frame
The name attribute of any frame gives the name of that frame. This value of the name attribute of the content frame is, "content". This value will be used to send an HTML page to the content frame.
JavaScript
The frameset has a JavaScript. This JavaScript is in the HEAD element of the frameset. The JavaScript has just the declaration of a variable. We shall come back to this variable later.
Wow, not as difficult as it appeared. We take a break here and continue in the next part of the series.
Chrys
-
The Banner HTML Document
| By Chrys | in Programming
In this part of the series we look at the banner HTML document for the HTML ebook project....
-
HTML Ebook Overview
| By Chrys | in Programming
In this article series, I show you how to create an ebook with HTML....
-
An HTML Ebook Project
| By Chrys | in Programming
In this part of the series we look at the requirements of a simple HTML ebook project....
-
The HTML Ebook Pages
| By Chrys | in Programming
In this part of the series we look at the HTML pages for the HTML ebook project....
-
XA Transaction - Solution for Transaction More Than One Database | By H4d1 | in Programming
Have you ever think that it's too difficult for making database transaction in two different places (or databases) ...
-
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , is integer , check Is Zero , Get Que | By xxris | in Programming
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , i...
-
How to access and use a Window's command line | By MaxwellPayne | in Programming
Learn about the Window's command line in DOS and how to use it....
-
How to Learn to Program Your Computer | By dsj8760 | in Programming
This article is about learning to program a computer. It is a general article giving tips on how to learn about pro...
-
Jailbroken iPhones get RickRolled | By explorer | in Programming
First iPhone worm, attacks via SSH and does the classic rick roll gag on the user....
-
Database N-to-N Relationships | By Chrys | in Programming
In this part of the tutorial we look at one-to-one, one-to-many and many-to-many relationships....
-
Database Associations Overview | By Chrys | in Programming
In this part of the series, we look at Database Associations Overview....
-
Database Table Data Types | By Chrys | in Programming
In this part of the series we look at database Data Types....
-
Database Table Keys | By Chrys | in Programming
In this part of the series we look at what is known as a key....
-
Database Design | By Chrys | in Programming
A database is a set of related tables. This is part 1, division 1 of a series I have on database....







No comments yet.