Menu
im trying to defy as much as pictures that in my gallery folder on my server
and echo it in jquery function so a gallery slider could show it.. i guess its not possiable or im doing it wrong because its not working..
i searched the web and noticed that maybe im not doing by the right order..
i need help please ?
[CODE]jQuery(function($){
$.comp({
slides : [ // Slideshow Images
<?PHP
$dirname = “./gallery/”;
$images = scandir($dirname);
foreach($images as $curimg){
echo “{image : ‘./gallery/$curimg’, title : ”, thumb : ”, url : ”},”;
};
?>
]
});
});