Bonjour,
Vous trouverez ci-joint mes 2 petits fichiers d'exemples.
Quand le user clic SURVOLE Ligne 1 on passe bien en couleur verte
Par contre quand il clic dessus, la couleur ne reste pas verte mais reviens à son état initiale ....
Une idée ?
Code HTML
<div id="offre"><a href="" onclick="javascript:affiche1(); return false;" >Ligne 1</a></div>
Code CSS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| #offre {
background: transparent none repeat scroll 0% 50%;
list-style-image: none;
text-align: left;
font-size: 12px;
}
#offre a {
background: #f4ebda none repeat scroll 0% 50%;
font-size: 12px;
margin-top: 10px;
text-decoration: none;
display: block;
color: #000000;
margin-left: 10px;
}
#offre a:hover {
background: #056c32 none repeat scroll 0% 50%;
color: #f4ebda;
} |
Thais
Partager