Keypress - only the tab key works.

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
richards
Beginner
Beginner
Posts: 6
Joined: Wed Jul 25, 2007 2:33 pm

Keypress - only the tab key works.

Post by richards »

Conditions: MM Version 5.777 using php and mysql - the menu is embedded within a table. The tab key works, the enter key works only when located on an actual function. The arrow keys do not work, and the enter key doesn't work for submenus.

Example: http://Waterfordbikes.com/!

Any thoughts?

Thanks.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I can't find the milonic menu on that page. I find no milonic files listed.

Ruth
richards
Beginner
Beginner
Posts: 6
Joined: Wed Jul 25, 2007 2:33 pm

Re: Keypress - only the tab key works.

Post by richards »

Try this URL:

http://waterfordbikes.com/!/index.php

The use of an "!" as a directory name makes the link tricky.

Please try again.

Thanks.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Well, a couple of things. One, you have the menu set up to be in a table it seems. You need to add position="relative"; to the main menu and you also need to put in buildAfterLoad=true; up after the the delay and subOffset section. That's based on what I see as your setup. Please see the sticky on this forum about putting menus in tables/divs relatively positioned.

I also don't know why you have a drawmenus at the end of every submenu maybe something to do with the mysql about which I know nothing. Anyway, if you look on the main site, Milonic uses a menu_data.php file and the keypress.js module call is after that. So, taking it from that, I am figuring you will need to have

Code: Select all

<script language="JavaScript" src="keypress.js" type="text/javascript"></script>	
after your last

Code: Select all

drawMenus(); </script>
I put it after the break code in that table cell. It worked then.

Ruth
Post Reply