Close

Formatting Pop-up Menu Colors, Widths, and Time Delays

To edit the background color of your pop-up menu:

  1. Open pop-up_menu.js file. Dreamweaver is recommended but any suitable text editor can be used (Windows: Notepad or Wordpad, Macintosh: SimpleText).
  2. Near the top of the page's code, scroll to the line that reads: //START OF CUSTOMIZED INFORMATION:
  3. The following should be seen:
  4.   // START OF CUSTOMIZED INFORMATION
    //Miscellaneous variables for defining the pop-up boxes
    var boxDelay="2"; // Delay time (in seconds) to keep the box displayed, default is "1.5" if not greater than "0".
    var borderColor=""; // color of the border (IE only)
    var borderLight=""; // color of the light shaded part of the border (IE only)
    var borderDark="#ffffcc"; // color of the dark shaded part of the border (IE only)
    var backGround="#FFE7D7"; // color of the background of the pop-ups (All Browsers)
    var boxFontSize=13; //size of font (in px) for the style class boxes needs to be equal in order to work properly
    var maximumMenuSize=220; //max size the menu widths can be, if no max size desired set equal to null
    var pixelImage = "images/pixel.gif"; //type in the location of this image
    var hoverImage = "images/hover.gif"; //type in the location of this image
  5. The bolded text above is the customizable information.
    • Some of the customizable information is left blank, such as borderColor. This is done if the attribute is not desired or default values wish to be used.
    • The variable pixelImage and hoverImage should not be touched unless these images are moved from there current location in the images folder.
      • The images should always be referenced as if the page is in the first level of the site (the main directory).
  6. Save and close the file.

2004 OSU Extended Campus Close