Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
What is the best way to highlight <tr> tag?
Old 11-24-2005, 01:02 AM What is the best way to highlight <tr> tag?
Webmaster Talker

Posts: 626
Trades: 0
I have a table listing a bunch of clients...

I would like a highlight/scroll bar to appear as I move the mouse over each row <TR> tag.

I would guess that it would be simply changing the class of that particular row with the mouseover="". But what would be the best way to do this??

zinc.
jim.thornton is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-24-2005, 01:50 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
You can use CSS:

tr:hover {
background-color: yellow
}
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 11-24-2005, 11:41 PM
Webmaster Talker

Posts: 626
Trades: 0
Thank you.
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 11-25-2005, 03:20 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
It won't work in IE as it doesn't support :hover on arbitary elements, only on <a> elements.

You will need a bit of DHTML
Code:
function setBackColour(obj,colour){
document.getElementById(obj).style.backgroundColor = colour;
}
Code:
<td id="test_td" onMouseOver="setBackColour(this.id,'yellow')" onMouseOut="setBackColour(this.id,'')" width="100")>Some Text</td>
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to What is the best way to highlight <tr> tag?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19043 seconds with 12 queries