random... list... mess.
Posted: Sun Oct 17, 2004 5:17 pm
okay i have a list of random images and urls right now. it's huge so I put it's source at:
http://kafene.org/randimgsrc.txt
I want to do this:
keep the array for the random images.
Change the if/else business to a corresponding array so that they match up
generate a list of all these images (so that rather than being random, they all just dump into the form <a href="$url"><img src="$img" alt="img" />
OR what I think is easier AND better:
take the contents of an entire directory, make the images named like imagename.com.png and then randomly get one, put it in the form <a href="http://www. $imagename - .png"><img src="$imagename" alt="img" /></a>...
If you can just give an example for either I should be able to work from there.
EDIT:
the directory listing I would want in that format is http://kafene.org/img/ .
i realize i would have to change the filenames.
http://kafene.org/randimgsrc.txt
I want to do this:
keep the array for the random images.
Change the if/else business to a corresponding array so that they match up
generate a list of all these images (so that rather than being random, they all just dump into the form <a href="$url"><img src="$img" alt="img" />
OR what I think is easier AND better:
take the contents of an entire directory, make the images named like imagename.com.png and then randomly get one, put it in the form <a href="http://www. $imagename - .png"><img src="$imagename" alt="img" /></a>...
If you can just give an example for either I should be able to work from there.
EDIT:
the directory listing I would want in that format is http://kafene.org/img/ .
i realize i would have to change the filenames.