• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mouse hover on TD

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

How to use the class:hover CSS into TD tag so that when the mouse is over the column i want to display a border on it.

I know that a:hover can be used for href tag.

I want the same thing to TD tag.

Please give me a solution.

Thanks

Mahendran A
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can you not write a script function, onmouseover of the TD, to show the border color? If possible, you can put that into your stylesheet, so, that it will affect all the TDs, throughout your app <if that's what you want, to be consistent>.
 
Mahendran Aiyappan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Subhadip,
Thanks for your reply

I know i can write a Javscript function which will be called by onMouseOver() and onMouseOut() functions to change the border color of TD.

But i want to do the thing in CSS way.

Just like a:hover{ }

can you suggest me any good links or code snippets

Mahendran A
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Talked about it on my blog here:
http://radio.javaranch.com/pascarello/2004/12/30/1104419159000.html

or

There is a way to add properties with a .hta file, but I do not think that is the best solution.

Eric
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic