|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 | |
|
Senior Member
Iscritto dal: Jun 2005
Città: CH
Messaggi: 1058
|
CSS JS HELP
Quote:
come faccio a fare in modo che quando passo con il moouse sopra il td cellaMenu mi si cambi il background-color del cellaMenu2 ?? |
|
|
|
|
|
|
#2 |
|
Messaggi: n/a
|
Codice:
<td class=\"cellaMenu\" onMouseOver=\"this.style.backgroundColor='".$listaColori[$i]."'\" onMouseOut=\"this.style.backgroundColor='#ffffff'\"> ".$listaMenu[$i]." |
|
|
|
#3 | |
|
Senior Member
Iscritto dal: Jun 2005
Città: CH
Messaggi: 1058
|
Quote:
|
|
|
|
|
|
|
#4 | |
|
Senior Member
Iscritto dal: Nov 2005
Città: TO
Messaggi: 5206
|
Quote:
Codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Table Highlight</title>
<script type="text/javascript">
<!--
function setBg (id, background)
{
var obj = document.getElementById (id);
obj.style.background = background;
}
//-->
</script>
</head>
<body>
<table border="1" cellspacing="0" cellpadding="4">
<tr>
<td id="cell1">aaaaaa</td>
<td onmouseover="setBg('cell1','yellow')" onmouseout="setBg('cell1','white')">bbbbbb</td>
</tr>
</table>
</body>
</html>
__________________
Andrea, SCJP 5 (91%) - SCWCD 5 (94%) |
|
|
|
|
|
|
#5 | |
|
Senior Member
Iscritto dal: Jun 2005
Città: CH
Messaggi: 1058
|
Quote:
|
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 20:48.




















