The Scrolling Layers code is from dyn-web.com

 

  main logo
catering events portfolio
 
 
   
 

About Us

Chef's Expressions is the Ultimate Catering Company. renowned for custom-designed events; focusing on four star cuisine, electrifying themes, unique details and extraordinary service for every occasion. We like to say “our Chefs are more decorated than our cakes”. We have won over 30 culinary awards. Some of these include an International Culinary Olympic Silver medal, Gold and Silver Medals from the American Culinary Federation and Best of Show Competitions in local and National Culinary competitions, as well as National Caterer of the year, twice, awarded by The National Association of Catering Executives and Catering Magazine.

Owner Jerry Edwards, CPCE, recipient of NACE Hall of fame award 2007, has received industry accolades including Chef of the Year, Caterer of the Year, Winner of NACE Iron Chef DC and Baltimore 2005 and Honorary Doctorate of Food Service, awards documenting our attention to excellence.

Setting Up the Layers

Div's are nested three deep for scrolling layers inline. The outer-most layer (usually assigned an id of hold or holder) is relative positioned, has width and height settings, and overflow hidden.

The scroll area itself is defined by a "window" div (usually assigned an id of wn or wn1), with width, height and clip settings, and overflow hidden.

The content that scrolls is contained in the innermost div (or div's). You can add as many content layers as you like within any given "window" div.

Scroll areas to be positioned absolute do not require the outermost (hold) layer, although it is often a convenient container for the scroll links.

Note: For best cross-browser cooperation, do not fundamentally change the style specifications for the layers, other than adjusting width and height. Removing clip or overflow settings or changing the position to relative on the window or content layers may cause some browsers to cease functioning properly.

Implementing Scrollbars

You can set up scrollbars using graphics of your choice and adjust their style specifications accordingly.

Notice that the height of the drag bar adjusts according to the amount of content in the layer. This is an optional feature that can be turned off with a simple property setting. See code comments in the head of the document.

The main presentation page for scrolling layers contains more detailed information about the scrollbars and how to set them up.

Multiple Scroll Areas

You can follow the format described and demonstrated in this example to add more than one scroll area. See the example with multiple scrolling areas for guidance. Even though that example uses absolute positioning, the pattern for setting up the layers remains the same. Just remember that all id's need to be unique.

Remember to pass the id's for areas that scroll in tables to the GeckoTableBugFix function so Netscape 6+ and Mozilla will be able to extract their layers and function properly. (See code comments in the head of the document for more information.)

 
      testimonials    press room    contact us