twQ
12-30-2009, 08:49 PM
Hey, I'm fixing a drop down menu script. Not complicated and I can make it work this is more curiosity. Ok the below code is the current it works, but it immediately closes. Huh? Am I misunderstanding the event handler? Please tell me how to fix it. Thanks!
EDIT: Found the error. As it turns out you cannot use a function with arguemnts (i.e. function('hey')) you must use just a function (for those that don't know just the name of the function no parenthesis)
so it would be:
element.onmouseoff = function;
that kinda sucks for my purpose but atleast I found the cause.
Tim
EDIT: Found the error. As it turns out you cannot use a function with arguemnts (i.e. function('hey')) you must use just a function (for those that don't know just the name of the function no parenthesis)
so it would be:
element.onmouseoff = function;
that kinda sucks for my purpose but atleast I found the cause.
Tim