PDA

View Full Version : override 'busy' cursor


ASAAKI
10-08-2002, 10:11 AM
what i want to do is not allow the cursor to change to its 'waiting' state (the arrow with the little hourglass beside it), when it's busy.
i have an iframe, 'gamescreen', in which the cursor style is crosshair, but because of all the other code going on at the same time, it doesn't stay that way, it keeps going to 'waiting', it keeps flickering most irritatingly with that hourglass :rolleyes:. this is not only annoying but it ruins the whole look and feel of the game.
can i assign the cursor of my choice to the busy state? if i can't, is there any other way to get what i want?
thanx

here's my lame attempt:

function keepCursor(){
if(document.body.style.cursor == "waiting")
document.body.style.cursor = "crosshair"
setTimeout("keepCursor()",1)
}

of course that doesn't work, and i doubt it ever can, because after all, this function itself gets the cursor busy during processing it...

ASAAKI
10-09-2002, 10:59 AM
hellOO? PLEASE??

Roy Sinclair
10-09-2002, 05:17 PM
There are ways to override the cursor for items on the page but no way to override the busy cursor. This isn't something they thought of when designing the browser.

ASAAKI
10-10-2002, 04:17 PM
say i use a transparent (invisible) cursor on that element, will the busy cursor still pop up visible?

Mr J
10-10-2002, 07:09 PM
But your visitor will not have the invisible cursor

Roy Sinclair
10-10-2002, 10:23 PM
Originally posted by ASAAKI
say i use a transparent (invisible) cursor on that element, will the busy cursor still pop up visible?

Unfortunately yes, the "busy" cursor shows up whenever the browser thinks it ought to and not when you think it ought.

ASAAKI
10-12-2002, 12:54 PM
yea i thought so... drats

But your visitor will not have the invisible cursor

well if u give the path u could do it with IE6 and with browsers that support the cursor part of CSS2:
.el {cursor : url("transparent.cur") }