I was bored so, as you do, I decided to tidy up the BBC-style newsticker I put up a while ago and make it a bit less hacked-MochiKit and a bit more Prototype. It's about half the number of lines, and a whole 1k smaller in filesize, but most importantly it's tidier and hopefully easily extensible. As seems to be the done thing, I'm going to call it ProtoTicker and requires the latest (1.6 release candidates as the time of writing) version of prototype"

Only tested in Firefox and Opera, and only with a couple of known-good RSS feeds, but seems to work just fine. It works with Atom too, I think.

A quick demo:


<script type="text/javascript">
Event.observe(window,'load',function() {
  var myTicker = new ProtoTicker('newsticker','/feed/atom.xml',{char_frequency: 80, item_frequency: 1500});
  myTicker.start();
});
</script>

Download the Code

1 Response to “prototype news ticker #2- ProtoTicker”

  1. owen Says:
    nice, probably could use some of that fade stuff as well :)

Leave a Reply