Hello

I need to bind an hover function on every element of my page...

but it doesn't work :-(

var allz=document.getElementsByTagName("*");

for(var i=0; i<allz.length;i++){
        $(allz[ i]).hover(
             function(){
                     $(this).css("border","1px solid red");
             },
             function(){
                     $(this).css("border","none");
             }
        );
}

I don't know how to select properly each elements??

Reply via email to