Frames examples

This first example introduces a new (and ficticious) company, called Foo. Foo is in the business of making chocolate bars for programmers. Examples in this and subsequent months will show how the Foo corporation uses JavaScript in its business.

The marketing genius at Foo has decided that a good way to promote Foo Bars would be with an annual Foo Bars productivity awards section in APC. Having witnessed the success stories of a few industry companies, the aforementioned well-bred, creative thinking, sharply analytical and rougishly good-looking marketing guy extraordinaire decided that presentation is far more important than content. Therefore, said marketing guru decided to pitch the idea using HTML and JavaScript. The example scrolls through three HTML slides, and implements a previous and a next button.
See the example, or view source


Foo also recently decided to begin building its online presence. Although the site needs lots of work (and some PR people to fill it with pages and pages of waffle about how great the company's products are), the Webmaster felt that Foo should at least get something up letting customers know about some of their products.

This code shows how to integrate the fade function with frames. The example illustrates the concept of code reuse, as well as a better implementation of the fade function itself.

The source code explanation for this example only covers the nested frameset that appears when you click on the 'products' link. The outer frameset is a simple HTML frameset, and not all that exciting, frankly. If you want to see the source, choose the view HTML option in your browser.
See the example, or view source