marc,
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
function imgChange(imagePath) {
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
var img=new Image();
img.onload = function(){
ctx.drawImage(img,0,0);
};
img.src=imagePath;
}
</script>
</head>
<body onload="imgChange('https://pp.userapi.com/c633918/v633918277/3ce19/QJAj0GIFXKE.jpg')">
<canvas id="myCanvas" width="200" height="200"
style="border:1px solid #c3c3c3;" onmouseover="imgChange('http://cdn.the-village.ru/auth.look-at-media.com/profile-userpic/ydBwHC0x7Lysk6P_GiT17Q.jpg')" onmouseout="imgChange('https://pp.userapi.com/c633918/v633918277/3ce19/QJAj0GIFXKE.jpg')">
Your browser does not support the canvas element.
</canvas>
</body>
</html>