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

Invalid proerty value Javascript Error - Menu color change


Poster: thusband
Dated: Thursday January 12 2006 - 17:34:40 GMT

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


Poster: kevin3442
Dated: Thursday January 12 2006 - 20:22:18 GMT

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


Poster: thusband
Dated: Thursday January 12 2006 - 22:02:24 GMT

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


Poster: kevin3442
Dated: Friday January 13 2006 - 1:45:28 GMT

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:
pagecolor="#black";


#black is an invalid color code. IE sees the # and expects a hex color code.

Hope that helps,

Kevin


Poster: thusband
Dated: Friday January 13 2006 - 14:03:49 GMT

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

Regards

Tim