Skip to content

Commit 4daa944

Browse files
committed
added ajax auto load at the end of the document scroll
1 parent a287dff commit 4daa944

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+358
-0
lines changed

ajax_load_on_endwindow/getImages.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
<?php
3+
4+
$dir = "thumb";
5+
if(is_dir($dir)){
6+
if($dd = opendir($dir)){
7+
while (($f = readdir($dd)) !== false)
8+
if($f != "." && $f != "..")
9+
$files[] = $f;
10+
closedir($dd);
11+
}
12+
13+
14+
$n = $_GET["n"];
15+
$response = "";
16+
for($i = $n; $i<$n+9; $i++){
17+
$response = $response.$files[$i%count($files)].';';
18+
}
19+
echo $response;
20+
}
21+
?>
16.9 KB

ajax_load_on_endwindow/img/Bw.jpg

7.67 KB
16.4 KB

ajax_load_on_endwindow/img/Camera.jpg

14.1 KB
24.4 KB

ajax_load_on_endwindow/img/Earth.jpg

27.5 KB
29.6 KB
15.1 KB
21.3 KB

0 commit comments

Comments
 (0)