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
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 {/
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
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
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
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:
6 matches
Mail list logo