Current location: Hot Scripts Forums » General Web Coding » JavaScript » 'menus[...]' is null or not an object


'menus[...]' is null or not an object

Reply
  #1 (permalink)  
Old 08-16-04, 01:37 PM
kepin kepin is offline
New Member
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
'menus[...]' is null or not an object

Hi everyone,


I keep getting this error msg 'menus[...]' is null or not an object in this dropdown menu http://dev.ultradiamonds.com/top_nav2.cfm

And I think...something in this code is the cause of the problem, not sure tho.

Code:
	var menus = [
		
	new ypSlideOutMenu("menu3", "down", 242, 103, 115, 141), // menu for DIAMOND FASHION
	new ypSlideOutMenu("menu4", "down", 353, 103, 115, 121), // menu for GEMSTONE
	new ypSlideOutMenu("menu5", "down", 464, 103, 111, 141), // menu for GOLD & SILVER
	new ypSlideOutMenu("menu6", "down", 686, 103, 113, 21), // menu for CLOSE OUTS
	new ypSlideOutMenu("menu7", "down", 575, 103, 111, 101), // menu for WATCHES
	new ypSlideOutMenu("menu0", "down", 130, 103, 112, 121, null), // menu for BRIDAL
	new ypSlideOutMenu("menu10", "right", 241, 103, 112, 41, "menu0"),
		]

document.write('<style type="text/css">' + ypSlideOutMenu.styleMod + '</style>');
for (var i = 0; i < menus.length; i++)
	 {
		menus[i].onactivate = new Function("document.getElementById('act" + i + "').className='active';");
		menus[i].ondeactivate = new Function("document.getElementById('act" + i + "').className='';");	
	 }
Any respond would be appreciated. Thanks a lot in advanced !!
Reply With Quote
  #2 (permalink)  
Old 08-16-04, 04:46 PM
kepin kepin is offline
New Member
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
never mind...I found the problem is.

im so dumb...I put too many ---> ,
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
login script cyberted Script Requests 2 05-06-04 01:57 AM
Newbie MySQL fccolon PHP 2 03-16-04 10:54 AM
MySQL Query problem Wraith PHP 5 03-06-04 05:16 PM
picking random entries with a filter... Double selection problem dsumpter PHP 7 11-16-03 07:19 PM
Help with making a installer config script dazz Job Offers & Assistance 3 09-29-03 02:51 AM


All times are GMT -5. The time now is 10:29 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.