473,769 Members | 6,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hourglass cursor problem

In my page I reload JavaScript. When it is reloading the cursor change to
"wait" (hourglass). After javascript loaded it does not change back to the
"hand" if cursor stay on hyperlinks.
How can I turn off changing cursor to "wait" (hourglass) is javascript is
reloading.
Jul 5 '06 #1
6 11572
sam
Hy,

I don't know why your cursor don't change its state, but you could
force to change cursor with the CSS property "cursor".

See http://www.w3schools.com/css/pr_class_cursor.asp

Bye,
Sam
Tomek wrote:
In my page I reload JavaScript. When it is reloading the cursor change to
"wait" (hourglass). After javascript loaded it does not change back to the
"hand" if cursor stay on hyperlinks.
How can I turn off changing cursor to "wait" (hourglass) is javascript is
reloading.
Jul 5 '06 #2
My css is ok. The problem is in IE, becouse if javascript is reloaded (on
loaded page) the cursor is automatically change to "wait" (hourglass) and if
script is loaded it don't return to hand (it return to arrow) if you stay on
hyperlinks or other elements with style "cursor: hand".
I don't know why your cursor don't change its state, but you could
force to change cursor with the CSS property "cursor".

See http://www.w3schools.com/css/pr_class_cursor.asp

Jul 5 '06 #3
sam
Okey, i understand your problem. in your onload function you could
write document.getEle mentsByTagName( "body")[0].style="cursor: arrow"; I
don't know source of your problem but i think it's a solution to
resolve this by now you found a best solution.

Sam.

Tomek wrote:
My css is ok. The problem is in IE, becouse if javascript is reloaded (on
loaded page) the cursor is automatically change to "wait" (hourglass) and if
script is loaded it don't return to hand (it return to arrow) if you stay on
hyperlinks or other elements with style "cursor: hand".
I don't know why your cursor don't change its state, but you could
force to change cursor with the CSS property "cursor".

See http://www.w3schools.com/css/pr_class_cursor.asp
Jul 5 '06 #4
Ivo
"Tomek" asks
In my page I reload JavaScript. When it is reloading the cursor change to
"wait" (hourglass). After javascript loaded it does not change back to the
"hand" if cursor stay on hyperlinks.
How can I turn off changing cursor to "wait" (hourglass) is javascript is
reloading.
Not sure what 's causing it this time. Do you have an url? I 've seen it
happen on pages where the document.write( [string] ) method is used to
create a new document or part thereof. This method implicitedly 'opens' the
document, if there was no call to document.open( [mimetype][,replace] )
method earlier in the script. The new document is never properly finished
without an explicit call to document.close( ), so the browser keeps loading
forever. No parameters necessary.

If you are using document.write, consider reconsidering. The function is so
easy to use, that it encourages lazy and bad coding habits. By nature, it
produces content. Content, on the web, should be accessible, but relying on
script, by definition, it isn't. Alternatives include hidden divisions, made
visible by the script, or scripted inline frames to conditionally
incorporate content on the fly that non-javascripted visitors (such as
search engine bots) have access to through ordinary links.
hth
ivo
http://4umi.com/web/javascript/
Jul 5 '06 #5
Tomek wrote:
My css is ok. The problem is in IE, becouse if javascript is reloaded (on
loaded page) the cursor is automatically change to "wait" (hourglass) and if
script is loaded it don't return to hand (it return to arrow) if you stay on
hyperlinks or other elements with style "cursor: hand".
'hand' is not a valid value for the cursor property in CSS 2, I think
you mean 'pointer':

<URL:http://www.w3.org/TR/CSS21/ui.html#propdef-cursor>
--
Rob
Jul 5 '06 #6
Nothing working correctly, it's still the same effect.

This is the simple code demonstrated this:
page.html
<html>
<body>
<script language='JavaS cript' src='' id='mlv_1'
type='text/javascript'></script>
<script>
window.setTimeo ut("mlv_1.src=' http://.../script.php?a='+ Math.random()+' &b='+Math.rando m();",
2000);
</script>
<a href='google.co m'>Stay on this link</a>
</body>
</html>

You have to correctly write path to http://.../script.php this script may
return nothing:
script.php
<?
?>

If you run page.html, go to the link "Stay on this link" for 2 seconds you
have "hand" cursor, after 2 sec. you have "arrow"
Jul 5 '06 #7

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

Similar topics

3
5294
by: kaeli | last post by:
Hey all, This is a nitpick that I'd like to fix if possible... I have a form that submits to a page that does some intense DB queries, so the page takes about 30-45 seconds to load. Using Win2K, IE6, when the submit button is clicked, it looks like nothing is happening (unless you read the status bar and see the page opening text). Yet Netscape shows a little hourglass, indicating that processing is occurring. Is there a simple way to...
3
6999
by: Andy G | last post by:
This should be very simple but I can't figure it out or find ANYTHING posted about how to change your cursor to an hourglass. I have a ASP.NET web form using VB.NET code behind. When I click on a button I want the cursor to change to an hourglass and then change back to the normal cursor afterwards. Any help would be greatly appreciated. Thanks.
8
16996
by: Eddie | last post by:
Hi All, I just want to change the mouse cursor during a process. I want a hourglass... How may I do it ? Thx
6
6371
by: Lars | last post by:
Hi, I have created a simple custom PrintPreviewDialog consisting of a simple standard PrintPreviewControl (.NET 1.1) on a WindowsForm with a few buttons (for printing, zooming, etc.). It is working fine, except for that I cannot figure out how display the waitcursor / hourglass while the preview is preparing to show the document *and then go back to the default cursor when the document is displayed*. Turning on the waitcursor is easy,...
7
4285
by: Henry Stockbridge | last post by:
Hi, I am running the following code and the visibility of the Hourglass appears late, instead of immediately. Any ideas of how I can remedy this? ============= Private Sub lblUpdateMDList_Click()
3
6776
by: bob | last post by:
Is there anyway to show the hourglass (busy) cursor on the entire monitor screen, not just when the cursor is within the current program's window? Thanks
1
1697
by: mtczx232 | last post by:
A. I remember microsoft add some features about WaitCursor in Window.Forms, but I not find it now? B. I have some Try..Catch in some module and it's suppose to be long time. I need to change cursor to hourglass. but I have two problem: 1. the function in module not have access to form, (unless I send me into the module function, but I not like it) 2. if occur err and control jump to catch block, I need to write extra code to return...
5
3154
by: mcraven.2 | last post by:
I know this works on all objects except drop down boxes. doc = document.all for (i=0;i<doc.length;i++) { doc(i).style.cursor = 'wait'; } Is it possible to make a cursor into an hourglass over a drop down?
3
14949
by: alanpike | last post by:
When a vbscript runs, is it possible to change the cursor to an hourglass until the script has completed running? Please reference the following simple script: (change cursor to hourglass here) For I = 0 to 1000000 I = I + 1 Next (change cursor back to default here)
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10215
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3564
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.