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

Simple implementation of JS Loading function_javascript skills

WBOY
Release: 2016-05-16 17:11:46
Original
875 people have browsed it

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:









   
       
           
       
       
           
       
   

               

               




最终效果:

Related labels:
source:php.cn
Previous article:JavaScript code to sort according to a certain column in the table_javascript skills Next article:A simple example of JS taking the minimum value in the text box_javascript skills
Statement of this Website
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
Latest Articles by Author
Latest Issues
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template