I have a 2 small script in the footer of my page, that produce a script error in IE8. IEtester says that this script error is created from the document ready (but i believe it's just cuz it's the start). I used jQuery so that it was cross browser patible. :(
<script type="text/javascript">
$(document).ready(function(){
//flexslider
$(".flexslider").flexslider({
animation : "slide",
slideshow : true,
animationDuration: "750",
slideshowSpeed: 5000,
pauseOnAction: true,
});
//text slider overer
$("#videos li").on({
mouseenter: function() {
$(this).animate({"padding-left": "50px"}, "normal");
},
mouseleave: function() {
$(this).stop(true).animate({"padding-left": "0px"}, "slow");
}});
});
Does anyone know how to correct this script error? If so, could you explain why this error is created in the first place?
first script html page: / Second script html page: .php
I have a 2 small script in the footer of my page, that produce a script error in IE8. IEtester says that this script error is created from the document ready (but i believe it's just cuz it's the start). I used jQuery so that it was cross browser patible. :(
<script type="text/javascript">
$(document).ready(function(){
//flexslider
$(".flexslider").flexslider({
animation : "slide",
slideshow : true,
animationDuration: "750",
slideshowSpeed: 5000,
pauseOnAction: true,
});
//text slider overer
$("#videos li").on({
mouseenter: function() {
$(this).animate({"padding-left": "50px"}, "normal");
},
mouseleave: function() {
$(this).stop(true).animate({"padding-left": "0px"}, "slow");
}});
});
Does anyone know how to correct this script error? If so, could you explain why this error is created in the first place?
first script html page: http://designobvio.us/fonts/ Second script html page: http://designobvio.us/fonts/middle.php
Share Improve this question edited May 13, 2012 at 20:55 Igor 34.1k14 gold badges82 silver badges116 bronze badges asked May 13, 2012 at 18:28 John AbrahamJohn Abraham 18.8k36 gold badges132 silver badges240 bronze badges 20- What property or method does the error tell you is not supported? Any how about posting the script that's giving you the trouble? – cliffs of insanity Commented May 13, 2012 at 18:41
- Can you post the exact error into your question? – Michel Ayres Commented May 13, 2012 at 19:19
- @cliffsofinsanity the script is basically just being ignored – John Abraham Commented May 13, 2012 at 20:52
- @MichelAyres code has been updated above – John Abraham Commented May 13, 2012 at 20:52
- 1 Yes, fix it before I have to get my hands dirty in IE8. ;-) Aside from that, not really, but thanks. – cliffs of insanity Commented May 13, 2012 at 21:11
2 Answers
Reset to default 5Here's one issue that's sure to trip up IE8:
$(".flexslider").flexslider({
animation : "slide",
slideshow : true,
animationDuration: "750",
slideshowSpeed: 5000,
pauseOnAction: true, // <-- Trailing ma
});
IE8 and lower hate trailing mas.
Remove the , from this line: pauseOnAction: true,
IE doesn't support mas on the end of the last line in an array or object.