Bonjour,

J'ai un menu html "réactif" au niveau Css (survol : changement des images)

Mais il me faudrait au clic la possibilité de géré le traitement par un evenement (car avant de rediriger je doit effectuer des test)

Comment puis-je faire ?
Merci de votre aide.

Code HTML
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
<div id="menu">
		<ul>
		<li><a href="lien1.html" id="agences" title="lien1"><span>lien1</span></a></li>
		<li><a href="lien2.html" id="groupes" title="lien2"><span>lien2</span></a></li>
		<li><a href="lien3.html" id="applications" title="lien3"><span>lien3</span></a></li>
		</ul>
</div>
Code Css
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
 
#menu
{
width:1024px;
background: url(images/PM4_bgTop.png) repeat-x;
height:200px;
margin:0;
padding:0;
}
#menu ul {
	position: absolute;
	top: 7px;
	left: 338px;
	width: 439px;
	height: 51px;
	padding: 0;
	margin:0;
	background: yellow;
	list-style: none;
	background: transparent url(images/PM4_menuBtn.png) top left no-repeat;
}
 
 
#menu li {
	float: left;
	padding: 0;
	margin:0;
	text-indent: 50px;
}
 
#menu li a {
	display: block;
	height: 51px;	
	text-decoration: none;
	font-size: 1px;
	line-height: 51px;
	color: #C6C1A3;
	width: 105px;
}
 
#menu li a span {
	position: absolute;
	left: -5000px;
}
#menu li a:hover {
	background: transparent url(images/PM4_menuBtn.png) top left no-repeat;
}
 
#menu a#agences:hover {
	background-position: 0px -51px;
	color: #6882c3;
 
}
 
#menu a#groupes:hover {
	background-position: -105px -51px;
 
color: #8fab10;
}
 
#menu a#applications:hover {
	background-position: -210px -51px;
	color: #ffc326;
}
Nota : je suis sous VS2005 Sp1 / Vb.net