[英]Slideshow not working in IE for Windows
Any idea as to why this is happening? 知道为什么会这样吗? Works in Chrome, and Firefox but not in IE.
适用于Chrome和Firefox,但不适用于IE。 Is there a script I can use to fix this?
有没有可以用来解决此问题的脚本?
Problem: http://www.isomham.com/TEST/hospitality/hamptoninn-murrellsinlet.html 问题: http : //www.isomham.com/TEST/hospitality/hamptoninn-murrellsinlet.html
Checked it in IE and I get this error: 在IE中检查了它,然后出现此错误:
Message: 'imagearray[...].0' is null or not an object
Line: 34
Char: 3
Code: 0
URI: http://www.isomham.com/TEST/Scripts/simplegallery.js
Fixing that should do it 修复应该做到的
EDIT: 编辑:
Actually it think that the code: 实际上它认为代码:
var mygallery=new simpleGallery({...etc
needs to be wrapped around: 需要包装:
window.onload = function(){
var mygallery=new simpleGallery({...etc
});
I think the script is trying to look for #simplegallery1 before the page has finished loading. 我认为脚本正在尝试在页面完成加载之前查找#simplegallery1。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.