If Browser is Internet Explorer: run an alternative script instead

后端 未结 10 707
后悔当初
后悔当初 2020-11-29 05:11

I\'m using an image carousel script that is quite heavy on the browser. It works great in Opera and Chrome, half decent in FF and absolutely breaks my balls in IE. So i\'d l

10条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 05:37

    You define a boolean value with default of true, and then inside an IE conditional comment, set the value to false, and use the value of this to determine whether your advanced code should run. Something like:

    
    
    
    

提交回复
热议问题