PDA

View Full Version : How do I change speed on Text and Image Crawler v1.53



action
05-01-2013, 04:33 AM
1) Script Title: Text and Image Crawler v1.53

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

3) Describe problem: Where in the code can I edit the default speed? It moves too fast.

jscheuer1
05-01-2013, 04:53 AM
In the on page init:


<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': '5px',
'width': '450px',
'background': 'lightyellow',
'border': '1px solid #CC3300'
},
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,
persist: true,
savedirection: true
});
</script>

You can set those both to 1. The moveatleast only has effect if the crawler is cursor driven though.

If that's still not slow enough, you can add more delay:


<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': '5px',
'width': '450px',
'background': 'lightyellow',
'border': '1px solid #CC3300'
},
inc: 1, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 1,
addDelay: 30,
neutral: 150,
persist: true,
savedirection: true
});
</script>

action
05-03-2013, 06:04 AM
Thank you! I was only changing one number at a time. The speed is now perfect. I appreciate your help.