Adding on[MouseEvent] to css...

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back