Hi,
Das schönste wäre ja classname.tr:hover,
Also, Andreas mag mich korrigieren, aber das sollte tr.classname:hover heißen.
Ne, mag ich nicht. Da hast Du nämlich recht.
So wie Andreas K. das geschrieben hat, müßte es ja ein
<classname class="tr">
geben, das damit formatiert wird, falls die Maus drauf ist...
<script type="text/javascript">
<!--
function trhover(tr, status) {
(status)?tr.style.backgroundColor="red":tr.style.backgroundColor="transparent";
tr.style.backgroundColor = (status)?"red":"transparent";
//ist kürzer und m.E. schöner ;-)
}
//-->
</script>
cu,
Andreas
--
Der Optimist: Das Glas ist halbvoll. - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/
Der Optimist: Das Glas ist halbvoll. - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/