Jump to content

Jquery Drop Down Menu


-Karl-

Recommended Posts

Hello,

 

I've tried implementing:

http://aext.net/2009/08/perfect-sign-in-dropdown-box-likes-twitter-with-jquery/

 

Which works perfectly, it shows when you click the link, then if you click it again it hides it. It also hides if you click anywhere else on the document whilst it's open.

 

I've tried implementing in to this page:

http://hevvo.eu/~dev/backtrack/index.php

 

However, it only works when you click on it, then click on the document, not if you click on the link again. I just can't figure out what's different about my code..

 

Any help would be greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/269236-jquery-drop-down-menu/
Share on other sites

I see what you mean. The problem is you're using the var countsign to determine whether to show or hide the login form onclick, but you're not resetting that when the menu is hidden by clicking elsewhere in the document.

Indeed, but if I add countsign = 0; to the mouseup section, for if somewhere else in the document is click. Then it breaks the functionality of the clicking of the link twice..

 

So I have no idea what I can do.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.