| 
 [עזרה] שינוי כיוון בתזוזה
 http://www.planetnana.co.il/yoni_hatav/move/
כנסו לדף תזיזו עם החצים, עכשיו זה זז מימין לשמאל ומשמאל לימין 
אני רוצה שיהיה מלמעלה למטה ומלמטה למעלה
 
הנה הקוד של הדף שיהיה לכם לכל מקרה:
 
	HTML קוד: 
 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
 <head>
 <script language="javascript" type="text/javascript">
 var doMove = false;
 function startMoveLeft()
 {
 newm*****ollLeft = newm*****ollLeft - 5;
 if (doMove)
 setTimeout("startMoveLeft()",10);
 }
 function moveLeft(amount)
 {
 doMove = true;
 startMoveLeft();
 }
 function stopMoveLeft()
 {
 doMove = false;
 }
 function startMoveRight()
 {
 newm*****ollLeft = newm*****ollLeft + 5;
 if (doMove)
 setTimeout("startMoveRight()",10);
 }
 function moveRight(amount)
 {
 doMove = true;
 startMoveRight();
 }
 function stopMoveRight()
 {
 doMove = false;
 }
 </script>
 </head>
 <body leftmargin="0" topmargin="200" marginwidth="0" marginheight="0" bgcolor="#F4F5F8">
 
 <table width="500" align="center">
 <tr>
 <td><img onMouseDown='moveRight();' onMouseUp='stopMoveRight();' src="01.gif"></td>
 <td>
 <div dir="ltr" id="newm" style="width: 100%; height: 80; overflow-x: hidden; overflow-y: hidden;">
 <table width="100%" dir="ltr" align="left" border="0" ><tr>
 <td>
 <img src="03.gif" ></a>
 </td>
 <td>
 <img src="04.gif" ></a>
 </td>
 <td>
 <img src="05.gif" ></a>
 </td>
 <td>
 <img src="06.gif" ></a>
 </td>
 <td>
 <img src="07.gif" ></a>
 </td>
 <td>
 <img src="08.gif" ></a>
 </td>
 <td>
 <img src="09.gif" ></a>
 </td>
 <td>
 <img src="10.gif" ></a>
 </td>
 </tr></table></div></td>
 <td width="29"><img onMouseDown='moveLeft();' onMouseUp='stopMoveLeft();' src="02.gif"></td>
 </tr></table>
 </td></tr></table>
 
 
 
 
 </BODY>
 </HTML>
 מקווה שתוכלו לעזור לי. 
תודה מראש, יוני חטב ! |