javascript - Style of cursor is not changing -
i have code put wait cursor on images when image clicked.
function disablebutton() { idstopselbtn.style.cursor='wait'; idstartselbtn.style.cursor='wait'; idbouncerunningbtn.style.cursor='wait'; idstopallbtn.style.cursor='wait'; idstartallbtn.style.cursor='wait'; idbounceselbtn.style.cursor='wait' }
when function called clicking of button gets designed function take away wait cursor , put default cursor.
function enablebutton(strtype) { idstopselbtn.style.cursor='default'; idstartselbtn.style.cursor='default'; idbouncerunningbtn.style.cursor='default'; idstopallbtn.style.cursor='default'; idstartallbtn.style.cursor='default'; idbounceselbtn.style.cursor='default'; alert('done'); }
the wait sign still not going after calling function.i added alert check if function firing or not , it's firing, still cursor sign not changing.
try setting auto instead of default:
function enablebutton(strtype) { idstopselbtn.style.cursor='auto'; idstartselbtn.style.cursor='auto'; idbouncerunningbtn.style.cursor='auto'; idstopallbtn.style.cursor='auto'; idstartallbtn.style.cursor='auto'; idbounceselbtn.style.cursor='auto'; alert('done'); }
Comments
Post a Comment