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...
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...