Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Enregistrer le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <body> <img onmousemove="bigImg(this)" onmouseout="normalImg(this)" border="0" src="smiley.gif" alt="Smiley" width="32" height="32"> <p>La fonction bigImg() est déclenchée lorsque le pointeur de la souris de l'utilisateur est déplacé sur l'image. Cette fonction agrandit l'image.</p> <p>La fonction normalImg() est déclenchée lorsque le pointeur de la souris est déplacé en dehors de l'image. Cette fonction remet la hauteur et la largeur de l'image à la normale.</p> <script> function bigImg(x) { x.style.height = "64px"; x.style.width = "64px"; } function normalImg(x) { x.style.height = "32px"; x.style.width = "32px"; } </script> </body> </html>