window.clearTimeout problem?

K

kendalk08

I am working on a menu bar that has been create for divisions in html.
The menubar works perfectly fine until you go to the second tier. For
some reason it will not let me clear the timer for the second tier.
And whats worse is that one you move back to the first tier it does
not clear the timer for it either.

Here is the link for the page i am working on:
http://www.nwtechonline.com/~kendalk07a/alvaschools.html.

If you need the code then post and i will get it to you.

Also this menubar works only in firefox at the moment. If you are
using Internet Explorer I am sorry.

Thanks in Advance,
Kendal Knabe
Alva Schools Webmaster
 
K

kendalk08

I am working on a menu bar that has been create for divisions in html.
The menubar works perfectly fine until you go to the second tier. For
some reason it will not let me clear the timer for the second tier.
And whats worse is that one you move back to the first tier it does
not clear the timer for it either.

Here is the link for the page i am working on:http://www.nwtechonline.com/~kendalk07a/alvaschools.html.

If you need the code then post and i will get it to you.

Also this menubar works only in firefox at the moment. If you are
using Internet Explorer I am sorry.

Thanks in Advance,
Kendal Knabe
Alva Schools Webmaster

Oops sorry the link is: http://www.nwtechonline.com/~kendalk07a/alvaschools/.
 
K

kendalk08

The only reason for the timer is to allow time for the user to change
there mind...

I have not tried the onmouseout/onmouseover trick before but i'll give
it a try.

Kendal Knabe
Alva Schools Webmaster
 
D

David Mark

The only reason for the timer is to allow time for the user to change
there mind...

I have not tried the onmouseout/onmouseover trick before but i'll give
it a try.

Your links at the top do nothing with script disabled. They certainly
have their problems when script is enabled. Perhaps you shouldn't
waste your time re-inventing the wheel.

Try this script:

http://code.google.com/p/nicemenus/

You'll have to change to nested lists for your menus, but that is what
they should be anyway.
 
D

David Mark

All I get is a javascript error: depOneStartTimer is not defined,
menubar_js2.js line 53.

You do not need to use javascript for this stuff. CSS will do quite nicely.

Those CSS menus are inherently inaccessible though. Another thing I
don't like about them is that they vanish the instant you move the
mouse away, which seems to be the opposite of what the OP is trying to
accomplish.
 
K

kendalk08

Those CSS menus are inherently inaccessible though. Another thing I
don't like about them is that they vanish the instant you move the
mouse away, which seems to be the opposite of what the OP is trying to
accomplish.

I have figured a way around the CSS Menu to create a Javascript Menu
using Div. The problem came from when the ONMOUSEOVER event fired from
the child element it fired the ONMOUSEOUT event from the parent
element. This caused the child element to cancel the timer and the
parent element to restart the timer. Now it works perfectly in Firefox
and i am working on getting it to work perfectly in IE. To view the
page in FireFox goto: http://www.nwtechonline.com/~kendalk07a/alvaschools/index2.html.
If you want to view the script post here and ill post it. Thanks to
all for the help.

Kendal Knabe
Alva Schools Webmaster
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,147
Messages
2,570,833
Members
47,380
Latest member
AlinaBlevi

Latest Threads

Top