0
我有以下代碼來自動更改背景圖像。Internet Explorer上的光標焦點問題
function changeBackground() {
currentBackground++;
if(currentBackground > 3) currentBackground = 0;
$('body').fadeOut(0, function() {
$('body').css({
'background-image' : "url('" + backgrounds[currentBackground] + "')"
});
$('body').fadeIn(0);
});
setTimeout(changeBackground, 3000);
我在前面有一個簡單的表單。在Internet Explorer中,這種形式的重點似乎每次去的影像學改變,但效果很好Chrome和Firefox