Home  >  Article  >  Web Front-end  >  Simple implementation of JS Loading function_javascript skills

Simple implementation of JS Loading function_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:11:46860browse

When we browse the web, we often see the LOADING prompt that appears when the data is loading. In fact, the principle of this function is very simple, that is, a DIV covers the current page, and then Loading is displayed on the covered DIV layer. Now let's implement it.

1. Current page:

Copy code The code is as follows:

2. Mask layer:
Copy code The code is as follows:

< div id="over" class="over">


3.Loading display layer:
Copy code The code is as follows:



Overall code:
Copy code The code is as follows:









   
       
           
       
       
           
       
   

               

               




最终效果:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:JavaScript code to sort according to a certain column in the table_javascript skillsNext article:JavaScript code to sort according to a certain column in the table_javascript skills

Related articles

See more