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:15

keypress using onmouseover


Poster: Joeyb
Dated: Friday October 24 2008 - 17:38:13 BST

I'm trying to get tabbing to work with my menus that are built following the sample method: http://www.milonic.com/menusample24.php using the onmouseover event on an image. I actually have the mousover on a LI tag, and it's been working fine. I have three popup menus on the page. I've added the keypress.js script reference after the menu_data.js reference, and I've tried adding onkeypress and onkeydown to activate the menus with the keyboard. onkeypress does nothing and onkeydown opens the menu with the down arrow, but you can't get into the menu and submenu after that. I'm using version 5.792 of the menus. What do I need to do to make my menus use the keypress.js code with my mouseover popup menus? Thanks!

Re: keypress using onmouseover


Poster: Ruth
Dated: Wednesday October 29 2008 - 15:08:48 GMT

Hi,

Do you have a page so I can test this with what you have? Or can you give me the html and menu data info so I can copy and paste it and test?

Ruth

Re: keypress using onmouseover


Poster: Joeyb
Dated: Wednesday October 29 2008 - 20:10:19 GMT

I'm trying to get this sample to work with keypress.

http://www.milonic.com/menusample24.php

If we can do that, it'll work for my page. I downloaded the sample files and copied keypress.js over to the root of the sample folder from the modules folder, then I added the script reference to it in the index.htm file underneath the others.

When I tab over the menus, it just skips to the next menu over and does not open it up. So, I tried adding onkeypress="popup('milonic','milonicmenu')" to an anchor tag but nothing different happened. I then tried onkeydown and viola -- a menu appeared -- but I couldn't tab into it, and I couldn't close it.

So if you can get that sample to work, I think that will be the key.

Thanks,

Joe

Re: keypress using onmouseover


Poster: Ruth
Dated: Thursday October 30 2008 - 3:08:54 GMT

Hi,

I've test it, and yes I see the problem. I've reported this to Milonic. They are usually very quick in response to issues so I'll post back as soon as I get anything. You might try contacting Milonic and ask them if the keypress will work with the listbased menu.

http://www.milonic.com/contactus.php


Ruth

Re: keypress using onmouseover


Poster: Joeyb
Dated: Thursday October 30 2008 - 14:38:47 GMT

Thanks for your help, Ruth!

I looked at the css list-based menu explanation, but I'm not using any server-side technology (like PHP) to do an include, and I want the menu on every page, so that would be too much maintenance when the menus change. I'll keep that in mind for the future, though. I'll keep checking back here for an update from you and Milonic on tabbing alongside the mouseover() function.

Thanks again!

Joe

Re: keypress using onmouseover


Poster: Ruth
Dated: Thursday October 30 2008 - 15:16:42 GMT

Hi,

Hmm, OK, well I think I misunderstood. I thought you were using the listbased, but now on rereading I see that you are just popping up the menu from an LI text, or is it an image? I will repost to Milonic on this because the tab should work with the popup menu. Sorry about that :oops:

Ruth

Re: keypress using onmouseover


Poster: Joeyb
Dated: Friday October 31 2008 - 3:44:02 GMT

The sample I pointed you to was using the popup() function on a image. I just happen to be using my top menu links in list format (but with no nested sublists) and it's popping up all the submenu data on each of the three li tags separately. It works the same as the image sample.

Thanks again. I hope we hear back soon.

Joe

Re: keypress using onmouseover


Poster: Joeyb
Dated: Thursday November 6 2008 - 16:14:43 GMT

Hi Ruth,

Any replies from the Milonic folks on getting the keypress.js to work for menus that use the onmouseover() approach?

Thanks,

Joe

Re: keypress using onmouseover


Poster: Ruth
Dated: Tuesday November 11 2008 - 15:55:55 GMT

Hi,

Sorry, I've been out a while. I'll post to them again as I haven't heard anything. Usually they are pretty quick on response but this may take some programming.

Ruth

Re: keypress using onmouseover


Poster: Ruth
Dated: Wednesday November 12 2008 - 14:20:42 GMT

Hi,

I just got the info from Milonic. Unfortunately, the keypress does not work with the pop menu. They are working on it, but wanted me to know that this requires creating a whole new program so it may not be very quick.

If you could give me a page I could see what I could do to set something up where you can actually use the menu instead of the pop menu and still keep your layout as you want it. Since I'm not a programmer, I tend to experiment and find workarounds when there is an issue :)

Ruth

Re: keypress using onmouseover


Poster: Joeyb
Dated: Wednesday November 19 2008 - 0:20:35 GMT

Thanks for the offer. I don't have a link I can send you right now.

I have an unordered list of 4 items. Its css display is set to inline so that it displays horizontally and with no bullets. I have that positioned about 100px from the top of the page and centered horizontally. The background images for the li block elements are nicely shaded gif buttons. When you mouseover an li element, a menu appears. The menus have submenus.

Seems very simple now that I write it out.

Thanks!

Joe