<div id="container">
<h2>my fans (<span id="fans-count"></span>)</h2>
<ul id="fans-container"></ul>
<br />
</div>
<script type="text/javascript">
function displayFans(names) {
var ct = document.getElementById('fans-container');
for (var i=0, name; name=names[i]; i++) {
var li = document.createElement('li');
var a = document.createElement('a');
a.setAttribute('href', 'http://del.icio.us/'+name);
a.appendChild(document.createTextNode(name));
li.appendChild(a);
li.appendChild(document.createTextNode(' '));
ct.appendChild(li);
}
var count = document.createTextNode(names.length);
document.getElementById('fans-count').appendChild(count);
}
</script>
<script type="text/javascript"
src="http://del.icio.us/feeds/json/fans/deusx?callback=displayFans"></script>