IE中的setInterval [英] setInterval in IE

查看:128
本文介绍了IE中的setInterval的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们。我的目标是在给定的时间后有各种图像和新闻旋转。我的js正确地显示了初始图像和文本但在IE中停止并且我从未到达1.然而,在FF中,它会贯穿所有内容并按预期连续循环。看起来我的setInterval有问题。我需要添加/省略它才能在IE6 +中正常运行。任何帮助都会很棒!

展开 | 选择 | Wrap | 行号

解决方案

document.getElementById(''image '').innerHTML = newImage;


??这是不正确的?


谢谢!


嗨...


认为你必须使用:

展开 | 选择 | Wrap | 行号


Hey guys. I''m aiming to have various images and news rotate after a given amount of time. My js correctly displays the inital image and text but stops in IE and i never gets to 1. In FF, however, it runs through everything and loops continuously as intended. Looks like I have an issue with the setInterval. What do I need to add/omit for it to function properly in IE6+. Any help would be great!

Expand|Select|Wrap|Line Numbers

解决方案

document.getElementById(''image'').innerHTML = newImage;


?? is that incorrect?

thanks!


hi ...

think you have to use:

Expand|Select|Wrap|Line Numbers


这篇关于IE中的setInterval的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆