Php 正在更改服务器上文件夹的路径
是否可以更改此脚本以将其路径指向文件夹Php 正在更改服务器上文件夹的路径,php,jquery,path,timthumb,waterfall,Php,Jquery,Path,Timthumb,Waterfall,是否可以更改此脚本以将其路径指向文件夹 <script> $('#container').waterfall({ itemCls: 'item', colWidth: 222, gutterWidth: 15, gutterHeight: 15, checkImagesLoaded: false, path: function(page) { return 'data/data1.json?page=' + page;
<script>
$('#container').waterfall({
itemCls: 'item',
colWidth: 222,
gutterWidth: 15,
gutterHeight: 15,
checkImagesLoaded: false,
path: function(page) {
return 'data/data1.json?page=' + page;
}
});
</script>
我已经有一个PHP脚本用于查找服务器文件夹
<?php
$dirname = "photos/home/";
$images = scandir($dirname);
shuffle($images);
$ignore = Array(".", "..");
foreach($images as $curimg){
if(!in_array($curimg, $ignore)) {
echo "<img src='img.php?src=".$dirname.$curimg." ' />\n";
}
}
?>
是否可以在PHP和jquery中组合这两个脚本,或者两者都可以
多谢各位
Erik可能重复的