[jQuery] Re: I need some hints

2009-04-18 Thread András Csányi
2009/4/17 András Csányi : > Hi all! > > I'm developing an php and jQuery based grid (something like this: > http://www.phpgrid.com/grid/) for my Thesises and I want to coloring > the table row if the mouse over the row. You know, this is the minimal > visual feature what is following the users eye

[jQuery] Re: I need some hints

2009-04-17 Thread mkmanning
The second function in my example went missing :P $('tr').hover(function(){ $(this).addClass(CLASS_WITH_BACKGROUND_COLOR); }, function(){ $(this).removeClass(CLASS_WITH_BACKGROUND_COLOR); }); On Apr 17, 4:04 pm, mkmanning wrote: > András, you can use CSS as MorningZ said: > > tr:hover td {/

[jQuery] Re: I need some hints

2009-04-17 Thread mkmanning
András, you can use CSS as MorningZ said: tr:hover td {/*some color*/} If you're td's don't have a background color, you can put it directly on the tr tr:hover {/*some color*/} Note that IE6 doesn't support the :hover pseudo-class on elements other than anchors, to if IE6 support is needed, th

[jQuery] Re: I need some hints

2009-04-17 Thread waseem sabjee
here's the solution. the jquery code is $("#myid").hover(function() { $("#myelement").animate({ backgroundColor:"#666" ), 1000 ); }, function() { $("#myelement").animate({ backgroundColor:"#FFF" ), 1000 ); } ); just make sure the you have a unique ID On Fri, Apr 17, 2009 at 8:41 PM, András

[jQuery] Re: I need some hints

2009-04-17 Thread MorningZ
oops .T1 tr:hover td { should be #T1 tr:hover td { On Apr 17, 3:50 pm, MorningZ wrote: > How about working the other way... > > You provide a small sample of your table HTML, and then someone could > provide CSS or jQuery help, as there is no idea why CSS's :hover > wouldn't work unless it's no

[jQuery] Re: I need some hints

2009-04-17 Thread MorningZ
How about working the other way... You provide a small sample of your table HTML, and then someone could provide CSS or jQuery help, as there is no idea why CSS's :hover wouldn't work unless it's not leveraged properly like a super simple example :-) Row 1 Row 2 Row 3 .T1 tr: