473,480 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Dec 6 '07 #1
8 4329
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.

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/.
Dec 6 '07 #2
kendalk08 said the following on 12/6/2007 11:56 AM:
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/
Dec 6 '07 #3
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
Dec 7 '07 #4
On Dec 7, 12:26 am, kendalk08 <kendal...@gmail.comwrote:
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.
Dec 7 '07 #5
rf

"kendalk08" <ke*******@gmail.comwrote in message
news:53**********************************@e23g2000 prf.googlegroups.com...
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.

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.
Dec 7 '07 #6
On Dec 7, 4:51 am, "rf" <r...@invalid.comwrote:
"kendalk08" <kendal...@gmail.comwrote in message

news:53**********************************@e23g2000 prf.googlegroups.com...
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.
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.
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.
Dec 7 '07 #7
On Dec 7, 11:58 am, David Mark <dmark.cins...@gmail.comwrote:
On Dec 7, 4:51 am, "rf" <r...@invalid.comwrote:
"kendalk08" <kendal...@gmail.comwrote in message
news:53**********************************@e23g2000 prf.googlegroups.com...
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.
>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.

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
Dec 10 '07 #8
On Dec 10, 11:02 am, kendalk08 <kendal...@gmail.comwrote:

[snip]

goto:http://www.nwtechonline.com/~kendalk...ls/index2.html.

404.
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.
Dec 10 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
7735
by: Richard A. DeVenezia | last post by:
At line this.timerId = setInterval (function(){this.step()}, 100) I get error dialog Error:Object doesn't support this property or method. If I change it to this.timerId = setInterval...
14
4510
by: Mark | last post by:
Hi, At the top of my php file I have got :- <body onblur="self.focus();"> so when I click off onto another window, my window comes back up in front which is perfect. The problem however, is...
2
1864
by: Adrian MacNair | last post by:
Hi, it's been about 5 years since I did JavaScript so I was wondering if I could get some help with a little problem. I wrote a script from memory (5 years!!) and the only problem I have is...
5
6920
by: GEL | last post by:
Hi, I want to open a new browser window, let the user use that window for several minutes, and when they close, I'd like to change the page displayed in the original window. According to...
4
1476
by: ced | last post by:
Hallo, I have some JS which creates a new 2-frame window. The new window (via onLoad) backfills a variable in the parent window so I'll know when it's safe to load the target frame. The...
35
2242
by: eyoung | last post by:
I call a function that takes the unit price and quantity ordered to create an amount...it looks something like this. function calculateCost() { quantity=document.RFO.quantity.value;...
4
11071
by: Eddie | last post by:
I am opening a windows (well, technically a greybox() call GB_show() which shows a nicer window than normal), and want to wait until that window is closed before moving to the next command. ...
4
3682
rizwan6feb
by: rizwan6feb | last post by:
Hi experts! I getting the following error message from Firefox, for the given code Error: uncaught exception: Permission denied to get property Window.resizeTo <!DOCTYPE html PUBLIC...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7061
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7110
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4503
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3015
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3011
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
574
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
210
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.