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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:32

Line 42 - mmenu.js error invalid arguement


Poster: SlashEMc
Dated: Tuesday July 9 2002 - 12:39:20 BST

Hi guys,
I`m having a bit of trouble, have any of you guys had any problems or experienced this:

Select a link ie menu.asp from dynamic menu.
The page refreshes, the link is activated and has changed colour to yellow from white.
When I mouseover the link I have no problem however; on mouseout of the active link I get line 42 error: invalid arguement.

Code:
function popdn(){arg=popdn.arguments;if(arg[0]){if(arg[3].substr(0,5)!="show-"){if(ns4){shl(arg[2],arg[1],"hide")}else{arg[0].style.background=arg[4];arg[0].style.color=arg[5]}}else{if(ns4)omv=0;hlarr[hlcnt]=arg[2]+"_"+arg[1]+"_"+arg[4]+"_"+arg[5];hlcnt++;}menu=eval(arg[2]);if(!menu[12]){Mtimer=setTimeout("closeallmenus();",timegap);}}else{Mtimer=setTimeout("closeallmenus()",timegap);}}


Any help would be much appreciated :) thnx guys


Poster: heraldbecker __at__ home.nl
Dated: Tuesday July 9 2002 - 13:02:06 BST

I've had this problem once, but this was because the ASP page didn't load on my local IIS ..... after transfering it to the server, it worked again.

Hope this is helpful


Poster: Andy
Dated: Tuesday July 9 2002 - 13:05:32 BST

It could be a dodgy mouseoff color in your menu_array.js file

Cheers
Andy

hmmm.


Poster: SlashEMc
Dated: Tuesday July 9 2002 - 13:05:42 BST

Nope its on the server don`t think its a server issue. :(
Will check up on the colours :) cheers.


Poster: SlashEMc
Dated: Tuesday July 9 2002 - 13:10:07 BST

I don`t think its anything with my colours?


Code:
style1=[         
"white",         
"transparent",      
"#D60F05",         
"transparent",      
,               
12,               
"normal",         
"bold",            
"Arial",         
4,               
,               
,               
,               
,               
"yellow",         
,               
,               
,               
,               
,               
]


Poster: Andy
Dated: Tuesday July 9 2002 - 13:12:11 BST

Try this instead

Code:
style1=[         
"white",         
"",       
"D60F05",         
"",       
,               
12,               
"normal",         
"bold",             
"Arial",         
4,               
,               
,               
,               
,               
"yellow",         
,               
,               
,               
,               
,               
]


The hash in your code will cause a problem. Also, transparent as a color in some browsers (if I remember correctly) will cuase trouble too.

Cheers
Andy


Poster: Andy
Dated: Tuesday July 9 2002 - 13:13:59 BST

Hold on !!

The lack of border color could also cause problems.

Try this if the above doesnt work

Code:
style1=[         
"white",         
"",       
"D60F05",         
"",       
"",               
12,               
"normal",         
"bold",             
"Arial",         
4,               
,               
,               
,               
,               
"yellow",         
,               
,               
,               
,               
,               
]

nope.


Poster: SlashEMc
Dated: Tuesday July 9 2002 - 13:20:17 BST

still line 42 error.
Code:
style1=[         
"white",         
"",       
"D60F05",         
"",       
"",               
12,               
"normal",         
"bold",             
"Arial",         
4,               
,               
,               
,               
,               
"yellow",         
,               
,               
,               
,               
,               
]


Poster: Andy
Dated: Tuesday July 9 2002 - 13:26:21 BST

I've just tested the style and it works fine.

So, It must be something else. Send over your menu array with the problem menu and I'll take a look

Cheers
Andy

Fixed.


Poster: SlashEMc
Dated: Tuesday July 9 2002 - 15:28:54 BST

Simple fix by Andy :-

"A parameter was missing.

Where you have "yellow" as the Current item foreground color you need to add a background color too. Add "" tested and works." :idea:

Thnx for your help Andy :)