-Karl- Posted October 8, 2012 Share Posted October 8, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/269236-jquery-drop-down-menu/ Share on other sites More sharing options...
Jessica Posted October 8, 2012 Share Posted October 8, 2012 It worked fine for me, using Chrome. Quote Link to comment https://forums.phpfreaks.com/topic/269236-jquery-drop-down-menu/#findComment-1383787 Share on other sites More sharing options...
-Karl- Posted October 8, 2012 Author Share Posted October 8, 2012 It worked fine for me, using Chrome. So when you clicked "login" it showed, then when you clicked it again, it hid it? Because it doesn't work for me on Chrome or Firefox. Quote Link to comment https://forums.phpfreaks.com/topic/269236-jquery-drop-down-menu/#findComment-1383790 Share on other sites More sharing options...
codefossa Posted October 9, 2012 Share Posted October 9, 2012 Worked for me on Firefox 15.0.1 in Ubuntu 12.04. Quote Link to comment https://forums.phpfreaks.com/topic/269236-jquery-drop-down-menu/#findComment-1383884 Share on other sites More sharing options...
-Karl- Posted October 9, 2012 Author Share Posted October 9, 2012 Worked for me on Firefox 15.0.1 in Ubuntu 12.04. Does now that I've changed the code completely. But still if you click off the div, somewhere else on the document, it takes 2 clicks to show the menu again.. Quote Link to comment https://forums.phpfreaks.com/topic/269236-jquery-drop-down-menu/#findComment-1383904 Share on other sites More sharing options...
Adam Posted October 9, 2012 Share Posted October 9, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/269236-jquery-drop-down-menu/#findComment-1383918 Share on other sites More sharing options...
-Karl- Posted October 9, 2012 Author Share Posted October 9, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/269236-jquery-drop-down-menu/#findComment-1384052 Share on other sites More sharing options...
-Karl- Posted October 9, 2012 Author Share Posted October 9, 2012 Nvm fixed it. Quote Link to comment https://forums.phpfreaks.com/topic/269236-jquery-drop-down-menu/#findComment-1384053 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.