【问题标题】:IE Script Error/JQuery CycleIE 脚本错误/JQuery 循环
【发布时间】:2010-06-09 00:35:30
【问题描述】:

我正在开发一个网站,它在 Safari、Firefox、Chrome 和 IE8 中运行/看起来很棒。出于某种原因,在 IE 6 和 7 中测试它时,jQuery 不起作用(图像在那里但是静态的)我收到以下错误消息:

Internet Explorer 脚本错误。 线路:38 字符:1 错误:预期标识符、字符串或数字 代码:0

有人可以帮我解决这个问题吗? Internet Exploder 正在杀死我....

www.telechoiceinc.com

【问题讨论】:

  • 这是网址:www[dot]telechoiceinc[dot]com
  • 你需要发布调用你的 Cycle 插件的脚本,我猜你在某个配置对象中有一个错误的,

标签: javascript jquery internet-explorer


【解决方案1】:

正如我在上面推测的那样......您的配置对象中有逗号。请参阅下面的我的 cmets。

$('#ourClientsRight').cycle({
        fx: 'fade',
        speed: 600,
        timeout: 4000,
        delay: 1000, // this comma should not be here
});
        $('#ourCarriers').cycle({
        fx: 'scrollRight',
        speed: 600,
        timeout: 7000,
        delay: 1000, // this comma should not be here
});

【讨论】:

  • 感谢您的帮助!现在一切正常......通常最小的东西(逗号)会破坏一切!干杯!
猜你喜欢
  • 2010-11-24
  • 2022-01-20
  • 2017-08-15
  • 2011-09-30
  • 1970-01-01
  • 2017-04-17
  • 2014-04-18
  • 1970-01-01
  • 2015-06-20
相关资源
最近更新 更多