diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-07 19:45:46 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-07 19:45:46 +0000 |
commit | 954fcf034238458f292c9f5ec72c6d4b101aac0d (patch) | |
tree | e6d5c6d850137e13d970d4f349f6ebf2103fc749 /core/js/menu.js | |
parent | b409a376f3689e51bb50f9716c1384d9b2013832 (diff) |
Merge gallery3/branches/menus back into gallery3/trunk
Diffstat (limited to 'core/js/menu.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; + }); +}); |