Wednesday, February 15th, 2006
Apple.com iTunes Counter: Now it’s a billion
<>p>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)
-
{}
-
}
-
}
-
Related Content:












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. :))
This is intresting and all but I find it funny that its called “Billion Songs Countdown” and the counter is counting up.
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.”