我有以下腳本工作:
function AnimateRotate(d){
var elem = $("#imgLogoWM");
//elem.fadeIn(2000);
$(elem).hide();
$(elem).each(function(i) {
if (this.complete) {
$(this).fadeIn(1500);
} else {
$(this).load(function() {
$(this).fadeIn(2000);
});
}
});
/*$({deg: -60}).animate({deg: d}, {
duration: 2000,
step: function(now){
elem.css({
transform: "rotate(" + now + "deg)"
});
elem.fadeIn(2000);
}
});*/
}
$(window).load(function(){
timer = setTimeout('auto_reload()', 1800000);
AnimateRotate(0);
});
var timer = null;
function auto_reload() {
window.location = 'index.htm';
}
它在IE < 10和FF和Chrome和前衛和Opera的偉大工程。 AnimateRotate(0);
在IE10中不起作用。任何想法如何繞過它,所以它在IE10中也有效?
你控制檯告訴你什麼? – Turnip
我正在使用JQuery 1.11.0。定時器線路正常工作,但AnimateRotate不是 – Si8
什麼具體不起作用? –