I'm using some code I found on this forum to show/hide a menu. It works great, but the problem is when I resize the browser window, the menu re-appears. Here's the code. I'm just using a standard sample menu_data.js.
The reason it shows after the browser is 'resized' is because you are in effect reloading the page and therefore start at the beginning again. I think the only thing you could do would be to add to the function telling it to keep whatever state it has when the page is reloaded, but I don't know if that would interfere with what happens to the menu when you go to another page.
Nice code work - do you have a URL for us to see it in action?
Jay Shobe wrote:I'm using some code I found on this forum to show/hide a menu. It works great, but the problem is when I resize the browser window, the menu re-appears. Here's the code. I'm just using a standard sample menu_data.js.
I'm with Rudy, I like that. I just tested it. Now, the only thing I'd like to get it to do is, have only one button that had the correct text depending on the 'condition' of the menu, hidden or visible and then make it scroll down as you scroll down the page Oh, and I guess the menu would have to open at whatever place on the page to which one had scrolled or it would have to take you back to the top when you clicked on the 'show menu' ....