Quote:
Originally Posted by DjCeeM
<input type="button" onMouseOver="*farbe*" onMouseDown="*farbe*"...
|
Ähm, nee.. Das sind JavaScript-Eventhandler, keine Farbangaben. Ginge theoretisch auch mit JS, ist aber überflüssig.
Besser im Header folgendes (oder extern als .css-Datei und per <link> verknüpfen):
HTML Code:
<style type="text/css">
.btn:hover { background-color:rgb(255, 0, 0); }
</style>
und im Dokument:
HTML Code:
<input type="button" class="btn" value="Hover me!">