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

Menu undefined in for one link in menu


Poster: MsKitti
Dated: Tuesday October 15 2002 - 6:59:12 BST

I have gone over this menu for about 4 hours. I just cannot see what I am doing in error. Could someone please click on the link below to view the error and maybe tell me what is wrong, please.

The menu is great except on one menu name. I am not finished with this website, so do not click on the links in menu. You'll just get an error, page not found. Anyway go through these steps in menu to see where the error is:

On 2nd top menu, click on (PRODUCTS), then highlight (90's and 45's). The 90 Degree is fine. The 40 Degree gives an undefined error. It is suppose to drop another menu like the 90 Degree does.

Oh, and without the 3rd dropdown the menu works fine. Which means if I do not put the 90 Degree and 40 Degree in the menu, then all is ok.

http://www.vizualelements.com/clients/template1004/layout1/index.html

Here is the code itself:

Starts here
effect = "Fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength=5)"

timegap=500 // The time delay for menus to remain visible
followspeed=5 // Follow Scrolling speed
followrate=40 // Follow Scrolling Rate
suboffset_top=2; // Sub menu offset Top position
suboffset_left=10; // Sub menu offset Left position

MidStyle=[ // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"white", // Mouse Off Font Color
"000066", // Mouse Off Background Color
"000066", // Mouse On Font Color
"eeeeee", // Mouse On Background Color
"ffffff", // Menu Border Color
"11px", // Font Size in pixels
"normal", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"Verdana", // Font Name
2, // Menu Item Padding
"images/arrows/arrowswh.gif", // Sub Menu Image (Leave this blank if not needed)
, // 3D Border & Separator bar
"66ffff", // 3D High Color
"000099", // 3D Low Color
"000066", // Current Page Item Font Color (leave this blank to disable)
"ffffff", // Current Page Item Background Color (leave this blank to disable)
, // Top Bar image (Leave this blank to disable)
"ffffff", // Menu Header Font Color (Leave blank if headers are not needed)
"", // Menu Header Background Color (Leave blank if headers are not needed)
, // Menu Item Separator Color
]

// Middle menu
addmenu(menu=["MidMenu",
103,10,,,"",MidStyle,1,"left",,,1,,,1,,,,,,,
,"   Home   ","http://www.vizualelements.com/clients/template1004/layout1/index.html",,,1
,"   Products   ","show-menu=products",,,1
,"   Project List   ","http://www.vizualelements.com/clients/template1004/layout1/project_list1.html",,,1
,"   MSDS Sheets   ","http://www.vizualelements.com/clients/template1004/layout1/MSDS_sheets.html",,,1
,"   Technical   ","show-menu=technical",,,1
,"   Request A Quote   ","http://www.vizualelements.com/clients/template1004/layout1/request_a_quote.html",,,1
])

addmenu(menu=["products",
"offset=3",,180,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Pre-Formed","show-menu=preformed","#",,1
,"Precision Cut","show-menu=precisioncut","#",,1
,"Field Pre-Formed","show-menu=fieldpreformed","#",,1
,"90's and 45's","show-menu=9045","#",,1
,"Metal Mesh Blanket","show-menu=metalmeshblanket","#",,1
,"Deck Plugs","show-menu=deckplugs","#",,1
])

addmenu(menu=["preformed",
"offset=3",,170,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Data","http://www.vizualelements.com/clients/template1004/layout1/pf_data_sheet.html",,,0
,"Price","http://www.vizualelements.com/clients/template1004/layout1/pf_price_list.html",,,0
,"Packaging","http://www.vizualelements.com/clients/template1004/layout1/pf_packaging.html",,,0
])

addmenu(menu=["precisioncut",
"offset=3",,170,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Data","http://www.vizualelements.com/clients/template1004/layout1/pc_data_sheet.html",,,0
,"Price","http://www.vizualelements.com/clients/template1004/layout1/pc_price_list.html",,,0
,"Packaging","http://www.vizualelements.com/clients/template1004/layout1/pc_packaging.html",,,0
])

addmenu(menu=["fieldpreformed",
"offset=3",,170,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Data","http://www.vizualelements.com/clients/template1004/layout1/fpf_data_sheet.html",,,0
,"Price","http://www.vizualelements.com/clients/template1004/layout1/fpf_price_list.html",,,0
,"Packaging","http://www.vizualelements.com/clients/template1004/layout1/fpf_packaging.html",,,0
])

addmenu(menu=["9045",
"offset=3",,140,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"90 Degree","show-menu=ninedegree","#",,,0
,"45 Degree","show-menu=fourdegree","#",,,0
])

addmenu(menu=["fourdegree",
"offset=3",,130,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Data","#",,,0
,"Price","#",,,0
,"Packaging","#",,,0
])

addmenu(menu=["ninedegree",
"offset=3",,130,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Data","http://www.vizualelements.com/clients/template1004/layout1/90-45_data_sheet.html",,,0
,"Price","http://www.vizualelements.com/clients/template1004/layout1/90-45_price_list.html",,,0
,"Packaging","http://www.vizualelements.com/clients/template1004/layout1/90-45_packaging.html",,,0
])

addmenu(menu=["metalmeshblanket",
"offset=3",,170,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Data","http://www.vizualelements.com/clients/template1004/layout1/mmb_data_sheet.html",,,0
,"Price","http://www.vizualelements.com/clients/template1004/layout1/mmb_price_list.html",,,0
,"Packaging","http://www.vizualelements.com/clients/template1004/layout1/mmb_packaging.html",,,0
])

addmenu(menu=["deckplugs",
"offset=3",,170,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Data","http://www.vizualelements.com/clients/template1004/layout1/dp_data_sheet.html",,,0
,"Price","http://www.vizualelements.com/clients/template1004/layout1/dp_price_list.html",,,0
,"Packaging","http://www.vizualelements.com/clients/template1004/layout1/dp_packaging.html",,,0
])

addmenu(menu=["technical",
"offset=3",,200,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Pipe Insulation Temperatures","http://www.vizualelements.com/clients/template1004/layout1/pipe_insulation_graph.html",,,0
,"28 Day Corrosion Test","http://www.vizualelements.com/clients/template1004/layout1/28_day_corrosion_test.html",,,0
,"Thermal Conductivity Data","http://www.vizualelements.com/clients/template1004/layout1/thermal_conductivity.html",,,0
])

// Top Menu Style
TopStyle=[ // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"000066", // Mouse Off Font Color
"ffffff", // Mouse Off Background Color
"ffffff", // Mouse On Font Color
"000066", // Mouse On Background Color
"000066", // Menu Border Color
"10px", // Font Size in pixels
"normal", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"Verdana", // Font Name
2, // Menu Item Padding
"images/arrows/arrowswh.gif", // Sub Menu Image (Leave this blank if not needed)
, // 3D Border & Separator bar
"66ffff", // 3D High Color
"000099", // 3D Low Color
"333333", // Current Page Item Font Color (leave this blank to disable)
"f2f2f2", // Current Page Item Background Color (leave this blank to disable)
, // Top Bar image (Leave this blank to disable)
"ffffff", // Menu Header Font Color (Leave blank if headers are not needed)
"", // Menu Header Background Color (Leave blank if headers are not needed)
"cccccc", // Menu Item Separator Color
]

// Top Menus
addmenu(menu=["TopMenu",
2,"offset=-10;minimum=290",,,"right",TopStyle,1,"left",,,1,,,,,,,,,,
," Contact  ","show-menu=topcontact",,,1
," SiteMap  ","http://www.vizualelements.com/clients/template1004/layout1/sitemap.html",,,1
," Testimonials  ","http://www.vizualelements.com/clients/template1004/layout1/testimonials.html",,,1
])

addmenu(menu=["topcontact",
"offset=3",,140,1,"",TopStyle,,"left",effect,,,,,,,,,,,,
,"Contact MPT","http://www.vizualelements.com/clients/template1004/layout1/contact.html",,,1
,"Email Departments","http://www.vizualelements.com/clients/template1004/layout1/department_emails.html",,,1
,"Directions to MPT","http://rd.yahoo.com/maps/us/insert/Tmap/extmap/*-http://maps.yahoo.com/py/maps.py?&country=us&addr=2005+Turning+Basin+Dr+Ste+600&city=Houston&state=TX&zip=77029-4040&mag=9 target=win2",,,1
])

dumpmenus();

End Here

MsKitti
Vizual Elements
[url]vizualelements.com[/url]


Poster: trytrix
Dated: Tuesday October 15 2002 - 11:09:54 BST

Hi MsKitti,

addmenu(menu=["fourdegree",
"offset=3",,130,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Data","#",,,0
,"Price","#",,,0
,"Packaging","#",,,0
])

"#" isn't an URL ??

Cheers,

Trytrix

(From The Flandes Fields 8O )

# isn't a URL


Poster: MsKitti
Dated: Tuesday October 15 2002 - 15:52:59 BST

I know this(#) is not a URL. I had a complete address in these links as I did with the rest of the menu. But I was getting the error with the 45 Degree, so I took out the links to shorten the viewing to locate the error, which I have not found yet.

That is not the problem.

Kitti


Poster: Andy
Dated: Tuesday October 15 2002 - 16:00:01 BST

Hi,

You have too many commas for the menu items.

It should be like this

Code:
addmenu(menu=["9045",
"offset=3",,140,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"90 Degree","show-menu=ninedegree",,,0
,"45 Degree","show-menu=fourdegree",,,0
])



-- Andy

too many commas


Poster: MsKitti
Dated: Tuesday October 15 2002 - 16:06:39 BST

I had tried that and it worked. I removed all # and extra commas. I see that the # is not needed when you are wanting a menu item to dropdown another menu.

All works fine now. ;)

Thank You Kindly,
Ms. Kitti