Bonjour à tous,
J'ai du me tromper quelque part, car mon image ne s'affiche pas.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<script type="text/javascript">
function affiche(id, b, vue) {
document.getElementById(id).style.display = b ? '' : 'none';
document.getElementById('aff_img').src == 'vue' ? '' : 'block'; }
</script>
</head>
<body bgcolor="#916342">
<IMG border="0" style="cursor: pointer"
onClick="location.replace('xxxxx.php')"
onmouseover="affiche('div_01', true, 'images/menu-03-03-s.gif'); this.src='images/menu-01-s.gif'"
src="images/menu-01.gif" width="160" height="25" align="top">
<div id="div_01" style="position:absolute; top:155px; left:400px; display:none; ">
<table border="0" width="150" id="table1" cellpadding="0" style="border-collapse: collapse">
<tr>
<td>
<IMG id="aff_img" border="3" style="cursor: pointer"
onClick="affiche('div_01',false); "
width="410" height="245" align="top">
</td>
</tr>
</table>
</div>
</body>
</html>
Merci pour vos conseils.
Bonne journée.
Excuse pour le code, mais je débute
Le programme affiche une image, et quand on la survole, j'affiche le DIV avec l'image passée en paramètres dans le Onmouseover.
En théorie, c'est simple !
Merci pour ton aide.