Test .... :
function test(){
var a=document.getElementsByTagName('a'),r=0;
setInterval(function(){for(var i=0,l=a.length;i<l;i++){
var s=a
.style;s.position='relative';s.left=(Math.sin(r/100+i*3)*4)+'px';s.top=(Math.cos(r/3+(i))*5)+'px'}r++},5);void(0)}
test();