Bonjour,
J'utilise un morceau de code Javascript pour afficher ou non une partie de ma page web :
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 <script language="JavaScript" type="text/JavaScript"> function Cache_ALL(){ Cache_DIV('default', 'brive','cholet','colombes'); } function Affiche_DIV(){ var Arg = arguments; var Obj; Cache_ALL(); for( var i=0; i< Arg.length; i++){ Obj = document.getElementById( Arg[i]); if( Obj){ Obj.style.display = "block"; } } } function Cache_DIV(){ var Arg = arguments; var Obj; for( var i=0; i< Arg.length; i++){ Obj = document.getElementById( Arg[i]); if( Obj){ Obj.style.display = "none"; } } } </script>
Mon problème est simple : Lorsque je passe la souris au dessus de mes liens (OnClick) je voudrais que la souris prenne la même apparence que lorsque qu'elle survole (OnMouseOver?) un lien, quelqu'un sait-il comment faire?Code:
1
2
3
4
5
6
7
8
9
10 <table style="border:2px solid; border-color:#0088AA; padding:5px; padding-bottom:20px;" width="450px;"> <tr> <td COLSPAN=6 onclick="Affiche_DIV('default');" align="center"><h2> CE </h2></td> </tr> <tr> <td width="140px;" style="border:1px solid; background-color:#5ABDD6;" onclick="Affiche_DIV('brive');" align="center"> Brive </td> <td width="140px;" style="border:1px solid; background-color:#5ABDD6;" onclick="Affiche_DIV('cholet');" align="center"> Cholet </td> <td width="140px;" style="border:1px solid; background-color:#5ABDD6;" onclick="Affiche_DIV('colombes');" align="center"> Colombes </td> </tr> </table>
Merci d'avance,
Foyus