The JS Implementation of the page Jump progress bar that is used directly, and the js Implementation of the page Jump progress bar

Source: Internet
Author: User

The JS Implementation of the page Jump progress bar that is used directly, and the js Implementation of the page Jump progress bar

This article introduces the page Jump progress bar based on javascript and shares it with you for your reference. The details are as follows:

:

Code:

<HTML> <HEAD> <TITLE> open code </TITLE> <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. innerTex T = 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 = s Tep + "%" inforEl. innerText = message ;}} function fakeProgress (v, el) {if (v> = 101) location. href = "http://www.bkjia.com"; else {setSB (v, el, infor, "the page is redirecting. Please wait... "); 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> <! -- Status Bar Starts --> <DIV align = center> <DIV id = sbstyle = "BORDER-RIGHT: # ffffff 1px solid; BORDER-TOP: # ffffff 1px solid; BACKGROUND: #99 ccff; BORDER-LEFT: medium none; WIDTH: 400px; BORDER-BOTTOM: # cccccc 1px solid; HEIGHT: 14px; TEXT-ALIGN: left "> <DIV id = sbChild1style =" FILTER: Alpha (Opacity = 0, FinishOpacity = 80, Style = 1, StartX = 0, StartY = 0, finishx= 100, finishY = 0); OVERFLOW: hidden; WIDTH: 100%; POSITION: absolute; HEIGHT: 12px "> <DIV style =" BACKGROUND: #000000; WIDTH: 100% "; height: 12px; overflow: hidden> </DIV> <DIVstyle = "FONT-SIZE: 10px; WIDTH: 400px; COLOR: white; FONT-FAMILY: arial; POSITION: absolute; HEIGHT: 14px; TEXT-ALIGN: center "> </DIV> <! -- Status Bar Ends --> <P> </P> <DIV id = inforstyle = "FONT-SIZE: 11px; WIDTH: 100%; COLOR: #999999; FONT-FAMILY: arial; POSITION: relative; HEIGHT: 14px; TEXT-ALIGN: center "> </DIV> </BODY> </HTML>

Code 2 is also good. Run the following code:

Code sharing:

<Html> 

You can directly copy and paste the code to run it.

The above is the complete code for implementing the page Jump progress bar in JS shared for everyone. I hope it will be helpful for everyone's learning.

Articles you may be interested in:
  • Several Methods for javascript progress bars
  • Summary of several methods for page Jump under jsp
  • WEB page Jump implemented by JAVASCRIPT and cross-page value transfer method
  • Common js page Jump Methods
  • JS progress bar effect code Arrangement
  • Cause Analysis and Solution for external JS not loaded after jQuery Mobile page Jump
  • Js applications in three scenarios: Framework page Jump (target)
  • Js page Jump problem (jump to the parent page, the outermost page, the current page)
  • 5 methods for controlling page jumps using js
  • Several methods for implementing page redirect in js

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.