should be something like that... jQuery(document).ready( function() { jQuery("*").css("border", "1px solid red"); } );
On 8/2/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?? > > -- Best Regards, tszming