I'm trying to learn multiple languages here and I can't seem to get this right. I've searched many sites but haven't found any examples to accomplish this specific task.
On my web server I have a virtual directory that points to a photo repository. I add photos to this folder regularly.
I want the webpage to show the photos in a random order. Also, I don't want to specifically list the photos in the code. I've gotten it working in a basic way with this php code:
<?php
$images = glob("*.jpg");
$imgs = '';
foreach($images as $image){ $imgs[] = "$image"; }
shuffle($imgs);
foreach ($imgs as $img) {
echo "<img src='$img' width=\"100%\" /> ";
}
?>
This code shows all of the pictures in a folder at full width one after another vertically.
What I'd like to do is remake this so that the images slide upward over the previous image while you scroll down.
Then when the image reaches the top of the window it would have a static position and the next image would begin sliding up on top of it.
I can't figure out if this technique is done with php, jquery, css or what?
I'm too ignorant to all of these languages but I'm trying to get the hang of it!
Any help is greatly appreciated.