Wednesday, February 15th, 2006

Apple.com iTunes Counter: Now it’s a billion

Category: Showcase

We featured the original iTunes counter but Dunstan Orchard and team.

Now they are up to a billion, and they have a new countdown going on.

This time, not only do they have the count, but they have a moving list of album art that has been purchased.

You can check out how it works via blocks.js. You can see how they use XMLHttpRequest to read an RSS feed of albums:

javascript

  1. pullAlbumFeed: function(feed)
  2. {
  3.     var url = "top300.xml"; // default just in case, ignore
  4.     if (feed)
  5.     {
  6.         url = feed;
  7.     }
  8.  
  9.     var t = this.getRequestTransport();
  10.     if(t) // that is, if we can't eval t as a real transport, nothing happens.
  11.     {
  12.         try
  13.         {
  14.             t.open('GET', url, true);
  15.             t.onreadystatechange = function()
  16.             {      
  17.                 if (t.readyState == 4) Board.loadRss(t.responseXML);
  18.             }
  19.             // init the ajax call
  20.             t.send(url);
  21.         }
  22.         catch(er)
  23.         {}
  24.     }
  25. }

iTunes Billion Countdown

Posted by Dion Almaer at 4:02 am
3 Comments

+++--
3.5 rating from 20 votes

3 Comments »

Comments feed TrackBack URI

The “intro” animation where the blocks fall into place looks nice – kudos to Dunstan et al on that. (It “almost” works in Opera 8.5, too. :))

Comment by Scott Schiller — February 15, 2006

This is intresting and all but I find it funny that its called “Billion Songs Countdown” and the counter is counting up.

Comment by Berryman — February 15, 2006

It might be worht watching the count soon, as you can win stuff:

“And if you’re the lucky grand-prize winner who downloads the billionth song from the iTunes Music Store, you’ll receive a 20-inch iMac, 10 60GB iPods, and a $10,000 iTunes Music Card to jumpstart your digital music collection.”

Comment by Rob Sanheim — February 15, 2006

Leave a comment

You must be logged in to post a comment.