Posted by Dave Kelly on 11/26/14 11:52
I need to do the equivalent of this in HTML.
===========#============
#!/bin/sh
for filename in *.jpg *.gif *.png; ##list all images in directory
do
<img src=images/"${filename}" width="190">
done
============#============
My O'Reilly book has only 1 paragraph on generating random images and
not code examples. I have googled and come up with some php and java
code. I wanted to keep away from that if I could because in the future
when someone else take over admin duties on the club website, they
probably will not know those languages.
This directory is continually having images added. I want something
simple that I can drop into the from page of the website.
Ideally, generate a new image every time the front page is accessed.
EV1 is the host server if that makes any difference.
TIA
Dave
Navigation:
[Reply to this message]
|