我有以下脚本:FadeIn脚本无法正常工作?
var $j = jQuery.noConflict();
$j(window).load(function() {
$j('#loading').fadeOut('fast', function() { //Step 1
$j("#sp-container").fadeIn("fast", function() { //Step 2
$j("#content-wrap").delay(9000).fadeIn("slow"); //Step 3
});
});
});
该脚本正常工作,直到步骤3,因为它被认为太没有在div褪色。为什么这个脚本不工作,我该如何解决它?
我所除外:
第1步:在页面加载的内容则脚本火灾
第2步:我有一个为大约9秒运行一次闪屏。
第3步:在动画内容包装DIV淡入
HTML:
<div id="loading">
<!-- CONTENT -->
</div>
<div id="sp-container">
<!-- CONTENT -->
</div>
<div id="content-wrap">
<!-- CONTENT -->
</div>
注:之前我加入了防溅动漫我的JS看起来像这里面没有问题的工作:
var $j = jQuery.noConflict();
$j(window).load(function() {
$j('#loading').fadeOut('slow', function() {
$j("#content-wrap").fadeIn("slow");
});
});
Here is a link to the page in question.
你到底在哪里? – adeneo
@ adeneo - 编辑的问题。 – L84
基本的HTML标记是? – epascarello