pourquoi l'image ne disparaît pas sur onmouseout ?
Bonsoir,
je n'arrive pas à faire marcher ce code :
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
| <head>
...
<script type="text/javascript">
//-----------------------
function see_bubble(img_){
var Obj = document.getElementById('infobulle');
Obj.innerHTML = "<img src='" +img_ +"' alt='" +img_ +"' width=100>";
Obj.style.display = "block";
}
//--------------------
function kill_bubble(){
var Obj = document.getElementById('infobulle');
Obj.innerHTML = "";
Obj.style.display = "none";
}
</script>
</head>
<body>
<div id="infobulle">
<a href="---.jpg"
onmouseover="see_bubble("---.jpg');"
onmouseout="kill_bubble()" onclick="kill_bubble()">texte</a><br>
</div>
</body> |
Pourquoi ?