Próbwałem;
.test{ background-color:red; width:100px; height:100px; } .test:hover{ background-color:black; width:100px; height:100px; }
Ale to nie to..
natomiast działa
<a href="www.google.pl">
ale czy to jedyne wyjscie?
.test{ background-color:red; width:100px; height:100px; } .test:hover{ background-color:black; width:100px; height:100px; }
<a href="www.google.pl">
span .cos{ background:url('obrazek.jpg') top left no-repeat; width:100px; height:100px; font: Arial 1px/200px; text-indent:9999px; } span .cos:hover{ background:url('obrazek.jpg') bottom left no-repeat; width:100px; height:100px; }
<a href="#" onMouseOver="return changeImage()" onMouseOut= "return changeImageBack()" >
function changeImage() { document.images["jsbutton"].src= "buyit15u.jpg"; return true; } function changeImageBack() { document.images["jsbutton"].src = "buyit15.jpg"; return true; }