Forums Archive Index > SmartMenus 5 > I think this is a Bug or may be Problem at my end.
Date: 6 Dec 2004 4:53 pm
Hi,
I have a probelm with the script if you see my website at
--> http://kavincreations.8m.com/NWOET/example2.html
the last link (Workshops) doesnot show the drop down sub menu at all; however In Safari it does show it.
I cannot understand as to why is this happening I am gettign an error in IE "Style is null ot not an object"
I have the javascript file at
--> http://kavincreations.8m.com/NWOET/s_arrays.js
Please check as to wht is the problem in it. It think this may be a bug?
Thanks,
kavin[/url]
Date: 9 Dec 2004 9:13 am
Don't worry, it's not a bug- just a simple syntax mistake. :)
You have placed a comma after the last menu item in the definition for the "resources" menu. IE is the only browser that has problems with such syntax- all other browsers simply neglect the comma if no item follows it.
s_add(
{N:'resources',LV:2,MinW:130,T:'s_getDim("H8","h")+s_getPos("H8","t")-1',L:'s_getPos("H8","l")',P:false,S:s_CSSTop},
[
{U:'http://www.nwoet.org/resources/teaching_resources.htm',T:'Teaching Resources'},
{U:'http://www.nwoet.org/resources/edtech.htm',T:'ED Tech Agencies'},
{U:'http://www.nwoet.org/resources/marc/default.htm',T:'MARC Records'}, // No comma should be used here
]
);