・準備した画像要素は 50組 (hato[0]〜hato[49])
・実際の画像枚数 0.jpg〜9.jpg 10枚 (hato[0]〜hato[9])
・hato[10]以降のsrcはありません。
・hato[10]読み込み時失敗,関数 error7 が実行され i=0 先頭の要素に戻ります。