DropDown Menu: Pre-Defined Bullets
- Introduction
- Text
- Vertical
- Auto-Bullet
- Pre-Bullet
- Images
- RollOvers
- Install
Menu Demo with Pre-Defined Bullets
Calling the Script
This menu uses the following call to the DropDown Menu script:
buildMenu("h","tb","0","5");
The options used here tell the script to render the following menu:
- "v" = vertical main menu
- "tb" = text links for the main menu, with bullets
- "0" = a list indicator defined as zero (0) which turns off the list indicator
- "5" = select main menu item five for highlighting
Defining the Links
The difference in the coding here, from that of the 'Text Links' example, is that it is colored as though it might be part of computer program. It also makes use of a large number of pre-defined bullets.
If you look through the menus you will see a number of links with icons for: PDF files, Word documents, Excel files, and plain text files. Defining specific bullets is easy. Simply add a new (bul) value for each item that should reference to a specific file type. Here are some examples:
-
The third item of the main menu, linking to a PDF file, would be coded with:
bul_3 = "pdf";. -
The second item of a submenu for the fourth item on the main menu, linking to an Excel file, would be coded with:
bul_4_2 = "excel".
The defined types are made available for use with two things. A GIF image and a section added to the style sheet. The image is called by its name, omitting the extension (.gif). The style sheet addition should also be defined by this name and reference to the same graphic.
