window.clearTimeout problem? 
December 6th, 2007, 04:05 PM
| | | window.clearTimeout problem?
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/~kendalk...vaschools.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 | 
December 6th, 2007, 04:05 PM
| | | Re: window.clearTimeout problem?
On Dec 6, 10:56 am, kendalk08 <kendal...@gmail.comwrote: Quote:
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/~kendalk...vaschools.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/. | 
December 6th, 2007, 05:15 PM
| | | Re: window.clearTimeout problem?
kendalk08 said the following on 12/6/2007 11:56 AM: Quote:
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.
| Why are you trying to use setTimeout to begin with? Simply use the
onmouseover/out events to decide whether to show/hide the menus. And,
your layout is off. Try going from one "tier" to the next, very slowly,
with the mouse. The second tier disappears before you can get to it.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ | 
December 7th, 2007, 04:35 AM
| | | Re: window.clearTimeout problem?
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 | 
December 7th, 2007, 06:15 AM
| | | Re: window.clearTimeout problem?
On Dec 7, 12:26 am, kendalk08 <kendal...@gmail.comwrote: Quote:
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. | 
December 7th, 2007, 08:55 AM
| | | Re: window.clearTimeout problem?
"kendalk08" <kendalk08@gmail.comwrote in message
news:53107c2f-05da-4d20-9bca-f05a57e69120@e23g2000prf.googlegroups.com... Quote:
On Dec 6, 10:56 am, kendalk08 <kendal...@gmail.comwrote: Quote:
>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/~kendalk...vaschools.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/.
| 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.
--
Richard. | 
December 7th, 2007, 05:05 PM
| | | Re: window.clearTimeout problem?
On Dec 7, 4:51 am, "rf" <r...@invalid.comwrote: Quote:
"kendalk08" <kendal...@gmail.comwrote in message
>
news:53107c2f-05da-4d20-9bca-f05a57e69120@e23g2000prf.googlegroups.com...
>
>
> Quote:
On Dec 6, 10:56 am, kendalk08 <kendal...@gmail.comwrote: Quote:
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.
| | >> Quote: Quote: |
If you need the code then post and i will get it to you.
| | > Quote: Quote:
Also this menubar works only in firefox at the moment. If you are
using Internet Explorer I am sorry.
| | > Quote: Quote:
Thanks in Advance,
Kendal Knabe
Alva Schools Webmaster
| | >>
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. | 
December 10th, 2007, 03:05 PM
| | | Re: window.clearTimeout problem?
On Dec 7, 11:58 am, David Mark <dmark.cins...@gmail.comwrote: Quote:
On Dec 7, 4:51 am, "rf" <r...@invalid.comwrote:
>
>
> Quote: |
"kendalk08" <kendal...@gmail.comwrote in message
| > Quote: |
news:53107c2f-05da-4d20-9bca-f05a57e69120@e23g2000prf.googlegroups.com...
| > Quote: Quote:
On Dec 6, 10:56 am, kendalk08 <kendal...@gmail.comwrote:
>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.
| | >> Quote: Quote: |
>If you need the code then post and i will get it to you.
| | > Quote: Quote:
>Also this menubar works only in firefox at the moment. If you are
>using Internet Explorer I am sorry.
| | > Quote: Quote:
>Thanks in Advance,
>Kendal Knabe
>Alva Schools Webmaster
| | >> Quote:
All I get is a javascript error: depOneStartTimer is not defined,
menubar_js2.js line 53.
| > Quote: |
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.
| 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/~kendalk...ls/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 | 
December 10th, 2007, 03:15 PM
| | | Re: window.clearTimeout problem?
On Dec 10, 11:02 am, kendalk08 <kendal...@gmail.comwrote:
[snip]
goto: http://www.nwtechonline.com/~kendalk...ls/index2.html.
404. Quote:
If you want to view the script post here and ill post it. Thanks to
all for the help.
| That shouldn't be necessary if the link is made to work. | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 220,989 network members.
|