Apple.com iTunes Counter: Now it???"?s a billion

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

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:

pullAlbumFeed: function(feed)
{
        var url = "top300.xml"; // default just in case, ignore
        if (feed)
        {
                url = feed;
        }

        var t = this.getRequestTransport();
        if(t) // that is, if we can't eval t as a real transport, nothing happens.
        {
                try
                {
                        t.open('GET', url, true);
                        t.onreadystatechange = function()
                        {              
                                if (t.readyState == 4) Board.loadRss(t.responseXML);
                        }
                        // init the ajax call
                        t.send(url);
                }
                catch(er)
                {}
        }
}
 

iTunes Billion Countdown