adding pics/showing thumbs
Posted: Sat Mar 26, 2011 5:55 pm
I have a page with thumbnails like so (when you click on a thumbnail a larger picture appears):
http://www.mikeglaz.com/wujek/about.php
I have JavaScript code to accomplish that:
http://www.mikeglaz.com/wujek/images.js
Now what I want to be able to do is for the user of the website to upload an image and then have it automatically appear as a thumbnail (that's not a problem). What I'm stuck on is how to generate the JavaScript code so that the new image names are appended to the 'images.js' file. Should I just use PHP to actually write out the entire JavaScript file?
mike
http://www.mikeglaz.com/wujek/about.php
I have JavaScript code to accomplish that:
http://www.mikeglaz.com/wujek/images.js
Now what I want to be able to do is for the user of the website to upload an image and then have it automatically appear as a thumbnail (that's not a problem). What I'm stuck on is how to generate the JavaScript code so that the new image names are appended to the 'images.js' file. Should I just use PHP to actually write out the entire JavaScript file?
mike