E' possibile usare questa tecnica anche per le immagini che cambiano in hover?Originariamente inviato da crinzy
certo che si può![]()
ecco il codice:
-------------------------------------------------
<html>
<head>
<title></title>
<style type="text/css">
div {width:200px; height;100px; margin:20px;}
.red {background-color:Red;}
.green {background-color:Green;}
</style>
</head>
<body>
<div id="ciao" class="red" onmouseover="hola.className='green'" onmouseout="hola.className='red'">Ciao</div>
<div id="hola" class="red" onmouseover="ciao.className='green'" onmouseout="ciao.className='red'">Hola</div>
</body>
</html>