There are invalid comment tokens and an extra comma in the init:
Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'width': '826px',
'height': '300px'
},
inc: 1, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'false', //mouseover behavior ('pause' 'cursor driven' or false)
<!-- random: true, -->
direction: 'right',
<!-- addDelay: 10 -->
});
</script>
This will work in many browsers which error correct. It would even work in IE 9 if the page were in standards mode, which would be a good idea because initialization is smoother in IE 8 and 9 when standards are in force. But that may or may not create the need to redo some or a lot of the css or html code to conform to standards. It also may or may not break other scripts on the page (only if they are old and rely upon quirks mode). To try it out, change the DOCTYPE to a standards invoking DOCTYPE*.
But simply to get things working, change the init to:
Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'width': '826px',
'height': '300px'
},
inc: 1, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'false', //mouseover behavior ('pause' 'cursor driven' or false)
// random: true,
// addDelay: 10,
direction: 'right'
});
</script>
The browser cache may need to be cleared and/or the page refreshed to see changes.
* To try out the page with a standards invoking DOCTYPE, change:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
to:
HTML Code:
<!DOCTYPE html>
Bookmarks