开发者

Jquery - Show progress cursor when browser is busy/loading (windows like)

开发者 https://www.devze.com 2023-01-14 21:47 出处:网络
I want to show the cursor as progress on every load. Is it possible to show the cursor as progress when the browser is 开发者_如何学运维busy?

I want to show the cursor as progress on every load.

Is it possible to show the cursor as progress when the browser is 开发者_如何学运维busy?

If not, is it possible to show the cursor as progress if jQuery is posting without adding code to every jQuery post function?

I'm looking for a clean and global solution.


try:

$().ajaxStart(function(){
   $('body').css('cursor', 'wait');
});

$().ajaxStop(function(){
   $('body').css('cursor', 'auto');
});

and it will invoked when an ajax process called...

0

精彩评论

暂无评论...
验证码 换一张
取 消