Line 42 - mmenu.js error invalid arguement

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
SlashEMc
Beginner
Beginner
Posts: 5
Joined: Tue Jul 09, 2002 12:24 pm

Line 42 - mmenu.js error invalid arguement

Post by SlashEMc »

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

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
heraldbecker@home.nl
Beginner
Beginner
Posts: 6
Joined: Sun May 19, 2002 7:24 pm

Post by heraldbecker@home.nl »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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

Cheers
Andy
SlashEMc
Beginner
Beginner
Posts: 5
Joined: Tue Jul 09, 2002 12:24 pm

hmmm.

Post by SlashEMc »

Nope its on the server don`t think its a server issue. :(
Will check up on the colours :) cheers.
SlashEMc
Beginner
Beginner
Posts: 5
Joined: Tue Jul 09, 2002 12:24 pm

Post by SlashEMc »

I don`t think its anything with my colours?

Code: Select all

style1=[			
"white",			
"transparent",		
"#D60F05",			
"transparent",		
,					
12,					
"normal",			
"bold",				
"Arial",			
4,					
,					
,					
,					
,					
"yellow",			
,					
,					
,					
,					
,					
]
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Try this instead

Code: Select all

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hold on !!

The lack of border color could also cause problems.

Try this if the above doesnt work

Code: Select all

style1=[          
"white",          
"",        
"D60F05",          
"",        
"",                
12,                
"normal",          
"bold",              
"Arial",          
4,                
,                
,                
,                
,                
"yellow",          
,                
,                
,                
,                
,                
]
SlashEMc
Beginner
Beginner
Posts: 5
Joined: Tue Jul 09, 2002 12:24 pm

nope.

Post by SlashEMc »

still line 42 error.

Code: Select all

style1=[          
"white",          
"",        
"D60F05",          
"",        
"",                
12,                
"normal",          
"bold",              
"Arial",          
4,                
,                
,                
,                
,                
"yellow",          
,                
,                
,                
,                
,                
]
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
SlashEMc
Beginner
Beginner
Posts: 5
Joined: Tue Jul 09, 2002 12:24 pm

Fixed.

Post by SlashEMc »

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 :)
Post Reply