reni
Lounge-Member
Tabellenzelle per mouseover und klick css ändern
Hallo...
ich möchte gerne eine Tabellenzelle (und den link darin) per css (oder auch js) ändern
das probelm: ändern alleine is klar krig ich hin zur not auch mit js this.style..
ABER bitte wie mache ich, dass das aktive feld dann auch aktiv bleibt also beim draufklicken soll das feld eine andere HG-farbe bekommen
ich habe hier schon mal eine variante probiert aber das funktioniert nicht wirklich... hat jem. einen tipp für mich wie ich die dinger bei draufklicken und drüberfahren einfärbe ohne dass sie sich wieder entfärben, wenn ich wegrolle von dem button?
hier das css funzt auch nicht der link und sein kleiner bacckground wird geändert aber nicht die zelle dahinter!
<style>
.link1 {background: #8A9BB7; font-family: Verdana; font-size: 10px; color: #FFFFFF; text-decoration: none}
.link1:hover {background: #55698A; font-family: Verdana; font-size: 10px; color: #FFFFFF; text-decoration: none}
.link1:active {background: #55698A; font-family: Verdana; font-size: 10px; color: #FFFFFF; text-decoration: none}
.bg1 {background: #8A9BB7}
.bg1:hover {background: #55698A}
.bg1:active {background: #55698A}
</style>
Hallo...
ich möchte gerne eine Tabellenzelle (und den link darin) per css (oder auch js) ändern
das probelm: ändern alleine is klar krig ich hin zur not auch mit js this.style..
ABER bitte wie mache ich, dass das aktive feld dann auch aktiv bleibt also beim draufklicken soll das feld eine andere HG-farbe bekommen
ich habe hier schon mal eine variante probiert aber das funktioniert nicht wirklich... hat jem. einen tipp für mich wie ich die dinger bei draufklicken und drüberfahren einfärbe ohne dass sie sich wieder entfärben, wenn ich wegrolle von dem button?
hier das css funzt auch nicht der link und sein kleiner bacckground wird geändert aber nicht die zelle dahinter!
<style>
.link1 {background: #8A9BB7; font-family: Verdana; font-size: 10px; color: #FFFFFF; text-decoration: none}
.link1:hover {background: #55698A; font-family: Verdana; font-size: 10px; color: #FFFFFF; text-decoration: none}
.link1:active {background: #55698A; font-family: Verdana; font-size: 10px; color: #FFFFFF; text-decoration: none}
.bg1 {background: #8A9BB7}
.bg1:hover {background: #55698A}
.bg1:active {background: #55698A}
</style>
Zuletzt bearbeitet: