zl程序教程

您现在的位置是:首页 >  后端

当前栏目

页面跳转进度条JS实现详解编程语言

JS编程语言 实现 详解 页面 跳转 进度条
2023-06-13 09:20:25 时间
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) location.href="http://www.open-open.com/code/"; else { setSB(v, el, infor, "页面正在跳转中,请稍候..."); window.setTimeout("fakeProgress(" + (v + 1) + ", document.all[" + el.id + "])", 10); //-- /SCRIPT SCRIPT language=javaScript /SCRIPT /HEAD BODY bgColor=#f9f9f9 topMargin=100 onload=fakeProgress(0,sb) P /P P /P P /P !-- Status Bar Starts -- DIV align=center DIV id=sb DIV id=sbChild1 DIV ;height:12px; overflow: hidden /DIV /DIV DIV /DIV /DIV !-- Status Bar Ends -- P /P DIV id=infor /DIV /DIV /BODY /HTML

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/8672.html

cjava