Random Images ~ by Sunny
Usually, people use Javascript to randomly display images. It costs lots of typing and further management.
This time, I used PHP to achieve this goal. It is very simple.
Look at the following image, and try to refresh the page (press F5). See the differences?!
The code is very simple.
<img src="http://sunnyspeed.com/bbs/random/?list=http://sunnyspeed.com/bbs/random/image_list.txt" />
The red part is where you need to change. It is a txt file, and contains all the images' URL.
The screenshot of my image_list.txt, so each image's URL takes up a line. Then you upload this txt file somewhere on the internet. Done! Feel free to use with my code.
![]()