diff options
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/menu.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/core/js/menu.js b/core/js/menu.js new file mode 100644 index 00000000..b5f0a6ee --- /dev/null +++ b/core/js/menu.js @@ -0,0 +1,24 @@ +$("document").ready(function() { + $("#gSiteMenu ul:not(:first)").css("display", "none"); + $("#gSiteMenu li").mouseover(function (ev) { + $(this).children("ul").css("display", "block"); + $(this).children("ul").find("li").css("clear", "both"); + + this.dropdown_open = true; + }); + $("#gSiteMenu li").mouseout(function (ev) { + $(this).children("ul").css("display", "none"); + this.dropdown_open = false; + }); + + $("#gSiteMenu li a").click(function () { + var href = $(this).attr("href"); + if (href == "#") { + return false; + } else if (href.match("^#") == "#") { + alert("Display href: " + href.substring(1) + "in a popup"); + return false; + } + return true; + }); +}); |