javascript:void() on main menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tricky
Beginner
Beginner
Posts: 3
Joined: Mon Feb 14, 2005 9:46 pm

javascript:void() on main menu

Post by tricky »

Here's a biginner's question if ever there was one.
On the main level of my menu, where I have text, always visible and showmenu only (no url), it still mouses over as a hyperlink and produces a javascript:void();
Is there any way to make it not mousover to a finger pointer (so mouse pointer remains as an arrow) but still swap colors? I don't want the main menu to be clickable, just the submenu items.
Does this question even make any sense???

Please, don't everyone roll there eyes at the same time. Thanks :roll: 8O
It's Tricky!!!
Who mows your nose hair???
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Try type=header; .

Also, a URL is always helpful for us, as requested.
John
tricky
Beginner
Beginner
Posts: 3
Joined: Mon Feb 14, 2005 9:46 pm

Post by tricky »

That removed the link pointer, but now the text doesn't swap colors.
The text should swap white - to - grey but the mouse should remain an arrow, not change to a finger. Don't know if that's possible. Here is the link:
http://www.safenet-inc.com/

Thanks in advance.
Who mows your nose hair???
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You can use the pointer code to prevent the pointer from changing to a hand for the main menu items that are not actual links to some page. Other than that, I don't know what you could do, since in effect they are links, just not clickable links that take you any place, they 'link' in a sense to the menu that is going to be shown and switch the colors from an 'onmouseover' event. The header doesn't do any of that onmouseover switch to the onbgcolor, oncolor etc. it's a fixed plain text, I guess you could call it. The pointer code is in the itemproperties references. There are links below my name to different menu property references. Style, menu and items.

Ruth
tricky
Beginner
Beginner
Posts: 3
Joined: Mon Feb 14, 2005 9:46 pm

Post by tricky »

Yes! pointer=default; did the trick. It's still a link but no one realizes it unless they click it and look closely at the status bar and see the void() msg.

I previously used a different company's menu (which seems to be a cheap ripoff of yours) which does do a non-linking mousover color swap. Other than that, though, it's garbage compared to Milonic.
Thanks a million!!
Who mows your nose hair???
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Welcome to Milonic, we're glad you made the switch. It's a marvelous menu. I'm a bit biased since I volunteer here because I think it's the best menu out there.

Ruth
Post Reply