xref: /openbsd-src/gnu/llvm/clang/www/analyzer/scripts/menu.js (revision e5dd70708596ae51455a0ffa086a00c5b29f8583)
1*e5dd7070SpatrickstartList = function() {
2*e5dd7070Spatrick  if (document.all&&document.getElementById) {
3*e5dd7070Spatrick    navRoot = document.getElementById("nav");
4*e5dd7070Spatrick    for (i=0; i<navRoot.childNodes.length; i++) {
5*e5dd7070Spatrick      node = navRoot.childNodes[i];
6*e5dd7070Spatrick      if (node.nodeName=="LI") {
7*e5dd7070Spatrick        node.onmouseover=function() {
8*e5dd7070Spatrick          this.className+=" over";
9*e5dd7070Spatrick        }
10*e5dd7070Spatrick        node.onmouseout=function() {
11*e5dd7070Spatrick          this.className=this.className.replace(" over", "");
12*e5dd7070Spatrick        }
13*e5dd7070Spatrick      }
14*e5dd7070Spatrick    }
15*e5dd7070Spatrick  }
16*e5dd7070Spatrick}
17*e5dd7070Spatrickwindow.onload=startList;
18