473,546 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

window.clearTim eout 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 4335
On Dec 6, 10:56 am, kendalk08 <kendal...@gmai l.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.javas cript 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...@gmai l.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*******@gmai l.comwrote in message
news:53******** *************** ***********@e23 g2000prf.google groups.com...
On Dec 6, 10:56 am, kendalk08 <kendal...@gmai l.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: depOneStartTime r 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.c omwrote:
"kendalk08" <kendal...@gmai l.comwrote in message

news:53******** *************** ***********@e23 g2000prf.google groups.com...
On Dec 6, 10:56 am, kendalk08 <kendal...@gmai l.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: depOneStartTime r 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.c omwrote:
"kendalk08" <kendal...@gmai l.comwrote in message
news:53******** *************** ***********@e23 g2000prf.google groups.com...
On Dec 6, 10:56 am, kendalk08 <kendal...@gmai l.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: depOneStartTime r 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...@gmai l.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
7753
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 (function(){this==window}, 100) I see true, the sad fact that 'this' is window and not an anim. What are some proper ways ? I would like to avoid
14
4519
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 that when I try to type into my form boxes, the key transfers are all being lost (i.e. keyboard is disabled)!
2
1873
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 clearing the timeout. Please advise: <script language="JavaScript"> var myvar = 0 // Initiate is called onmouseover function initiate() {
5
6932
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 numerous articles found Googling, this should work, but on my WinXP system, using Firefox and IE, I get nothing (when allowing pop-ups, if pop-ups are...
4
1483
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 problem is that no matter what kind of delay I set (1 or more seconds), trying to update the new frame always generates a 'newwin no properties'
35
2256
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; unitPrice=document.RFO.unitPrice.value; total=0; if(isPositiveInteger(quantity)) {
4
11083
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. However, when I open the window, JavaScript immediately issues the next command statement. How can I get JavaScript to wait until the window is closed...
4
3690
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 "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
0
7698
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7461
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7794
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5361
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5080
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3492
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1922
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
747
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.