summaryrefslogtreecommitdiffstats
path: root/silpa/js/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'silpa/js/common.js')
-rw-r--r--silpa/js/common.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/silpa/js/common.js b/silpa/js/common.js
new file mode 100644
index 0000000..40ab87e
--- /dev/null
+++ b/silpa/js/common.js
@@ -0,0 +1,21 @@
+/*
+son of suckerfish menu script from:
+http://www.htmldog.com/articles/suckerfish/dropdowns/
+ */
+
+ sfHover = function() {
+ var sfEls = document.getElementById("nav").getElementsByTagName("LI");
+ for (var i=0; i<sfEls.length; i++) {
+ sfEls[i].onmouseover=function() {
+ this.className+=" sfhover";
+ this.style.zIndex=200; //this line added to force flyout to be above relatively positioned stuff in IE
+ }
+ sfEls[i].onmouseout=function() {
+ this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
+ }
+ }
+}
+if (window.attachEvent) window.attachEvent("onload", sfHover);
+
+
+