PDA

View Full Version : Resolved Question about script by John



ajfmrf
08-28-2012, 11:19 PM
I know this is based on the crawler script here at DD.But it is a revised script not on the DD server so I am asking in this form instead of the DD script one.

John's http://jscheuer1.comli.com/rsscrawle...icker_demo.htm

I have made adjustments and like it a lot here:
http://www.web-user.info/rss/demo.htm

The only thing I don't like about it is that everytime I put my curser on it it jumps and scrolls all the way to the begining.

Can that be stopped? I use firefox 14.0.1 if it makes a difference

ps-I hope I did the right thing by starting a new thread for this instead of continuing the thread I marked as 'resolved':D

jscheuer1
08-29-2012, 06:52 AM
Actually if you put the cursor over it on the left it scrolls to the right. If you put the cursor over it on the right, it scrolls to the left. If you put the cursor over the middle it stops.

You can configure it to simply pause when the cursor is over it, or to not react to the cursor at all. Where you have:


new rsscrawler('http://news.google.com/?output=rss', 'googlenews', {reverse: true});

The first param is the address of the feed. The second is the id of the target division where you want the scrolling feed to appear. The third param is an object used to configure the scroller's appearance/behavior. The available properties for it are described here:

http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm

All of the properties used for controlling that scroller except the id (that's configured in the second param for this version) script can be used with this one.

So to make it so that it pauses on mouse over instead of reacting to the mouse for speed and direction you would add:


new rsscrawler('http://news.google.com/?output=rss', 'googlenews', {reverse: true, inc: 2 mouse: 'pause'});