Any scripts to show random blocks of html on a site?
Question by Nut Ball: Any scripts to show random blocks of html on a site?
Say you want to show random videos on your site. Something like a random photo gallery. Are there scripts for this?
Best answer:
Answer by Jeanray
I doubt you will find that kind of script: it is too simple! Using Php
Say you want to show random images:
All images are called img###.jpg, where ### = 001 to 999
$ picno = rand(1,999);
$ pic = “img” . sprintf (“%03u”, $ picno) . “.jpg”;
echo (““);
What do you think? Answer below!