kenaroo
04-01-2010, 05:50 AM
http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm
Hoping to get a bit of help with a problem I am having with crawler.js
The script runs, the images crawl across the screen however, I have 7 images to scroll through and hoping to add many more, my client is hoping for about 35, but at the moment, when the crawler starts it shows the first 3 images, then back to the start but then only scrolls through 6 or the 7 images. Is there a limit to the number of images that can be used?
Here is the code, the crawler.js file has not been edited at all.
<div style="position: absolute; width: 860px; height: 240px; z-index: 5; left: 20px; top: 198px" id="contentwrapper" class="style1">
<div class="marquee" id="mycrawler" style="height: 240px; width: 860px;">
<img src="graphics_img/hp1lge.jpg" />
<img src="graphics_img/hp2lge.jpg" />
<img src="graphics_img/hp3lge.jpg" />
<img src="graphics_img/hp4lge.jpg" />
<img src="graphics_img/hp5lge.jpg" />
<img src="graphics_img/hp6lge.jpg" />
<img src="graphics_img/hp7lge.jpg" />
</div>
</div>
And the code for MarqueeInit
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': '0px',
'width': '860px',
'height': '240px'
},
inc: 3, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 3,
neutral: 150,
savedirection: true
});
</script>
Hoping to get a bit of help with a problem I am having with crawler.js
The script runs, the images crawl across the screen however, I have 7 images to scroll through and hoping to add many more, my client is hoping for about 35, but at the moment, when the crawler starts it shows the first 3 images, then back to the start but then only scrolls through 6 or the 7 images. Is there a limit to the number of images that can be used?
Here is the code, the crawler.js file has not been edited at all.
<div style="position: absolute; width: 860px; height: 240px; z-index: 5; left: 20px; top: 198px" id="contentwrapper" class="style1">
<div class="marquee" id="mycrawler" style="height: 240px; width: 860px;">
<img src="graphics_img/hp1lge.jpg" />
<img src="graphics_img/hp2lge.jpg" />
<img src="graphics_img/hp3lge.jpg" />
<img src="graphics_img/hp4lge.jpg" />
<img src="graphics_img/hp5lge.jpg" />
<img src="graphics_img/hp6lge.jpg" />
<img src="graphics_img/hp7lge.jpg" />
</div>
</div>
And the code for MarqueeInit
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': '0px',
'width': '860px',
'height': '240px'
},
inc: 3, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 3,
neutral: 150,
savedirection: true
});
</script>