• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Problem mit Gallery Script

Status
Für weitere Antworten geschlossen.

Dopamin

Neues Mitglied
[FONT=Verdana, Geneva, Arial, Helvetica, sans-serif]Hi Leute

ich hab mir ein Galleriescript programmiert und habe ein Problem beim Verlinken der Bilder. Und zwar hab ich auf der unteren Seite Thumbnails und wenn man draufklickt wird im iframe das Bild groß angezeigt. Jetzt möchte ich jedoch noch ein Vor und Zurück Button haben, sodass man daraufklicken kann und der dann die weiteren bzw vorherigen Bilder anzeigt.

hier ist mein Quelltext:
[/FONT]
Code:
<html>
<head>
<title>Welcome Veranstaltung</title>
<body>
<p align="center">
<iframe src="inhalt.php" width="800" height="700" frameborder="0"name="bild">
</iframe>
<br><br>
[COLOR=#0000cc]<?php
$ordner          [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#cc0000]"images/thumbnails/"[/COLOR][COLOR=#006600];
[/COLOR][COLOR=#0000cc]$ordner2      [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#cc0000]"images/"[/COLOR][COLOR=#006600];
[/COLOR][COLOR=#0000cc]$verzeichnis  [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#0000cc]opendir[/COLOR][COLOR=#006600]([/COLOR][COLOR=#0000cc]$ordner[/COLOR][COLOR=#006600]);

while ([/COLOR][COLOR=#0000cc]$file [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#0000cc]readdir[/COLOR][COLOR=#006600]([/COLOR][COLOR=#0000cc]$verzeichnis[/COLOR][COLOR=#006600]))
{
[/COLOR][COLOR=#0000cc]$bild [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#cc0000]"$ordner$file"[/COLOR][COLOR=#006600];
[/COLOR][COLOR=#0000cc]$link [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#cc0000]"$ordner2$file"[/COLOR][COLOR=#006600];

if([/COLOR][COLOR=#0000cc]$bild [/COLOR][COLOR=#006600]!= [/COLOR][COLOR=#cc0000]"." [/COLOR][COLOR=#006600]&& [/COLOR][COLOR=#0000cc]$bild [/COLOR][COLOR=#006600]!= [/COLOR][COLOR=#cc0000]".." [/COLOR][COLOR=#006600]&& ![/COLOR][COLOR=#0000cc]is_dir[/COLOR][COLOR=#006600]([/COLOR][COLOR=#0000cc]$bild[/COLOR][COLOR=#006600]) && [/COLOR][COLOR=#0000cc]$bild [/COLOR][COLOR=#006600]!= [/COLOR][COLOR=#cc0000]"thumb.php"[/COLOR][COLOR=#006600])
{
echo [/COLOR][COLOR=#cc0000]"<nobr><a href=$link target=bild><img src=$bild border=0></a></nobr>"[/COLOR][COLOR=#006600];
}
}
[/COLOR][COLOR=#0000cc]closedir[/COLOR][COLOR=#006600]([/COLOR][COLOR=#0000cc]$verzeichnis[/COLOR][COLOR=#006600]);

[/COLOR][COLOR=#0000cc]?>
[/COLOR]</body>
</html>
[FONT=Verdana, Geneva, Arial, Helvetica, sans-serif]
Ich hoffe ihr könnt mir dabei helfen

MfG

Dopamin
[/FONT]
 
Zuletzt bearbeitet:
Status
Für weitere Antworten geschlossen.
Zurück
Oben