什么加载的问题,我知道。上周五,这一确切的脚本是工作在所有相关网页:曾经的jquery工作;没有变化,现在它不
$('.textBoxes img').bind('showText',function(e) {
$(this).fadeIn(1100,function(){
// this is the callback after the fadein
// here we want to wait (use a timeout)
var next = $(this).next();
if (next.length)
setTimeout(function() {
// before the next text is shown
next.trigger("showText");
}, 2500);
})
}).eq(0).trigger('showText');
样品的HTML工作:
<div class="textBoxes">
<img src="/sites/all/themes/hr_microsite/images/sma-philo-copy-1.png" alt="" class="smaPhiloCopy1">
<img src="/sites/all/themes/hr_microsite/images/sma-philo-copy-2.png" alt="" class="smaPhiloCopy2">
</div>
...和CSS最初隐藏文本:
.smaPhiloCopy1, .smaPhiloCopy2, .historyCopy1, .historyCopy2, .historyCopy3, .natureCopy1, .natureCopy2, .homesCopy1, .homesCopy2, .homesCopy3, .stayingPowerText1, .stayingPowerText2, .stayingPowerText3, .ourStandardsCopy1, .ourStandardsCopy2, .ourStandardsCopy3, .organizationText1, .organizationText2, .cityCopy1, .cityCopy2, .cultureCopy1, .cultureCopy2, .cultureCopy3, {
display:none;
}
所有图像都是png w /透明度,绝对位于父div内。
因此,我有多个网页与该类的div和各种图像。脚本应逐渐消失在每张图片上,一次一张,并在每张图片之间延迟。
我今天早上进来,打了一个网址,现在所有图像都在屏幕上。没有任何消失。任何浏览器都没有错误。
萤火虫,我在控制台中运行这个和它的所有作品,因为它应该在页面加载:
$('.textBoxes img').css('display','none');
$('.textBoxes img').bind('showText',function(e) {
$(this).fadeIn(1100,function(){
// this is the callback after the fadein
// here we want to wait (use a timeout)
var next = $(this).next();
if (next.length)
setTimeout(function() {
// before the next text is shown
next.trigger("showText");
}, 2500);
})
}).eq(0).trigger('showText');
我已经清除了Drupal的缓存和浏览器,但我不明白为什么这并未没有工作。我没有改变HTML,CSS或jQuery文件或图像。很奇怪?
附加服务器注意:这并不意味着什么,但服务器本身是不同步的,所以我的文件有一个星期前的日期,虽然它们在我上传时被替换,并且在Firebug中我可以检查脚本和CSS,并看到最新的文件上传。以防万一有人知道其他事情。
有一个链接,我们可以看看? – j08691
http://hr.sharpsma.com/sma/philosophy –
他们不工作,因为他们没有出现,或者他们没有隐藏之前,甚至开始? – putvande