Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:11

Hiding the menu


Poster: darkcircuituk
Dated: Thursday September 9 2004 - 15:02:37 BST

I am using the context right click menu and I wish to close the menu straight away after someone has executed a menu option and before the code behind the option is executed.

The main reason for this question is that currently when someone clicks the print option on my right click menu it opens the print screen (excellent) and the menu does close (after the user leaves the menu and the specified amount of time has passed), but when you print the page, the menu prints as well because it was displayed on the page when the print function was called, arrrgggghhhhhh.

Do you have a way of fixing this problem because it is driving me mad :-S

Thanks

Dave


Poster: Ruth
Dated: Thursday September 9 2004 - 17:17:59 BST

Doing a search for print will give you a number of results some of which deal with not printing the menu when printing a page, and checking under the main site DHTML menu Faqs will give you the complete directions for stopping the menu from printing.

Ruth


Poster: kevin3442
Dated: Thursday September 9 2004 - 21:40:40 BST

Hi Dave,

The FAQ Ruth referred to is this one. It's pretty clever, as it uses css media types combined with a built-in class called mmenu to turn off the menus when you print a page. Hoever, there are a couple of caveats. First, the " __at__ media" method won't work in NS4 (no biggie if you don't care about NS4). Second, you should be aware that the method discussed in the FAQ will turn off all of the menus on the page, not just the context menu. If you want to turn just the context menu off, we'll probably have to figure something else out.

Cheers,

Kevin