469,337 Members | 6,009 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,337 developers. It's quick & easy.

How to Change Cursor while clicking on mouse

I have button with mouseup, mousedown, mouseout, mouseover events. On these events I am using cursor as hand. Now the issue is with submitting the button. After clicking on button cursor should be waiting state on entire page.
document.body.style.cursor = 'wait' makes the cursor as wait only on the body of the page. While navigating with button again I am seeing cursor as hand. Please suggest me in this.

[HTML]<input type="submit" class="startbuttonUp" name="submit" value="submit" onMouseOver="this.className='startbuttonOver'" onMouseDown="this.className='startbuttonDown'" onMouseUp="this.className='startbuttonUp'" onMouseOut="this.className='startbuttonUp' ">[/HTML]
Jan 25 '08 #1
1 2654
use the below code

Expand|Select|Wrap|Line Numbers
  1. <input type="submit" style="cursor:pointer" class="startbuttonUp" name="submit" value="submit" onMouseOver="this.className='startbuttonOver'" onMouseDown="this.className='startbuttonDown'" onMouseUp="this.className='startbuttonUp'" onMouseOut="this.className='startbuttonUp' ">
Jan 25 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by Yeah | last post: by
6 posts views Thread by Carlos García-Carazo | last post: by
4 posts views Thread by Maria | last post: by
3 posts views Thread by Steve Long | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.