PDA

View Full Version : Resolved Text and Image Crawler



Paldin
04-23-2009, 10:58 PM
1) Script Title: Text and Image Crawler

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm

3) Describe problem:

hi, First I would like to say this script rocks.

as for my problem: The script works fine in FF, but when I switch to IE7 the script doesn't show.

here is a link to the site:
http://www.blowfishsushilounge.com/beta/

jscheuer1
04-24-2009, 04:37 AM
Technically speaking in javascript there are no commas allowed at the end of objects. However, most modern browsers with the exception of IE (possibly others, but I doubt it) now error correct this for you. In other words here (highlighted and red):


<script type="text/javascript">
marqueeInit({
uniqueid: 'Menu',
style: {
'padding': '1px',
'width': '100%',
'height': '360px',
},
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
});
</script>

at the end of the style object you have a trailing comma that doesn't belong, remove it:


<script type="text/javascript">
marqueeInit({
uniqueid: 'Menu',
style: {
'padding': '1px',
'width': '100%',
'height': '360px'
},
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
});
</script>

Paldin
04-24-2009, 05:41 AM
cool, Thanks