PDA

View Full Version : javascript error that does nothing


rockstarmike
09-07-2002, 10:01 PM
check it out, unfinished site and blah blah blah, i know images are out and it's not done but whatever.

www.noisefreedesign.com/staff.php

this is a youngpup.net slidedown menu script that i ****ed around with a bit, so instead of mouseovers, it's onclicks
and instead of a dropdown menu, it's a slide out content

but there is a problem, it's throwing an error, saying that menu[...] is null,
it just appeared, it doesnt affect anything, the code works fine, every slides out fine, but i dont want this error eating up my page
and making it look piss poor

take a look and see if you can find the problem
thanks :)

joh6nn
09-07-2002, 10:38 PM
var menus = [
new ypSlideOutMenu("menu1", "right", 168, 77, 680, 400),
new ypSlideOutMenu("menu2", "right", 168, 77, 680, 400),
new ypSlideOutMenu("menu3", "right", 168, 77, 680, 400),
new ypSlideOutMenu("menu4", "right", 168, 77, 680, 400),
new ypSlideOutMenu("menu5", "right", 168, 77, 680, 400),
]

IE interprets that comma as meaning that there's an empty (null) slot in the array, giving the array a length of 6, not 5. get rid of the comma, and all is well.

rockstarmike
09-08-2002, 02:50 AM
thank you sir
work'd like a charm