<html>
<head>
<title>Название</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="style/style.css" type="text/css">
</head>
<body>
<canvas weight="500" height="250" id='slaider'>
<script type="text/javascript">
var sd,wright,img,image,ImgNum,ImgNow;
ImgNum=5;
ImgNow=0;
var sd = document.getElementById('slaider');
if (sd.getContext){
var wright = sd.getContext('2d');
var img = new Array(1);
var image = new Image();
for (var i=0;i<ImgNum;i++){
image.src='img/img'+(i+1).toString()+'.png';
img.push(image);
}
}
img[1].onload = function(){
sd.drawImage(img[1],0,0);
}
</script>
</canvas>
</body>
</html>
ошибка в sd.drawImage(img[1],0,0); (38 строка)