Changement image au passage de la souris HTML

Résolu/Fermé
Utilisateur anonyme - 18 déc. 2011 à 03:12
 Utilisateur anonyme - 18 déc. 2011 à 22:11
Bonsoir,

J'ai fait une page HTML et j'ai utilisé "onmouseover" et "onmouseout" pour que quand on passe la souris sur une image, celle-ci se change en une autre. Mais ça ne marche pas (voir code en gras). Pour voir le résultat, changez les mes images par des votres.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>Ibook - Homepage</title>
</head>

<body style="background-color:#98cdf4">
<div>
<center> <table width=100% height=100% border=0>
<td align=center>
<table border="0">
<tr>
<td>
<table border="0">
<tr>
<td>
<img src="../../Pictures/Ibook/whatsibook.png" width="530" height="530">
</td>
</tr>
</table>
<td>
<table border="0">
<tr>
<td>
<img src="../../Pictures/Ibook/login.png" width="260" height="260" alt="" border="0"
onmouseover=this.src="C:\Users\Dvorak\Pictures\Ibook\login2.png"
onmouseout=this.src="C:\Users\Dvorak\Pictures\Ibook\login.png">

</td>
</tr>
</table>
<table border="0">
<tr>
<td>
<a href="lien"><img src="../../Pictures/Ibook/signup.png" width="260" height="260" alt="" border="0"></a>
</td>
</tr>
</table>
</td>
</td>
</tr>
</table>
</td>
</center>
</div>
<hr />
</body>
</html>






Merci d'avance !
A voir également:

4 réponses

zatlags Messages postés 261 Date d'inscription jeudi 23 avril 2009 Statut Membre Dernière intervention 28 décembre 2011 59
18 déc. 2011 à 03:19
les deux fonsction que tu à ajouter me semble etre du javascript
0
Utilisateur anonyme
18 déc. 2011 à 20:39
Et que dois-je faire pour que ça marche ?
0
maka54 Messages postés 699 Date d'inscription mercredi 8 avril 2009 Statut Membre Dernière intervention 4 décembre 2016 80
Modifié par maka54 le 18/12/2011 à 13:33
<img src="../../Pictures/Ibook/login.png" width="260" height="260" alt="" border="0"  
onmouseover=this.src="../../Pictures/Ibook/login2.png"  
onmouseout=this.src="../../Pictures/Ibook/login.png">
0
Utilisateur anonyme
18 déc. 2011 à 22:02
Merci beaucoup maka54, ça marche !

+10 :)
0