Would you know how to animate it? I really wouldn't have any ideas on how to get it to do that.
but I appreciate all your help! On Aug 31, 2:40 pm, Brad <[EMAIL PROTECTED]> wrote: > Chris, > > A simple example that shows the background color of a link changing on > hover. This same effect could be achieved through pure CSS. > > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1" /> > <title>Untitled Document</title> > <script src="jquery-1.2.6.min.js" type="text/javascript"></script> > <script type="text/javascript"> > $(document).ready(function(){ > var bg = $("a").css('background-color'); // save to restore > $("a").hover( > function () { > $(this).css({'background-color':'red'}); > }, > function () { > $(this).css({'background-color': bg }); > } > ); > }); > </script> > </head> > <body> > <a href="#">one</a> > <a href="#">two</a> > <a href="#">three</a> > </body> > </html> > > This doesn't fade in and out but simply changes the background color. > I tried animate instead of css, but I don't think that animate can > change colors. If you really want a fade affect you may have to write > a function that progressively changes the background color from > orginal to final and vice versa. Search this form for "animate change > color". There might even be a plugin that will do what you want. > > hth > > > I don't have access to a public test server to create a demo, but I'll > > see if I can create a test case.