Ik heb het volgende script, ergens van een of andere draad ook in dit forum. Ik wil wat toevoegen aan dit script, maar ik kom er zelf niet helemaal uit. Dit script maakt een tabel met thumbnails, en opent een popup mat de voledige foto. Ik wil alleen die volledige foto een link geven.
HELP!!
sorry van het vern**ken van de layout
HELP!!
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| <? // THUMBNAIL DIRECTORY $path = "pics/picthumbs"; // IMAGE DIRECTORY $path2 = "pics/pics"; // TABLE COLUMNS $clm = "3"; // TABLE ROWS $rows = "3"; // THUMBNAIL WIDTH $t_w = "102"; // THUMBNAIL HEIGHT $t_h = "77"; // NO ALTERATION NEEDED FROM THIS POINT // BUT HEY HAVE A BALL $number = $clm * $rows; $count = -1; if(($min=="") AND ($max=="")){$max=$number;$min=1;} if($min=="1"){ $break = $clm;}else{$break = $xdl;} echo "<table border=0 cellpadding=0 cellspacing=0><tr>"; $d = dir("$path"); while($entry=$d->read()) { if($count < $min){$entry="";} elseif($count > $max){$entry="";} if(eregi(".jpg|.jpeg|.gif|.bmp|.png", $entry)): ClearStatCache(); $size = GetImageSize("$path2/$entry"); $file_size=fileSize("$path2/$entry"); $file_size = round($file_size / 1000) . "k"; echo ("<td><a href=\"#\" onmouseover=\"window.status='$entry $size[0]x$size[1]';return true;\" onmouseout=\"window.status=''; return true\" onclick=\"window.open('$path2/$entry','pix$count','width=$size[0],height=$size[1],innerwidth=$size[0],innerheight=$size[1],directories=no,location=no,menubar=no,scrollbars=no,status=yes,toolbar=no,resizable=no,top=10,left=0,screenX=10,screenY=10');return false\">[img]$path/"); [/img]</a>&nbsp;</td>\n"; if ($count == "$break") { echo "</tr>\n<tr>\n"; $break = $count + $clm ; } endif; $count++; } $d->close(); echo "</tr></table>"; ?> |
sorry van het vern**ken van de layout