我有這個PHP代碼誰汽車拇指和安排我的照片庫:加載更多圖片(沒有MySQL的)
<?php
$folder = "../albums/1000/";
$folder3 = "albums/1000/";
$handle = opendir($folder);
$noeffect = "noeffect";
while (false !== ($file = readdir($handle))) {
if (strpos($file, '.png',1)||strpos($file, '.jpg',1)||strpos($file, '.JPG',1)) {
$imgsrc= "../thumbnail.php?file=";
$imgend= "&width=120&height=120";
echo ("
<li><a href=\"".$folder.$file."\" rel=\"".$rel.external."\" class=\"".$noeffect."\">
<img src=\"".$imgsrc.$folder3.$file.$imgend."\" /></a></li> "); }}
?>
它的偉大工程,我喜歡它!但是當我上傳200-300張照片時,需要先加載大拇指,然後才能在畫廊中查看大圖。我想我該如何使加載更多按鈕或加載更多滾動來加載像30張圖片一次.. 我搜索網絡,並嘗試了很多,但大多數使用MySQL,我不知道如何處理它和其他人有問題..任何解決方案?謝謝!
你可以看看這裏例如用於什麼IM做:http://m.eladhamemagnet.net/albums/996.php
BTW其iphone所以這就是爲什麼我需要它加載快
你有這個或插件的任何教程?謝謝! – Elad