[英]Javascript , loading progress bar before site loads
I want to make a progress bar for a GUI site that I am making and I need a bit of code in javascript to detect if the site is loading and how many elements/images have loaded and has the site fully loaded. 我想为我正在制作的GUI网站制作一个进度条,我需要在javascript中使用一些代码来检测网站是否正在加载以及已加载了多少元素/图像并且网站已满载。 I have the progress bar made with css and I dont know how I can turn on/of elements in js.
我有用css制作的进度条,我不知道如何打开js中的元素。
How can I accomplish this in js or by using Jquery ? 如何在js中或使用Jquery完成此操作?
Some solutions to achieve what you want are: 实现您想要的一些解决方案是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.