Ik heb een fotoscript gevonden met navigatie, maar als ik op volgende klik, dan blijft hij op dezelfde pagina... Hij vernieuwd wel, maar hij blijft op dezelfde pagina.... Wat is er fout:
Dizzz het script:
Ik heb voor de zekerheid maar het hele script gepost.
Dizzz het script:
code:
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
| ik heb nu het navigatie ding eindelijk goed gekregen, alleen nu gaat hij niet naar de volgende pagina, maar blijft hij op dezelfde :S
<?
// Configuratie
$woord="fotofun"; // naam vd php file
$path = "fotofun"; // dir waar foto's in staan
// Configuratie
$clm = "5"; // Aantal kolommen
$rows = "5"; // aantal rijen
$t_w = "105";
$t_h = "100";
?>
<div align="center"><font face='Arial, Helvetica, sans-serif' size='4' align='center'>
<?
$min = (1+($page * 25));
$max = (($page +1) * 25);
$number = $clm * $rows;
$break = (($page * 25) + $clm);
echo "<table border=0 cellpadding=0 cellspacing=0><tr>";
$d = dir("$path");
$count = -1;
while($entry=$d->read()) {
if (($count >= $min) AND ($count <= $max)){
if(eregi(".jpg|.jpeg|.gif|.bmp|.png", $entry)){
ClearStatCache();
$size = GetImageSize("$path/$entry");
$size[0] = $size[0] + 20;
$size[1] = $size[1] + 25;
$file_size=fileSize("$path/$entry");
$file_size = round($file_size / 1000) . "k";
echo ("<td><a href=\"#\" onmouseover=\"window.status='Vergroten';return true;\"
onmouseout=\"window.status=''; return true\"
onclick=\"window.open('$path/$entry','pix$count','width=$size[0],height=$size[1],innerwidth=$size[0],innerheight=$size[1],directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,top=0,left=0,leftmargin=0,topmargin=0,marginwidth=0,marginheight=0,screenX=0,screenY=0');return false\"><img src=$path/");
echo $entry." border=0 alt=$count width=$t_w height=$t_h></a> </td>\n"; //
}
if ($count == $break){
echo "</tr>\n<tr>\n";
$break = $count + $clm ;
}
}
$count++;
}
$d->close();
echo "</tr></table>";
$pages = ($count / 25);
$pageplus = ($page + 1);
$pagemin = ($page - 1);
if (($page + 1) < $pages){
echo "<a href=index.php?pagina=$woord&page=$pageplus>Volgende 25 >></a>";
}
if (($page+1) > "1"){
echo "<a href=index.php?pagina=$woord&pagemin><< Vorige 25</a>";
}
?>
</font> </div>
</body>
</html> |
Ik heb voor de zekerheid maar het hele script gepost.