![]() |
In need of a "random image script," that does a bit more..
I've searched through hotscripts.com, but can't seem to find this kind of script.
I'm in need of a PHP, or javascript, random image script that will read all the files in a directory and all directories within that directory for images, then will display a random image upon refresh of the page. I've found scripts that will read all the images within a directory, but I need this to work similar to that of the Windows XP image screensaver, where it also searches through all the folders within that directory for images. Here is a PHP random image script, is there possibly a way to modify it to do what I need here? http://www.hotscripts.com/Detailed/16876.html Or, maybe there is already a script somewhere that does this. Thanks if you can help ;) |
just put this in a php file, you'll know what to do next,won't work on a windows server though
PHP Code:
|
Cool, it works well :p
You can see what I did with it on my homepage, for the "Anime Capture" thingy. Basically in a template where you want the image to precisely show, insert this piece of code: Code:
<script language="javascript" src="randscreen.php"></script> Though, you need to change one line in that script of yours to function with the Javascript. Change: PHP Code:
PHP Code:
Thanks for posting this also Ultimate. ;) |
I get this error message when I try to use that script:
I'm not a Unix guru by any means, so perhaps I'm doing something wrong...but I can't figure out what! PHP Code:
|
Quote:
|
Nice one, any possiblities of having a default image size within this script??
|
that don't work
|
All times are GMT. The time now is 02:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|