Help - Search - Members - Calendar
Full Version: Updating Scroll bar
HTMLHelp Forums > Web Authoring > Graphics, Flash and Multimedia
Sparky_Chr
I am trying to make a scrolling window that will display archived image files in a folder as text and when the user clicks on the image it displays the image a window next to it.
The problem I am having is I can't figure out out to set up a scrolling window that displays files in a folder that updates the list when new files are added.
Does any one know of good reference material to help me on this? I have looked online for months now, I am not even sure how to search for what I'm looking to do.
Thanks
Christian J
QUOTE(Sparky_Chr @ Jul 6 2017, 04:11 PM) *

that displays files in a folder that updates the list when new files are added.

This part requires a server-side script like PHP. Then the script reads the folder contents every time a browser requests the page.

But I don't know what a "scrolling window" means in this context. Do you mean a scrollable part of a page?
Sparky_Chr
QUOTE(Christian J @ Jul 6 2017, 11:54 AM) *

QUOTE(Sparky_Chr @ Jul 6 2017, 04:11 PM) *

that displays files in a folder that updates the list when new files are added.

This part requires a server-side script like PHP. Then the script reads the folder contents every time a browser requests the page.

But I don't know what a "scrolling window" means in this context. Do you mean a scrollable part of a page?



Yea like a folder view that will let you scroll through the files.
I figured it would be PHP, but I'm just looking for some reference material to to do the up date and still allow me to call the file when clicked on.

Click to view attachment
Christian J
http://php.net/manual/en/function.scandir.php might be used to get an array of the directory contents. Then you can loop through the array and print out HTML links for array items that are image file names.

No updating of the list is necessary, since the PHP script runs every time a site visitors requests the web page.

The scrollbar might be done with the CSS overflow property.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.