JS implementation loading simple cover layer

Source: Internet
Author: User

Pop up a div to set the background color and transparency of the DIV
Remove this div or hide it when loading is complete
As for fading through settimeout or setinterval, try to change the transparency.

.test{      width : 100% ;      height : 100% ;      position : absolute ;      background-color : #5c5c5c ;      z-index : 100 ;      display : none ;      filter:Alpha(Opacity= 40 ,finishOpacity= 40 ,style= 0 ,startX= 100 ,startY= 100 ,finishX= 100 ,finishY= 100 ); } 这个是你说的灰色透明的背景,透明度什么的可以在那个滤镜中修改。 至于你说的淡入淡出效果就用setTimeout来做。  这个方法应该是显示这个界面和登陆成功后隐藏这个界面时条用。

JS implementation loading simple cover layer

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.