|
Posted by Jonathan N. Little on 11/26/38 11:52
Toby Inkster wrote:
> Jonathan N. Little wrote:
>
>>> for filename in *.jpg *.gif *.png; ##list all images in directory
>>> do
>>> <img src=images/"${filename}" width="190">
>>> done
>> Sorry, no can do. HTML is only markup not scripting, to do what you wish
>> *requires* a script either server-side (best) PHP, Perl, Python, ASP,
>> ColdFusion, ... or client-side (not-so-good) JavaScript.
>
> Client-side Javascript won't do -- it has no way of reading the contents
> of a directory on the server.
>
Yes, you would have to manually make the list, I focused on the 'select
image at random' part and overlooked the 'list all images in directory'
part.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|