By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,967 Members | 815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,967 IT Pros & Developers. It's quick & easy.

Hourglass cursor problem

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
sam
Okey, i understand your problem. in your onload function you could
write document.getElementsByTagName("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

P: n/a
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

P: n/a
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

P: n/a
Nothing working correctly, it's still the same effect.

This is the simple code demonstrated this:
page.html
<html>
<body>
<script language='JavaScript' src='' id='mlv_1'
type='text/javascript'></script>
<script>
window.setTimeout("mlv_1.src='http://.../script.php?a='+Math.random()+'&b='+Math.random();" ,
2000);
</script>
<a href='google.com'>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 discussion thread is closed

Replies have been disabled for this discussion.