怎样实现:正在检索请等待....的效果 这主要是判断document.readyState是否为complete 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 贴个COOL你可以先显示该页面,等加载完后,再跳转//输入 Loading 过后跳转的网址location.href="http://www.cnlk.com";............................................<html><head><title>loading00</title><META http-equiv=Content-Type content="text/html; charset=gb2312"><SCRIPT type=text/javascript><!--var ie5 = (document.all && document.getElementsByTagName);var step = 0;function setSB(v, el, inforEl, message) {if (ie5 || document.readyState == "complete") {filterEl = el.children[0];valueEl = el.children[1]; if (filterEl.style.pixelWidth > 0) {var filterBackup = filterEl.style.filter;filterEl.style.filter = "";filterEl.style.filter = filterBackup;}filterEl.style.width = v + "%";valueEl.innerText = v + "%";inforEl.innerText = message;}}function setSBByStep(v, el, inforEl, message) {if (ie5 || document.readyState == "complete") {step = step + v;filterEl = el.children[0];valueEl = el.children[1];if (filterEl.style.pixelWidth > 0) {var filterBackup = filterEl.style.filter;filterEl.style.filter = "";filterEl.style.filter = filterBackup;}filterEl.style.width = step + "%";valueEl.innerText = step + "%"inforEl.innerText = message;}}function fakeProgress(v, el) {if (v >= 101)//输入 Loading 过后跳转的网址location.href="http://www.cnlk.com";else {setSB(v, el, infor, "LOADING ...");window.setTimeout("fakeProgress(" + (v + 1) + ", document.all['" + el.id + "'])", 20);}}//--></SCRIPT></head><BODY onload="fakeProgress(0,sb)" topmargin=100 bgcolor="#FFFFFF"><!-- Status Bar Starts --><div align=center><DIV id=sb style="BORDER-RIGHT: white 0px inset; BORDER-TOP: white 0px inset; BACKGROUND: white; BORDER-LEFT: white 0px inset; WIDTH: 200px; BORDER-BOTTOM: white 0px inset; HEIGHT: 20px; TEXT-ALIGN: left"><DIV id=sbChild1 style="FILTER: Alpha(Opacity=0, FinishOpacity=80, Style=1, StartX=0, StartY=0, FinishX=100, FinishY=0); WIDTH: 0%; POSITION: absolute; HEIGHT: 16px"><DIV style="FONT-SIZE: 1px;BACKGROUND:#a0ef99; WIDTH: 100%; HEIGHT: 100%"></DIV></DIV><DIV style="FONT-SIZE: 12px; WIDTH: 100%; COLOR: red; FONT-FAMILY: arial; POSITION: absolute; TEXT-ALIGN: center"></DIV></DIV><!-- Status Bar Ends --><DIV id=inforstyle=" WIDTH: 100%; COLOR: blue; FONT-FAMILY: arial; POSITION: relative; TEXT-ALIGN: center"></DIV></div></BODY></html> 老大,上面的代码好像只运行setSB,没有判断过document.readyState。还有,上面的两个页面好像还是串行,即页面a循环完毕后再转到页面b。能否实现并行,即在页面b完全生成之前,只显示页面a,只有页面b完全生成后,才显示页面b.多谢赐教! 这个js文件在ie8上好用 在ie6上怎么全是错呢?我该怎么修改才能让ie6ie8都好用各位大虾帮帮小弟,小弟受教了。 一个页面的 值传到另一个页面 计算自己活了多少天? 求一个JS方法 防止刷新? 求助:下拉列表的问题?? 弹出窗口 alert位置调整 listbox 的options该如何用代码自动加?如何add()?? 用一个正则表达式找出"{--....... --}"这一个字符 我想在一个jsp页面上安排一个编辑框和一个下拉列表框,根据编辑框的内容来决定下拉框的内容该怎么做?在线等,急用 小问题,关于时间的格式显示(只要日期,不要时间)???
你可以先显示该页面,等加载完后,再跳转//输入 Loading 过后跳转的网址
location.href="http://www.cnlk.com";
............................................
<html>
<head>
<title>loading00</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT type=text/javascript>
<!--
var ie5 = (document.all && document.getElementsByTagName);
var step = 0;
function setSB(v, el, inforEl, message) {
if (ie5 || document.readyState == "complete") {
filterEl = el.children[0];
valueEl = el.children[1]; if (filterEl.style.pixelWidth > 0) {
var filterBackup = filterEl.style.filter;
filterEl.style.filter = "";
filterEl.style.filter = filterBackup;
}filterEl.style.width = v + "%";
valueEl.innerText = v + "%";
inforEl.innerText = message;
}
}
function setSBByStep(v, el, inforEl, message) {
if (ie5 || document.readyState == "complete") {
step = step + v;
filterEl = el.children[0];
valueEl = el.children[1];if (filterEl.style.pixelWidth > 0) {
var filterBackup = filterEl.style.filter;
filterEl.style.filter = "";
filterEl.style.filter = filterBackup;
}filterEl.style.width = step + "%";
valueEl.innerText = step + "%"
inforEl.innerText = message;
}
}function fakeProgress(v, el) {
if (v >= 101)//输入 Loading 过后跳转的网址
location.href="http://www.cnlk.com";
else {
setSB(v, el, infor, "LOADING ...");
window.setTimeout("fakeProgress(" + (v + 1) + ", document.all['" + el.id + "'])", 20);
}
}//-->
</SCRIPT>
</head><BODY onload="fakeProgress(0,sb)" topmargin=100 bgcolor="#FFFFFF">
<!-- Status Bar Starts -->
<div align=center>
<DIV id=sb
style="BORDER-RIGHT: white 0px inset; BORDER-TOP: white 0px inset; BACKGROUND: white; BORDER-LEFT: white 0px inset; WIDTH: 200px; BORDER-BOTTOM: white 0px inset; HEIGHT: 20px; TEXT-ALIGN: left">
<DIV id=sbChild1
style="FILTER: Alpha(Opacity=0, FinishOpacity=80, Style=1, StartX=0, StartY=0, FinishX=100, FinishY=0); WIDTH: 0%; POSITION: absolute; HEIGHT: 16px">
<DIV
style="FONT-SIZE: 1px;BACKGROUND:#a0ef99; WIDTH: 100%; HEIGHT: 100%"></DIV></DIV>
<DIV
style="FONT-SIZE: 12px; WIDTH: 100%; COLOR: red; FONT-FAMILY: arial; POSITION: absolute; TEXT-ALIGN: center"></DIV></DIV>
<!-- Status Bar Ends -->
<DIV id=infor
style=" WIDTH: 100%; COLOR: blue; FONT-FAMILY: arial; POSITION: relative; TEXT-ALIGN: center"></DIV>
</div></BODY>
</html>
还有,上面的两个页面好像还是串行,即页面a循环完毕后再转到页面b。
能否实现并行,即在页面b完全生成之前,只显示页面a,只有页面b完全生成后,才显示页面b.
多谢赐教!