开发者

jquery.min.js error in ie6

开发者 https://www.devze.com 2022-12-18 07:14 出处:网络
IE g gives me the following error: Line: 79 Char: 4 Error: Unexpected identifier, string or number Code: 0

IE g gives me the following error:

Line: 79 Char: 4 Error: Unexpected identifier, string or number Code: 0

The website is test.hatc.org.

I am using a template that features fading images, opacity and sliding menus. I saw an error pertaining to jquery.min.js in a browser running IE8 with compatibility mode on, so I think it has something to do with that.

Any ideas or 开发者_如何转开发similar errors found by anyone?

Thanks.


you have a trailing comma in this element:

$('.slider-container').cycle({
fx:'fade',
timeout:0,
speed:400,
});

Should be:

$('.slider-container').cycle({
fx:'fade',
timeout:0,
speed:400 //NO comma here
});

In IE8, they've changed the JScript engine to realize there is no data after the last comma - thus ignores it like other browsers.

0

精彩评论

暂无评论...
验证码 换一张
取 消