var timeout=false,
links=document.getElementsByTagName('a'),
i;
for(i=0;i<links.length;i++){
var self=links.length[i];
self.onmouseenter=function(e){
if(timeout!==false)
clearTimeout(timeout);
timeout=setTimeout(function(){
timeout=false;
alert('Achtung!');
},2*1000);
};
self.onmouseleave=function(e){
if(timeout!==false)
clearTimeout(timeout);
timeout=false;
};
}