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