var xleft=['456','477']; name=0なら456、name=1なら477 ← 画像の移動する位置を設定
var ytop=['93','90']; name=0なら93、name=1なら90

nameを0から読み込み、i=i+1 し、name 1を読み込む
w07.gif document.images[namae].style.left =
document.images[namae].style.top =
w08.gif document.images[namae].style.left =
document.images[namae].style.top =
<img src="w07.gif" name="0" border="1" style="position:absolute;left:600;top:147">
<img src="w08.gif" name="1" border="1" style="position: absolute;left: 650; top:54;">