Menu undefined in for one link in menu

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
User avatar
MsKitti
Advanced
Advanced
Posts: 22
Joined: Wed Oct 09, 2002 2:46 am
Location: Houston, TX
Contact:

Menu undefined in for one link in menu

Post by MsKitti » Tue Oct 15, 2002 6:59 am

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/t ... 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/t ... .html",,,1
,"   Products   ","show-menu=products",,,1
,"   Project List   ","http://www.vizualelements.com/clients/t ... .html",,,1
,"   MSDS Sheets   ","http://www.vizualelements.com/clients/t ... .html",,,1
,"   Technical   ","show-menu=technical",,,1
,"   Request A Quote   ","http://www.vizualelements.com/clients/t ... .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/t ... .html",,,0
,"Price","http://www.vizualelements.com/clients/t ... .html",,,0
,"Packaging","http://www.vizualelements.com/clients/t ... .html",,,0
])

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

addmenu(menu=["fieldpreformed",
"offset=3",,170,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Data","http://www.vizualelements.com/clients/t ... .html",,,0
,"Price","http://www.vizualelements.com/clients/t ... .html",,,0
,"Packaging","http://www.vizualelements.com/clients/t ... .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/t ... .html",,,0
,"Price","http://www.vizualelements.com/clients/t ... .html",,,0
,"Packaging","http://www.vizualelements.com/clients/t ... .html",,,0
])

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

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

addmenu(menu=["technical",
"offset=3",,200,,"",MidStyle,,"left",effect,,,,,,,,,,,,
,"Pipe Insulation Temperatures","http://www.vizualelements.com/clients/t ... .html",,,0
,"28 Day Corrosion Test","http://www.vizualelements.com/clients/t ... .html",,,0
,"Thermal Conductivity Data","http://www.vizualelements.com/clients/t ... .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/t ... .html",,,1
," Testimonials  ","http://www.vizualelements.com/clients/t ... .html",,,1
])

addmenu(menu=["topcontact",
"offset=3",,140,1,"",TopStyle,,"left",effect,,,,,,,,,,,,
,"Contact MPT","http://www.vizualelements.com/clients/t ... .html",,,1
,"Email Departments","http://www.vizualelements.com/clients/t ... .html",,,1
,"Directions to MPT","http://rd.yahoo.com/maps/us/insert/Tmap ... 4040&mag=9 target=win2",,,1
])

dumpmenus();

End Here

MsKitti
Vizual Elements
vizualelements.com

User avatar
trytrix
Super Advanced
Super Advanced
Posts: 92
Joined: Thu Sep 26, 2002 9:46 pm
Location: Flanders / Belgium
Contact:

Post by trytrix » Tue Oct 15, 2002 11:09 am

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 )

User avatar
MsKitti
Advanced
Advanced
Posts: 22
Joined: Wed Oct 09, 2002 2:46 am
Location: Houston, TX
Contact:

# isn't a URL

Post by MsKitti » Tue Oct 15, 2002 3:52 pm

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

User avatar
Andy
Milonic
Milonic
Posts: 3307
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy » Tue Oct 15, 2002 4:00 pm

Hi,

You have too many commas for the menu items.

It should be like this

Code: Select all

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

-- Andy

User avatar
MsKitti
Advanced
Advanced
Posts: 22
Joined: Wed Oct 09, 2002 2:46 am
Location: Houston, TX
Contact:

too many commas

Post by MsKitti » Tue Oct 15, 2002 4:06 pm

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

Post Reply