Home | Services | Reference Area

 

 Author: Jay Ohman, Ohman Automation Corp., www.OhmanCorp.com

 ** disclaimer and release: I am NOT an expert  **
 ** programmer, use my coding at your own risk! **

 Two different abbreviations used in this script:
   - image name, usually corresponding to the linked page name
   - rollover state, onMouseOver = ovr, etc.

 First argument must be the RELATIVE path from the site root to the
 navbar images directory, and the first common filename characters of
 the navbar images (ex: './images/navbar/btn').  Remaining arguments
 are all the IMG NAME attributes (recommend to use a 3 alpha-char
 abbreviation for the image name).  For the navbar images, use the
 same image abbrev in the image filenames as used in the IMG NAME
 attributes.  ex: btnhom.gif, btnmap.gif, btnlog.gif, etc.

 First row, define the rollover state abbrev with the filename suffix
 tag in pairs, and also the image filename extension.
 var b=new Array("out","","ovr","-o","dwn","-d","cur","-s"), ext=".jpg"

 example: for Home page, ./images/navbar directory has btnhom.gif,
 btnhom-o.gif, btnhom-s.gif for normal, over, and selected states.

 (My rollover software uses these dash-OneCharacter suffixes,
 otherwise I'd just make the suffix the same as the state abbrev).

 The rollover state abbrev needs to correspond to the function names
 defined after the PreloadImages function.

 Click here for the header.js file for
 this site.

 Click here for the revised NewHeader.js
 file with comments and alerts.

  


 
Copyright © 1996-2008 Ohman Automation Corp. All rights reserved.