Hallo,
Ich habe eine Karte wo jedes Feld eine Koordinate hat(z.B 1:1)
	
Ich möchte nun das man "blättern" kann. Es gibt ja nicht nur die Felder 1:1 - 10:10 sondern es soll bis 100:100 gehen. Jetzt sollte man nach vorwärts oder rückwärts blättern. Wie mache ich das genau?
Danke im Vorraus
Gruß
Westbär
					Ich habe eine Karte wo jedes Feld eine Koordinate hat(z.B 1:1)
PHP-Code:
	
	
<?php
      $x = '';
      $y = '';
      $x3='5'; 
      $y3='5'; 
     
      for ($y = 0; $y <= 10; $y++) {
         if ($y != 0)
         echo "<tr><td>$y</td>";
         else echo "<tr><td></td>";
     
         for ($x = 1; $x <= 10; $x++) {
        if ($y == 0) echo "<td><strong>".$x."</strong></td>";
        if ($y > 0) {
            
            if($x3 == $x AND $y3 == $y) {
            echo "<td><img src=\"dorf.jpg\" 
onmouseover=\"karte('".$x."', '".$y."', 'xXxLand', 'LowFighter');\" 
onmouseover=\"karte('','','','');\"></td>";
            } else {
            $zuf='wiese.jpg';
            echo "<td><img src=\"".$zuf."\" 
onmouseover=\"karte('".$x."', '".$y."', 'Wiese', 'Noch Frei')\" 
onmouseout=\"karte('', '', '', '')\"></td>";     
            }
        }   
        
         }
         
         echo "</tr>";
      }
      ?>
Danke im Vorraus
Gruß
Westbär
          
 Moderator
Kommentar