McMaster University

Faculty of Health Sciences
Web Design

Scope of Search

How to turn off javascript automation of the left navigation bar for all pages in a website?

The automated version of the left navigation bar uses javascript to control drop downs and highlighting of links. If you need or decide to turn the automation off for an entire website, then follow the instructions below:

  1. Check out (or get) the site_parameters.js file in the javascript directory.
  2. Set the automatic_left_nav variable to false in the site_parameter.js file:

    automatic_left_nav = false;
  3. The left navigation will now display with all nested links displayed for all pages. The dropdown and highlighting of links can then be controlled manually by putting the CSS code in each page. For example,

    Left navigation manual drop down control