Power Fanfiction.net

By utimer Last update Sep 20, 2011 — Installed 1,856 times.

Autoclosing Menus

in
Subscribe to Autoclosing Menus 2 posts, 2 voices



ewino Scriptwright
FirefoxWindows

I think we can improve this script by having ff.net's menus disappear when the mouse leaves them. That way you do not lose functionality (like other scripts that remove the menu items altogether) and still conserve screen space.
(I, for myself, simply find menus that auto-open and don't also auto-close quite annoying)

I got as far as:
$(".menu-child").mouseout(function() { $(this).hide(); });

which works, but ff.net saves the last opened menu in an encapsulated inner variable which I cannot seem to get into (xmenu_active). That means that if you opened a certain menu, had it auto close by hovering over the menu then leaving it, and then hovered again over the same menu opening link, it won't reopen (since the code thinks it's already open). You have to choose another menu first and then point back to your desired menu.

I already use this nearly-finished script but I think that even though it would be great if it would be added here, It should be totally bug-proof first.

Any help on this?

 
utimer Script's Author
FirefoxWindows

The active menu is hidden in a closure. I'm working on a workaround though. The mouseout doesn't seem to work well though, as it prevents you from moving the mouse to the panels that will open up.

It has been added in version 1.2

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel