Adding on[MouseEvent] to css...

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
NamecheapNamecheap
Watch

zink

New Member
Impact
0
Hi! I was wondering is there a possible way to add javascript's on[event] to css styles, so I can use them on elements?
This would be really useful, because I want to add a style that changes the color, etc when mouse is over the td or img.
Oh.. and another thing... How do I make fading effects to images or td-s in javascript?
Thanks for listening... Hope you understand what I mean...
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
ive seen this somewhere before. this might not work but try something like this.

td.whatever {
TEXT-ALIGN: LEFT;
VERTICAL-ALIGN: TOP;
WIDTH: 100px;
HEIGHT: 100px;
BGCOLOR: #FFFFFF
{
td.whatever:hover {
TEXT-ALIGN: LEFT;
VERTICAL-ALIGN: TOP;
WIDTH: 100px;
HEIGHT: 100px;
BGCOLOR: #CCCCCC
{
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back