How about:

$('*').hover(...);

Or maybe a little more practical:

$('body *').hover(...);

So you don't get all of the elements in the head.

--Erik


On 8/1/07, barnezz <[EMAIL PROTECTED]> wrote:
>
>
> 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