I was working on a solution and got as far as changing
the text background color to red on mouse-over and none on
mouse-out, but couldn't come up with a way to fade the red to none.

        <script type="text/javascript">
        
                $(document).ready(function() {
                        
                        $("#fade").mouseover(function() {
                                $(this).css({ backgroundColor:"red" });
                        $("#fade").mouseout(function() {
                                $(this).css({ backgroundColor:"" })
                                return false;
                        });
                        });
                });
                
        </script>

Perhaps someone more versed in jQuery could add that to the solution?

Rick

> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
> quirksmode
> Sent: Wednesday, January 16, 2008 9:42 AM
> To: jQuery (English)
> Subject: [jQuery] Is it possible to make a simple fading color rollover 
> effect for text links?
> 
> 
> I basically want the bg color (behind the text link) to turn red and
> then quickly fade away when the user highlights a text link. Is there
> a simple in built command for doing this?


Reply via email to