[jQuery] Re: hover with unordered list

2007-04-29 Thread millionmonkey
I put an example out of the hover function for those who like to see working examples. Hover over the Unorder List in the left column to see it at work http://www.levelfield.com/newsticker1.html On Apr 29, 7:38 pm, Ralph <[EMAIL PROTECTED]> wrote: > I'm tryin to do a hover effect for a using a

[jQuery] Re: hover with unordered list

2007-04-29 Thread Ralph
I just figured it outlike Kenneth suggested i wrapped it in a document ready function: $(document).ready(function() { $("#home-categories ul li").hover(function(){ alert("Hello world!"); },function(){ alert("Out."); }); }); Sorry for the newb

[jQuery] Re: hover with unordered list

2007-04-29 Thread Kenneth
You probably need to wrap your code in $(function(){/* code */}): $(function(){ $("#categories li").hover(function(){ alert("the mouse is over"); },function(){ alert("the mouse is out"); }); }); The code you posted immediately attempts to bind th