开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜