The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Updating Scroll bar
Sparky_Chr
post Jul 6 2017, 09:11 AM
Post #1





Group: Members
Posts: 2
Joined: 6-July 17
Member No.: 26,455



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post Jul 6 2017, 02:10 PM
Post #2


.
********

Group: WDG Moderators
Posts: 7,631
Joined: 10-August 06
Member No.: 7



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.
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 22nd September 2017 - 03:39 PM