
Originally Posted by
7dma
Hello! I'm having the same problem (crawler doesn't display in IE8). It works fine in all Mozilla browsers. I've checked that all images exist.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Wed, 18 Apr 2012 01:31:33 UTC
Message: Invalid argument.
Line: 158
Char: 6
Code: 0
URI: scripts/crawler.js
The site is at
http://www.bestbodyfood.com
Any assistance is greatly appreciated!
Here in the on page init you have:
Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': 'px',
'width': 'px',
'height': 'px'
},
inc: 5, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 2,
neutral: 150,
savedirection: true,
random: true
});
</script>
Those are all invalid. Other browsers ignore them. IE 8 and less feels insulted. I'm assuming you don't want any of those styles, that's why you removed the numbers from them, leaving only the 'px' part. No styles are required though, so you can just skip that part altogether:
Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
inc: 5, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 2,
neutral: 150,
savedirection: true,
random: true
});
</script>
Bookmarks