打开网页时数据进度条的代码

来源:百度知道 编辑:UC知道 时间:2024/09/21 03:31:01
哪位有打开网页时加载数据进度条(最好带有圆圈的那种)的代码?
点击按扭没反应啊?

试试这个怎么样?

<script language="javascript">
function onSubmit() {
var waitingInfo = document.getElementById(getNetuiTagName("waitingInfo"));
waitingInfo.style.display = ""; //show the ProgressBar
progress_update(); //begin the progressbar
//waiting for several seconds,you would delete in your case
for(i=0;i<1000000;i++){
j=i+i;
}
location.href="progressbar.jsp"; //config your action page in here
}

// Build the netui_names table to map the tagId attributes
// to the real id written into the HTML
if (netui_names == null)
var netui_names = new Object();
netui_names.selectButton="portlet_15_1selectButton"
// method which will return a real id for a tagId
function getNetuiTagName(id) {
return netui_names[id];
}

// method which will return a real id for a tagId,
// the tag par