开发者

Why doesn't my jquery work on IE7

开发者 https://www.devze.com 2023-02-01 19:26 出处:网络
I have this site:开发者_StackOverflow http://telya.wee.co.il that has some jquery affects on the main page.

I have this site:开发者_StackOverflow http://telya.wee.co.il that has some jquery affects on the main page.

All works fine on FF, chrome, IE8 but it looks horrible and doesn't work on IE7.

Any idea ?


Try removing the surplus comma (,) from the

 $('#imagesFade').cycle({ 
     fx:     'scrollRight', 
     speed:  200, 
     timeout: 3000, 
     next:   '#next', 
     prev:   '#prev' , /* <-- this comma should be removed */
 });

when i removed and re-run the code edited the slideshow worked just fine (and whatever follows should, as well)


First thing that catches my eye is the extra comma after '#prev':

$('#imagesFade').cycle({ 
  fx:     'scrollRight', 
  speed:  200, 
  timeout: 3000, 
  next:   '#next', 
  prev:   '#prev' ,
});

IEs are picky about those.

0

精彩评论

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