<HTML>
<HEAD>
<TITLE>Это простейший документ HTML</TITLE>
<SCRIPT laungauge="JavaScript">
<!--
pic=null
dx=0
dy=0
function select() {
if(event.srcElement.tagName == 'IMG') {
pic=event.srcElement
window.status=pic.src
}
}
function move() {
if (pic!=null){
pic.style.left=event.clientX
pic.style.top=event.clientY
event.returnValue=false
}
}
function unselect() {
pic.style.cursor=' ';
pic=null
endgame();
}
function endgame() {
for(i=1;i<=1;i++) {
delta =parseInt(document.images[i].style.left) -parseInt(document.images[i-1].style.left)
document.title = deltax;
if(delta > 80 && delta<120) alert("Ура");
}
}
//-->
</SCRIPT>
</HEAD>
<BODY bgcolor="grey" onmousedown="select()" onmousemove="move()" onmouseup="unselect()">
<SCRIPT laungauge="JavaScript">
<!--
//-->
</SCRIPT>
<img src="images/sp_01.jpg" style="position:absolute;left=100px;top=0;z-index=0">
<img src="images/sp_02.jpg" style="position:absolute;left=500px;top=0;z-index=0">
<center><table border="1" bgcolor="#bbbbbb" width="635" height=424 cellpacing="10" cellpadding="10">
<tr>
<th>   </th>
<th>   </th>
<th>   </th>
<th>   </th>
<th>   </th>
<th>   </th>
</tr>
<tr>
<td>   </td>
<td>   </td>
<td>   </td>
<td>   </td>
<td>   </td>
<td>   </td>
</tr>
<tr>
<td>   </td>
<td>   </td>
<td>   </td>
<td>   </td>
<td>   </td>
<td>   </td>
</tr>
<tr>
<td>   </td>
<td>   </td>
<td>   </td>
<td>   </td>
<td>   </td>
<td>   </td>
</tr>
</BODY>
</HTML>
Помогите дописать пазл Drag'n'Drob пожалуйста!