I'm not 100% certain what's what with this modification yet. Here are some things I can tell you:
- A cookie is used to preserve the information from one page to another. The name of this cookie is the uniqueid property of the crawler.
- I did discover that if I have two different crawlers (different images, different widths) on different pages that have the same uniqueid, things get really weird, not skittish, but disappearing at times. But as long as the crawlers are the same, there's no problem. This can particularly be a problem with local testing where the cookie will be set for the entire hard drive.
- Your crawler looks no different to me with the persist set or not. And looks a little skittish either way.
- The slower a crawler goes, the smoother it looks.
- With a cursor driven crawler like yours, the inc is the top speed when the mouse is over the crawler at its left or right edge. The moveatleast is the constant speed when the mouse is not over the crawler.
- The more crawler pages you have open at once and/or the higher the load on the CPU and/or RAM, the less smooth any given crawler will look. This varies by computer and browser, but most systems these days can handle a few crawlers at moderate speeds.
- The update from my previous post doesn't take into account the direction of the crawler. If the crawler can change direction when the mouse is out, as yours can, it should remember the current direction.
As per #2, make sure all your crawlers are the same, same width, same images.
Your crawler (going by #4 and 5 above) looks much smoother regardless of persist or not when set like so:
Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler2',
style: {
'padding': '1px',
'width': '965px',
'height': '37px'
},
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, //set to true for marquee to resume from previous position
savedirection: false
});
</script>
When I just checked your page, it was moveatleast 5 - too fast for its contents. Perhaps you sped it up so that more images would get seen. But with the persist set to true, you may slow it down to 2 as shown above. The images will then all get seen, and the scrolling action will be much smoother.
And here's an update to the update:
Attachment 3497
The only change to it is that if the crawler changes direction, it will remember that also.
Note: The savedirection property has nothing to do with the cookie. It only determines (from the demo page):
Directional behavior of 'cursor driven' marquee that has a moveatleast property when moused out. Will it remember it's initial direction (true), continue it's current direction (false), or will it reverse ('reverse') its current direction? (defaults to false)
Bookmarks