cool deal.
btw, I posted an entry on learningjquery.com that improves on my
little script:
http://www.learningjquery.com/2009/06/quick-tip-outline-elements-on-hover
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jun 19, 2009, at 1:34 PM, ecofriend wrote:
Thanks Karl, your info was very helpful. I had to modify the code a
little bit to get what I needed since I did not need to multiple row
highlight option so I post that here in case someone is looking for
that funcationality.
// Highlight the row which will be selected if the user clicks the
left mouse button.
$(".burst").mouseover(function(event)
{
$(this).addClass("rowcol");
})
.mouseout(function(event) {
$(this).removeClass("rowcol");
})
// The rest defines what happens when a row is clicked.
// This code is concatenated with the mouseover/mouseout functions.
.click(function() {
// Reset background color of the previously selected row.
$(".burst").removeClass("rowcolclicked");
// Highlight selected row.
$(this).addClass("rowcolclicked");}