[英]Internet Explorer 8 Compatibilty jQuery
Hi, Im just wondering if someone can help me on this, i keep getting this in IE8, ive been through the jQuery and checked it all for errors, i did have a couple too many ,'s after options and a few after brackets but no matter what i try i can not get it to recognise the $ code as below... 嗨,我只是想知道是否有人可以帮我这个忙,我一直在IE8中获取它,我一直在通过jQuery并检查了所有错误,我确实有很多,在选项之后,在括号之后,但是无论我尝试什么,我都无法识别如下的$代码...
$(document).ready(function() {
/* --------------------------------------------------------------------------- */
/* 1. Main Slider (Revolution Slider)
/* --------------------------------------------------------------------------- */
$('.revslider').revolution( { <-- THIS IS LINE 31
delay : 9000,
startwidth : 1120,
startheight : 535,
onHoverStop : "on", // Stop Banner Timet at Hover on Slide on/off
thumbWidth : 100, // Thumb With and Height and Amount (only if navigation Tyope set to thumb !)
thumbHeight : 50,
thumbAmount : 3,
hideThumbs : 200,
navigationType : "none", //bullet, thumb, none, both (No Shadow in Fullwidth Version !)
navigationArrows : "verticalcentered", //nexttobullets, verticalcentered, none
navigationStyle : "round", //round,square,navbar
touchenabled : "on", // Enable Swipe Function : on/off
navOffsetHorizontal : 0,
navOffsetVertical : 20,
stopAtSlide : -1, // Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case.
stopAfterLoops : -1, // Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic
fullWidth : "on",
shadow : 0
});
You can use jQuery
instead of $
, leading to 您可以使用jQuery
代替$
,从而导致
jQuery(document).ready(function() {
jQuery('.revslider').revolution( {
...
Also note that jQuery 2.x
doesn't support IE8 - see here . 另请注意, jQuery 2.x
不支持IE8- 请参见此处 。
You need to use jQuery 1.x
for support of IE6+. 您需要使用jQuery 1.x
来支持IE6 +。
Also check if you include your scripts correctly - see this question: How does $(document).ready() work in IE 8? 还要检查您是否正确包含了脚本-看到以下问题: $(document).ready()如何在IE 8中工作?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.