ERLEDIGT
NEIN
NEIN
ANTWORTEN
0
0
ZUGRIFFE
440
440
EMPFEHLEN
-
also folgendes problem, ich habe ein script was es mir ermöglicht ohne aufwand meine bilder auf die website zu bekommen. wenn ich ein bild in einen ordner hochlade wird es gleich auf der bildseite mit vorschau angezeigt. jetzt ist mein problem, das ich gern nach 4 angezeigten bildern umbrechen will d.h. die nächsten 4 bilder in die nächste zeile. das script sieht folgendermaßen aus:
<?
function listFiles($dir , $type="all")
{
$x = 0;
if(is_dir($dir))
{
$thisdir = dir($dir);
while($entry=$thisdir->read())
{
if(($entry!='.')&&($entry!='..'))
{
if ($type == "all")
{
$result[$x] = $entry;
$x++;
next;
}
$isFile = is_file("$dir$entry");
$isDir = is_dir("$dir$entry");
if (($type == "files") && ($isFile))
{
$result[$x] = $entry;
$x++;
next;
}
if (($type == "dir") && ($isDir))
{
$result[$x] = $entry;
$x++;
next;
}
$temp = explode(".", $entry);
if (($type == "noext") && (strlen($temp[count($temp) - 1]) == 0))
{
$result[$x] = $entry;
$x++;
next;
}
if (($isFile) && (strtolower($type) == strtolower($temp[count($temp) - 1])))
{
$result[$x] = $entry;
$x++;
next;
}
}
}
}
return $result;
}
$array = listFiles("/www/einsweb/_md/deesigns.de/temp/random.01/big.01/", $type);
foreach ($array as $key => $value)
{
$value2 = str_replace(".jpg","",$value);
echo "<td><a href=\"../random.01/big.01/$value\" target=\"_blank\"><img src=\"img.php?id=$value\" alt=\"$value\" style=\"border:1 solid #000000; filter:alpha(opacity=50);\" onmouseover=\"nereidFade(this,100,30,5); show('$value2')\" onmouseout=\"nereidFade(this,50,50,5); showdummy()\"></a><br /><br /></a></td>\n";
}
?>
normalerweise sollte das ja kein problem sein aber ich stehe vor lauter php schon auf dem schlauch. wäre nett wenn mir jemand weiterhelfen könnte!
ps: das original-script ist von billy (bitron.ch)deesign oder nicht deesign. das ist hier die frage!
Ähnliche Themen
-
Umbruch nach 3 Ausgaben
Von rollerueckwaerts im Forum PHPAntworten: 2Letzter Beitrag: 29.06.09, 18:16 -
Bilder-Umbruch nach 5 Elementen + PHP
Von mkoeni1 im Forum PHPAntworten: 2Letzter Beitrag: 13.11.07, 10:42 -
Umbruch in Satz nach xy Zeichen
Von campari im Forum PHPAntworten: 2Letzter Beitrag: 29.01.07, 13:40 -
worwrap? Nach x Zeichen Umbruch?
Von markberg im Forum PHPAntworten: 4Letzter Beitrag: 30.08.05, 16:47 -
Umbruch nach 3 Spalten :)
Von indylein im Forum PHPAntworten: 1Letzter Beitrag: 17.03.05, 15:16





Zitieren
Login






[PHP] [Codeschnipsel] ImageColor aus HTML-Farbcodierung erstellen