FAQ |
Kalender |
![]() |
#11 | ||
|
|||
Mycket flitig postare
|
Det du gjorde Mcfluff vart nästan rätt
![]() ![]() TUSEN TACK ALLA SOM HJÄLPT TILL ![]() Kod:
<? // Mappen där bilderna ligger $path = "images/gallery/"; $folder ="images/gallery/"; $dir_handle = @opendir($path) or die("Unable to open $path"); while ($file = readdir($dir_handle)) { if($file == "." || $file == ".." || $file == "index.php" ) continue; echo "<a href=\"$folder/$file\" rel=\"lightbox\" class=\"lightbox\"><img src=\"$folder/$file\" border=\"0\" style=\"max-width:120px;margin:5px;\"></a>"; } // Close closedir($dir_handle); ?> |
||
![]() |
![]() |
![]() |
#12 | ||
|
|||
Flitig postare
|
Oj, var lite snabb där. Såklart den inte ska ligga i <a> taggen ;P
|
||
![]() |
![]() |
![]() |
#13 | |||
|
||||
Flitig postare
|
Jag använder..
Kod:
<?php $handle = opendir('../news/'); while (false!==($file = readdir($handle))) { if (strstr($file , "_tb.jpg")) { $retVal[count($retVal)] = $file; } } closedir($handle); foreach ($retVal as $num => $key){ echo "<img src=\"$key\">"; } ?> |
|||
![]() |
![]() |
![]() |
#14 | ||
|
|||
Klarade millennium-buggen
|
Citat:
|
||
![]() |
![]() |
Svara |
|
|