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:
- Find all images on page loads / images / portfolios / thumbs and place them in div 'x'
- Complete all 'data' - "[image file name]" '
- all' width '
- place them within an anchor
< / 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?
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