Maik: Bildergalerie

Beitrag lesen

Hallo!

Hallo

Hier das Script (Wäre nett, wenn ihr mir's verbessern könntet):

ich versuch's mal...

<?php

// PN ist die Bildnummer (PictureNumber)

if($PN < 1) {
  $PN = 1;
}
elseif($PN < 10) {
  $PN = "0".$PN;
}
// Das brauche ich, weil die Bilder "-01", "-02", usw. enden
if ($PN > 20) {
  $PN = 1;
}
// Weil es nur 20 Bilder gibt

PRINT "<html>

<head>
<title>Fotos</title>

<link rel="stylesheet" type="text/css" href="../CSS/style.css">
<link rel="stylesheet" type="text/css" href="../CSS/txt.css">

<script type="text/javascript" src="../JS/status.js"></script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class=bodycontent>
<table border="0" width=100% height=100% CELLPADDING="0" CELLSPACING="0">
<tr>
  <td colspan="2">

<img src="../PICTURES/c_020/c_0201/c_0201_<?php echo $PN; ?>.gif" border="0">

</td>
</tr>
<tr>
  <td width=50% align="left">
  <a href="../c/c_0201.php" target="_parent" <?php echo $PN+1; ?>>Zurück</a>
  </td>
  <td width=50% align="right">
  <a href="../c/c_0201.php" target="_parent" <?php echo $PN-1; ?>>Weiter</a>
  </td>
</tr>
</table>
</body>
</html>";

?>

Ansonsten könnte das schon funktionieren...

Schöne Grüße,
Maik