Saturday, 15 June 2013

jquery - Automate fetching images from folders and place them in html file on load -


I am creating a new website for a photographer who has large portfolios and updates it frequently I load images I want to automate the process of adding HTML files to, so I do not need to manually add images to the HTML file.

In pseudo code:

  1. Find all images on page loads / images / portfolios / thumbs and place them in div 'x'
  2. Complete all 'data' - "[image file name]" '
  3. all' width '
  4. place them within an anchor
  5. < / Ol>

will show all this thumbs and I am using a special lightbox plugin which will show the bigger version on click (which requires data attributes) Is there.

First of all: Is it worth achieving? And secondly: does it reduce web performance instead of writing all images in HFML file?

"post-text" itemprop = "text">

Javascript will not allow user to access direct access to files on your hard disk, try adding the Apache server and your Add the name of the pictures to a MySQL data base, so you can easily make dynamic calls using php scripts for your images


No comments:

Post a Comment