'document [...]'为null或不是具有旋转图像的对象 [英] 'document[...]' is null or not an object with rotating images
本文介绍了'document [...]'为null或不是具有旋转图像的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我所拥有的是两组图像,(天气,光学)每组约有30张图像。
我有脚本将旋转图像在主页上。
用户可以通过一个简单的onclick查看一个或另一个img集
这在Mozilla中运行良好但是在IE中我得到错误文件[...] null或者不是对象,第95行,第4行。
我花了好几个小时,但没有运气。
javascript
展开 | 选择 | Wrap | 行号
解方案
Heya,BD。
看起来这是导致你悲伤的行(在switchImage()中):
展开 | 选择 | Wrap | 行号
我认为你有所作为,但我仍然遇到问题
这就是我的意思将功能更改为
展开 | 选择 | Wrap | 行号
Ok修复了我的一个问题,它是getElementsByName而不是getElementByName
我在IE中没有收到错误,但我的图片从未出现过。在Mozilla中,我每5秒钟收到一次错误消息。
有谁知道如何解决这个问题。
谢谢
What I have is a is two sets of images,(Weather, optical) there is about 30 images of is each set.
I have script that will rotate through the images on the main page.
The user is able to view one or the other img sets with a simple onclick
This works great in Mozilla but in IE I get the error document[...]null or not an object, line 95, char 4.
I''ve spent hours on this, but no luck.
javascript
Expand|Select|Wrap|Line Numbers解决方案Heya, BD.
It looks like this is the line that is causing you grief (in switchImage()):
Expand|Select|Wrap|Line Numbers
I think you are on to something, but I am still having trouble
this is what I changed the function to
Expand|Select|Wrap|Line Numbers
Ok fixed my one problem it is getElementsByName not getElementByName
I''m not receiving an error in IE but my images never appear. In Mozilla I just receive the error message every 5 seconds.
Does anyone know how to fix this.
Thanks
这篇关于'document [...]'为null或不是具有旋转图像的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆