Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.