Go Back   Cyber Tech Help Support Forums > Software > Web Development & Graphic Design

Notices

Reply
 
Topic Tools
  #1  
Old February 1st, 2004, 10:14 PM
synth7 synth7 is offline
Senior Member
 
Join Date: Apr 2003
Posts: 153
HTML question

I've got a list of links, each in it's own <td> in the <table>, and I need the code that will change the bg color of each <td> when I onMouseOver the text links.

Anyone know what it is?
Reply With Quote
  #2  
Old February 1st, 2004, 10:51 PM
degsy's Avatar
degsy degsy is offline
Cyber Tech Help Moderator
 
Join Date: Jul 2001
Location: North-East, UK
Posts: 22,042
Blog Entries: 1
doesn't work in IE

http://www.w3.org/Style/CSS/Test/CSS...modsel-18.html
__________________
Cheers,
Degs

Please post back with your results
CTH Terms of Use

CTH Subscriptions :: Adaware Guide :: HijackThis
Reply With Quote
  #3  
Old February 4th, 2004, 08:25 PM
Steven.Bentley Steven.Bentley is offline
CTH Subscriber
 
Join Date: Nov 2000
Location: West Yorkshire, UK
Age: 29
Posts: 3,840
Try this

set up two styles, I've called them red and green but choose whatever suits you

.red {background-color:red}
.green{background-color:green}

then in each td tag

<td class="green" onmouseover="this.className='red'" onmouseout="this.className='green'">
__________________
Don't forget to post back with the results
Reply With Quote
Reply

Bookmarks

Topic Tools

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
Forum Jump


All times are GMT +1. The time now is 10:24 PM.

[ RSS ]