Unwanted Highlighting

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
MrMucox
Beginner
Beginner
Posts: 3
Joined: Fri May 13, 2005 3:39 pm

Unwanted Highlighting

Post by MrMucox »

On my site, http://www.troop7buttonwoods.com, I use the Milonic menu, and have been for a long while, since version 3, and recently upgraded from v5.09 to the current. I had to make a couple of changes to make the menu even show up after the upgrade.

My problem is that when on the main page, the second item shows the overimage, not the standard image. If I go to another page (White Stag or Scoutmaster pages), a different item is selected. The thing is, that the item selected on the main page, has nothing to do with the main page, and there is no reason that it should be selected. I really don't want any selection/highlighting. This was all working great with 5.09.

Current Settings (1st level only):

Code: Select all

with(MainmenuStyle=new mm_style()){
padding=5;
pagematch="/null.html";
pagecolor="";
pagebgcolor="";
pageimage="";
pagebgimage="";
}

with(milonic=new menuname("Main Menu")){
style=MainmenuStyle;
top=200;
left=45;
alwaysvisible=1;
//itemwidth=72;
//itemheight=16;
aI("showmenu=Calendar;image=http://www.troop7buttonwoods.com/media/1-Calendar-Up.jpg;overimage=http://www.troop7buttonwoods.com/media/1-Calendar-Down.jpg;")
aI("showmenu=CampingTrips;image=http://www.troop7buttonwoods.com/media/2-Camping-Up.jpg;overimage=http://www.troop7buttonwoods.com/media/2-Camping-Down.jpg;")
aI("showmenu=Eagles;image=http://www.troop7buttonwoods.com/media/3-Eagles-Up.jpg;overimage=http://www.troop7buttonwoods.com/media/3-Eagles-Down.jpg;")
aI("url=http://www.troop7buttonwoods.com/stag.shtml;target=_top;image=http://www.troop7buttonwoods.com/media/4-Stag-Up.jpg;overimage=http://www.troop7buttonwoods.com/media/4-Stag-Down.jpg;")
aI("showmenu=Awards;image=http://www.troop7buttonwoods.com/media/5-Awards-Up.jpg;overimage=http://www.troop7buttonwoods.com/media/5-Awards-Down.jpg;")
aI("showmenu=Yawgoog;image=http://www.troop7buttonwoods.com/media/6-Yawgoog-Up.jpg;overimage=http://www.troop7buttonwoods.com/media/6-Yawgoog-Down.jpg;")
aI("showmenu=Photos;image=http://www.troop7buttonwoods.com/media/7-Photos-Up.jpg;overimage=http://www.troop7buttonwoods.com/media/7-Photos-Down.jpg;")
aI("showmenu=Links;image=http://www.troop7buttonwoods.com/media/8-Links-Up.jpg;overimage=http://www.troop7buttonwoods.com/media/8-Links-Down.jpg;")
aI("showmenu=Scoutmaster;image=http://www.troop7buttonwoods.com/media/9-Scoutmaster-Up.jpg;overimage=http://www.troop7buttonwoods.com/media/9-Scoutmaster-Down.jpg;")
aI("showmenu=Scoutcraft;image=http://www.troop7buttonwoods.com/media/10-Scoutcraft-Up.jpg;overimage=http://www.troop7buttonwoods.com/media/10-Scoutcraft-Down.jpg;")
aI("showmenu=Reverence;image=http://www.troop7buttonwoods.com/media/11-Reverence-Up.jpg;overimage=http://www.troop7buttonwoods.com/media/11-Reverence-Down.jpg;")
}
Thanks for any help.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Try removing all of the following...

Code: Select all

pagematch="/null.html";
pagecolor="";
pagebgcolor="";
pageimage="";
pagebgimage="";
Minor, and not part of this problem, add a ; at the end of each aI to close the statement.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

It will stop matching when you remove that but so you know why it was matching, you have:

Code: Select all

with(milonic=new menuname("Camping-August")){
style=menuStyle;
overflow="scroll";
//aI("text=To Be Announced;");
aI("text=Information;url=http://www.troop7buttonwoods.com;");
Because that submenu is under camping and has the same url for Information as the main page, that triggered the match.

Ruth
User avatar
MrMucox
Beginner
Beginner
Posts: 3
Joined: Fri May 13, 2005 3:39 pm

Post by MrMucox »

I never had those in there to begin with. I put them in to try to stop it from happening. Removing them did not solve the problem. Removing the link to the home page further down did resolve the highlight on the main page. However, clicking "White Stag", or either "Scoutmaster" link, and going to those pages, highlights them in the menu, and I would rather that that didn't happen. Is there any way to turn it completely off, unless the mouse is over that particular menu item.

Thanks for solving the main issue! :D
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I'm reporting this. Nothing I've tried stops that from happening :cry:
If I'm doing something wrong, I'll get back to you. Also, keep an eye on
updates, I'm sure it will be fixed shortly if it's a menu issue.

Ruth
User avatar
MrMucox
Beginner
Beginner
Posts: 3
Joined: Fri May 13, 2005 3:39 pm

Post by MrMucox »

:? Well... I feel better now then. I though it was me :!: Thanks for all your help!
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

I have to agree... looks like a gremlin crept into 5.723.

MrMucox... I've sent an email to your gmail account. I'm hoping you'll have time to read it and reply. Thanks.

Kevin
Post Reply