这是JS的内容啊。readyState Property Internet Development Index --------------------------------------------------------------------------------Retrieves a value that indicates the current state of the object.SyntaxHTML N/A Scripting [ sState = ] object.readyState Possible ValuessState String that receives one of the following values.uninitialized Object is not initialized with data. loading Object is loading its data. loaded Object has finished loading its data. interactive User can interact with the object even though it is not fully loaded. complete Object is completely initialized. The property is read-only. The property has no default value.
我看了一下
他不断调用函数,其实是“伪”进度
就是把一个文件平均分成几部分,在每个部分都加入函数
例如
<html>
....
...
<script....>display("10") //10%
...
...
<script....>display("20") //20%
如此类推不知道我的猜想对不对
这样我觉得很浪费资源啊
Scripting [ sState = ] object.readyState Possible ValuessState String that receives one of the following values.uninitialized Object is not initialized with data.
loading Object is loading its data.
loaded Object has finished loading its data.
interactive User can interact with the object even though it is not fully loaded.
complete Object is completely initialized.
The property is read-only. The property has no default value.
登陆时,应为要加载很多东西,所以速度有点慢,现在是空白的,我想在这段时间里显示个图片或者是flash,表示正在登陆,我用的smarty技术,它是加载完再显示的,不能先显示一部分,后显示另部分