Invalid proerty value Javascript Error - Menu color change

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
thusband
Beginner
Beginner
Posts: 3
Joined: Thu Jan 12, 2006 5:52 pm

Invalid proerty value Javascript Error - Menu color change

Post by thusband »

Hi there,

I have implemneted a menu at:

http://www.ca-innovations.com/content

The Milonic menu apears at the top of the page in grey (the side menu is not using Milonic)

This milonic menu works fine when clicking on the first item and the colour change for the item displayed works. However when drilling down and selecting an item in a sub menu a javascript error occurs:

Line 21 - Invalid proerty value


I tried commenting out the following line:

/*if(_I[34]!="header")_lnk.style.color=_lnk.oC;*/

This was suggested in a previous post and although this does remove the error, as you scroll over the items in the menu the color does not revert after hovering over the items.

Any help would be much appreciated

Thanks

Tim
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Tim,

Quick glance, quick guess: Might try the latest release, v5.739, to see if an update will clear it up. Also, I'd be suspiscious of

Code: Select all

bordercolor="#";
in your menu code. # by itself is not a valid color definition. Like I said, a quick guess. If the problem persists after you update, we'll have a closer look.

Cheers,

Kevin
thusband
Beginner
Beginner
Posts: 3
Joined: Thu Jan 12, 2006 5:52 pm

Post by thusband »

Hi Kevin,

Thanks for the suggestions. However I have downloaded the new menu and added the color in but this has still not helped - I am still receiving the same error

Thanks again

Tim
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Tim,

Another look... think I found the culprit. In your menu code, you have defined a menu style called CIStyle, where you have

Code: Select all

pagecolor="#black";
#black is an invalid color code. IE sees the # and expects a hex color code.

Hope that helps,

Kevin
thusband
Beginner
Beginner
Posts: 3
Joined: Thu Jan 12, 2006 5:52 pm

Post by thusband »

Thanks Kevin for your help - it's all working great now!

Regards

Tim
Post Reply