Menu[1] is Undefined

techgeek1499

New Member
Messages
18
Reaction score
0
Points
0
Hey all I been working on my website and my JavaScript menu won't seem to work. Like I have it on my computer display the html page from the computer works fine. Upload it to my site try to display it. It doesn't work.

The code is:

Code:
/***********************************************
* Omni Slide Menu script - © John Davenport Scheuer
* very freely adapted from Dynamic-FX Slide-In Menu (v 6.5) script- by maXimus
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
* as first mentioned in http://www.dynamicdrive.com/forums
* username:jscheuer1
***********************************************/

//One global variable to set, use true if you want the menus to reinit when the user changes text size (recommended):
resizereinit=true;

menu[1] = {
id:'menu1', //use unique quoted id (quoted) REQUIRED!!
bartext:'ARCHIVE',
menupos:'left',
kviewtype:'fixed', 
menuItems:[ // REQUIRED!!
//[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
["2009 - Archive"], //create header
["Zune HD", "http://www.techcorner.pcriot.com/reviews/archive/2009", ""],
["Katrina Panel", "http://www.dynamicdrive.com/new.htm",""],
["Ipod", "http://www.dynamicdrive.com/hot.htm", ""],
["If you have any suggestions please go to the forums and suggest them in suggestions > Reviews. Thank you.", "http://www.techcorner.pcriot.com/forum", ""]

]};

// this is for next year ["2010", "", ""], //create header
//["JavaScript Kit", "http://www.javascriptkit.com", "_new"],
//["Freewarejava", "http://www.freewarejava.com", "_new"],
//["Coding Forums", "http://www.codingforums.com", "_new"]  //no comma after last entry

//    ]};     // REQUIRED!! do not edit or remove

////////////////////Stop Editing/////////////////

make_menus();
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Code:
make_menus();

Where is this defined?

Do you have a url so we can see the error in the wild?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
For now, try changing the order to:

Code:
	<script src="http://www.techcorner.pcriot.com/js/mmenu.js"></script> 
	<script src="http://www.techcorner.pcriot.com/js/menuItems.js"></script>
 
Top