<div id="whatever">
<a href="/peace" data-weight="7">peace</a>
<a href="/unity" data-weight="3">unity</a>
<a href="/love" data-weight="10">love</a>
<a href="/having-fun" data-weight="5">having fun</a>
</div>
and then:
$.fn.tagcloud.defaults = {
size: {start: 14, end: 18, unit: 'pt'},
color: {start: '#cde', end: '#f52'}
};
$(function () {
$('#whatever a').tagcloud();
});