Hi everyone,
For an webapp I'm writing I want to set the cursor on 'wait' globally on
the page entire. In IE 6 I can do this by
document.body.style.cursor='wait';
However, Netscape 7 just seems to ignore that. Any ideas how I can make
it work for both browsers?
Thanks,
Vincent 6 6654
Vincent van Beveren wrote: Hi everyone,
For an webapp I'm writing I want to set the cursor on 'wait' globally on the page entire. In IE 6 I can do this by
document.body.style.cursor='wait';
However, Netscape 7 just seems to ignore that. Any ideas how I can make it work for both browsers?
Thanks, Vincent
<a href="#"
onclick="document.documentElement.style.cursor='wa it';">Test</a>
document.documentElement.style.cursor = 'wait'; works in IE, Firefox 0.9,
Mozilla 1.6 and Opera 7.51. It should work in Netscape 7.01, but Netscape 7
is based on a much earlier version of Mozilla, so it may contain bugs which
keep it from correctly honoring the above.
--
| Grant Wagner <gw*****@agricoreunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available at:
* http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
* http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Vincent van Beveren wrote: Hi everyone,
For an webapp I'm writing I want to set the cursor on 'wait' globally on the page entire. In IE 6 I can do this by
document.body.style.cursor='wait';
However, Netscape 7 just seems to ignore that. Any ideas how I can make it work for both browsers?
Thanks, Vincent
FWIW,
document.body.style.cursor='wait';
works for me in NS 6.2 and I would be surprised if it was not working in
NS 7.x
DU
> For an webapp I'm writing I want to set the cursor on 'wait' globally on the page entire. In IE 6 I can do this by
document.body.style.cursor='wait';
However, Netscape 7 just seems to ignore that. Any ideas how I can make it work for both browsers?
I found out, that it does work,however, it only works for all elements
on the page. So, if I put some text in the body, and I move my cursor
on the text, it does give a wait-cursor. But that is not exactly what
I am looking for. Thanks everyone for giving it a try.
On Wed, 16 Jun 2004 17:23:00 GMT, Grant Wagner
<gw*****@agricoreunited.com> wrote: document.documentElement.style.cursor = 'wait'; works in IE, Firefox 0.9, Mozilla 1.6 and Opera 7.51.
What happens with elements with a specific cursor set? they would
still be honoured wouldn't they?
Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jim Ley wrote: On Wed, 16 Jun 2004 17:23:00 GMT, Grant Wagner <gw*****@agricoreunited.com> wrote:
document.documentElement.style.cursor = 'wait'; works in IE, Firefox 0.9, Mozilla 1.6 and Opera 7.51.
What happens with elements with a specific cursor set? they would still be honoured wouldn't they?
Jim.
Actually, now that I examine the behaviour a little more closely, although it
does the same thing across all browsers, what it does is set the cursor for
the documentElement, not any of the child elements on document.body, which is
probably not the desired outcome.
Ultimately, if the OP's requirements are to set the wait cursor on all
elements, then the only way to be sure you've done that is to navigate through
the entire DOM hierarchy setting .style.cursor = 'wait'; on all elements.
--
| Grant Wagner <gw*****@agricoreunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available at:
* http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
* http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
On Mon, 21 Jun 2004 20:34:00 GMT, Grant Wagner
<gw*****@agricoreunited.com> wrote: Ultimately, if the OP's requirements are to set the wait cursor on all elements, then the only way to be sure you've done that is to navigate through the entire DOM hierarchy setting .style.cursor = 'wait'; on all elements.
add an onmousemove event which changes the cursor to WAIT and pushes
the element onto a stack, and when you want to go back, reset all the
elements in the stack, should be better performance than iterating
over them all.
Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Csaba2000 |
last post by:
I have set onmousedown to change the cursor, but this setting is ignored
(IE 5.5; NN 6.1 on Win 2K Pro) until the mouse is either moved or the
mouse button is released. On Opera 7.01, the setting...
|
by: Tee |
last post by:
Hi,
From my main form, I am executing another application using
System.Diagnostics.Process.Start.
The application has its own window displaying when the applicaiton is run.
I want to change...
|
by: Soha |
last post by:
I'm a beginner in using javascript and i need a reply so urgent;
i have a problem in using javascript with asp the problem is that i
want to define a global variable and then change the value of it...
|
by: Paul Steele |
last post by:
Is there any way in C#/.NET to determine what the current global cursor is
being displayed? The .Net method Cursor.Current only applies to the running
application. I want to access the cursor even...
|
by: Lespaul36 |
last post by:
I have a mdi app. I need to change the cursor when I click on certain
button on a form that I made into a toolbar. I tried to use cursor.current.
But the cursor won't show. if I change the form...
|
by: Jim Frazer |
last post by:
Hi,
I'm working on an application in C# that will allow the user to create
simple CAD drawings on a CEPC system. I would like to be able to change the
cursor shape depending on the drawing mode...
|
by: Florian Lindner |
last post by:
Hello,
I have a little problem with the global statement.
def executeSQL(sql, *args):
try:
import pdb; pdb.set_trace()
cursor = db.cursor() # db is <type 'NoneType'>.
except:
print...
|
by: barronmo |
last post by:
I'm getting an error msg I don't understand, "global name EMR_globals
is not defined", and could use some help.
I've separated the application I'm building into several modules. One
of the...
|
by: datvong |
last post by:
IE does not change the cursor immediately after a style.cursor is
set. In the following sample, I have 2 divs, one inside another. The
inner has a cursor of crosshair, outer a hand.
If I click...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |