0

我在实现 javascript 方面不是很熟练,而且在我网站的某个页面上工作的预加载器似乎存在问题。它似乎与另一个正在加载内容的脚本冲突。

两个脚本独立工作,但不能一起工作。我确定这很简单,但我只是不太了解 javascript。

<script type="text/javascript">
$(window).on('load', function() { // makes sure the whole site is loaded 
$('#status').fadeOut(); // will first fade out the loading animation 
$('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website. 
$('body').delay(350).css({'overflow':'visible'});})</script>
<script type="text/javascript">
$(window).load(function() {
$(".about").fadeTo(300, 1);
});
</script>
4

0 回答 0