still lost...lol

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
code-illiterate
Beginner
Beginner
Posts: 3
Joined: Fri Jul 25, 2003 8:06 pm

still lost...lol

Post by code-illiterate »

OK, just to make sure I'm right in this, and I'm really illiterate on webpages...well except for basic html...when it talks about 'yourfunction' does that mean you have to write a javascript or something? and where would you put it..not that i can write one, but.... I looked at the onmouseover menu and the code shows like this

aI("text=Menu Samples;showmenu=Samples;onfunction=item_on();offfunction=item_off();");

I doubt that putting in onfunction etc would make it do what I want and I can't even figure out how it's doing what it shows there, I don't see any kind of code for it, only the onfunction=item_on etc. Feeling really dumb :?
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

:D You made me LOL

I have no clue, maybe the menu only opens when you click the mouse?
I know you can add mouse clicks to do things but I don't think this one does anything but on and off. Perhaps its just the example, if I wanted to use it to do something, I'd probably find a tag for a mouse click and try to make it fit with what it says like a diagram.

The question is, what would you want it to do?

Is everyone on the east coast asleep already, its Friday!

maz
code-illiterate
Beginner
Beginner
Posts: 3
Joined: Fri Jul 25, 2003 8:06 pm

Post by code-illiterate »

Well, doggone, I just KNEW I was good for something, and making someone laugh is a good thing :) ...I'm not sure what I want it to do. It would be some script I found on some jsscript site at some point that I liked. But, I just wondered where one would put whatever thing one wanted to use. On the sample page for that onmouseover/onmouseout things get put into some kind of form, but when I tried to find the script that told it to put it in the form I couldn't see where it was, except for something that said item_on etc. Have a great day and thanks for the response.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

aI("text=Menu Samples;showmenu=Samples;onfunction=item_on();offfunction=item_off();");
the onfunction attr. is basically saying that when you hover over this menu item, a function called item_on is called. Ditto for offfunction, but when you hover off. You have to define a function called item_on and have it do what you want. You could put any function name in there, but item_on is used for the sake of example and may not even be on the page anywhere. If you cant see it, also try searching through the mmenudom file, it may be in Andys source code.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply