loadmask 这个小插件不错,可以让指定的DIV上出现那种类似于extjs的等待框,当内容加载完毕后,可以通过 unmask方法来解除等待框的状态。。。
程序也很小,不到2K。当然不是我写的。。是google上的一个小插件。嗯,其实我也会写,但我真不会CSS。。。
看介绍:
LoadMask jQuery plugin can mask DOM elements while their content is loading or changing to prevent user interactions and inform that some background task is still running. It is very light (~2Kb) and easy to use.
The behavior of this plugin is largely based on handy Element.mask() method from ExtJS Framework.
也有例子:You can try online demo here.
内容在这里:http://code.google.com/p/jquery-loadmask/