I have a file called "list.txt" that has a directory listed off all the images in that directory.
How can I use this file in a javascript to show a picture from the list at random?
I have this list of images so I can have the script choose one of the images at random to be displayed on the web page reload.
---
I'm trying to do a script like LongHorn Bar and trying to figure ways to do this via my other posts here on Neowin and this seems like a sure fire way I hope only if I can get it to work.
Question
nicedreams
I have a file called "list.txt" that has a directory listed off all the images in that directory.
How can I use this file in a javascript to show a picture from the list at random?
I have this list of images so I can have the script choose one of the images at random to be displayed on the web page reload.
---
I'm trying to do a script like LongHorn Bar and trying to figure ways to do this via my other posts here on Neowin and this seems like a sure fire way I hope only if I can get it to work.
Here is what I'm trying to do:
https://www.neowin.net/forum/index.php?act=...ST&f=34&t=70241
Link to comment
Share on other sites
4 answers to this question
Recommended Posts