/[drupal]/contributions/themes/noprob/script.js
ViewVC logotype

Contents of /contributions/themes/noprob/script.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Mon Dec 29 05:56:41 2008 UTC (11 months ago) by eric3
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +35 -33 lines
File MIME type: text/javascript
HEAD update
1 // $Id: script.js,v 1.1.2.3 2008/12/28 02:44:37 eric3 Exp $
2
3 // Adds drop-down menu functionality to IE6.
4 // Source: http://www.alistapart.com/articles/horizdropdowns/
5 menuOver=function(navRoot) {
6 for (i=0; i<navRoot.childNodes.length; i++) {
7 node = navRoot.childNodes[i];
8 if (node.nodeName=="LI") {
9 node.onmouseover=function() {
10 //this.className+=" over";
11 for (j=0; j<this.childNodes.length; j++) {
12 childnode = this.childNodes[j];
13 if (childnode.nodeName=="A") {
14 childnode.className+=" over";
15 }
16 if (childnode.nodeName=="UL") {
17 childnode.className+=" show";
18 }
19 }
20 }
21 node.onmouseout=function() {
22 //this.className=this.className.replace(" over", "");
23 for (j=0; j<this.childNodes.length; j++) {
24 childnode = this.childNodes[j];
25 if (childnode.nodeName=="A") {
26 childnode.className=childnode.className.replace(" over", "");
27 }
28 if (childnode.nodeName=="UL") {
29 childnode.className=childnode.className.replace(" show", "");
30 }
31 }
32 }
33 }
34 }
35 }
36 startList=function() {
37 if (document.getElementById) {
38 menuOver(document.getElementById("primary-links"));
39 menuOver(document.getElementById("tertiary-links"));
40 }
41 }
42 window.onload=startList;

  ViewVC Help
Powered by ViewVC 1.1.2