summaryrefslogtreecommitdiffstats
path: root/silpa/www/js/common.js
diff options
context:
space:
mode:
authorSanthosh Thottingal <santhosh.thottingal@gmail.com>2009-03-26 22:14:43 +0530
committerSanthosh Thottingal <santhosh.thottingal@gmail.com>2009-03-26 22:14:43 +0530
commit02d0626ee9a64e4393db1e311f355ac5e0b041f5 (patch)
tree870e697bf5cfe77ee0812d3635d10be553080f15 /silpa/www/js/common.js
parent8ce8904c7366944801f426af20dec665a2f410cf (diff)
downloadRachana.git-02d0626ee9a64e4393db1e311f355ac5e0b041f5.tar.gz
Rachana.git-02d0626ee9a64e4393db1e311f355ac5e0b041f5.tar.xz
Rachana.git-02d0626ee9a64e4393db1e311f355ac5e0b041f5.zip
changes fir plugin architecture
Diffstat (limited to 'silpa/www/js/common.js')
-rw-r--r--silpa/www/js/common.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/silpa/www/js/common.js b/silpa/www/js/common.js
new file mode 100644
index 0000000..40ab87e
--- /dev/null
+++ b/silpa/www/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);
+
+
+