How to Change Cursor while clicking on mouse

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vlmskr
    New Member
    • Jan 2008
    • 1

    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.s tyle.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="startbut tonUp" name="submit" value="submit" onMouseOver="th is.className='s tartbuttonOver' " onMouseDown="th is.className='s tartbuttonDown' " onMouseUp="this .className='sta rtbuttonUp'" onMouseOut="thi s.className='st artbuttonUp' ">[/HTML]
    Last edited by acoder; Jan 28 '08, 09:56 AM. Reason: Added code tags
  • zabsmarty
    New Member
    • Feb 2007
    • 25

    #2
    use the below code

    Code:
    <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' ">

    Comment

    Working...