View Full Version : Random Image
arttron
08-05-2006, 08:52 PM
I basiclly need pointed to a script that'll display a random image. This would be an easy task, however there are limitations.
Can not be displayed with a .php, .pl, etc extension, must be .gif/.jpg/.png
The page the random image is displayed on can't have anything but HTML and CSS
I was also hoping that a link can be generated depending on the image, but I know this is probably not possible when only HTML can be used on the site.
randomimage.net is a good example of what kind of thing I'm looking for. Their service is just too slow for me.
KevinADC
08-05-2006, 09:54 PM
I don't understand this requirement:
Can not be displayed with a .php, .pl, etc extension, must be .gif/.jpg/.png
and are you looking for a random image or an image rotator like the site you referenced?
arttron
08-06-2006, 03:05 AM
I'm looking for a script that is exactly like the link I provided.
As for the extension requirment, a lot of rotator scripts provide you with a .php extension to embed the random image. For my purpose, it needs to be just a normal image extension.
KevinADC
08-06-2006, 04:02 AM
My only suggestion is to look on script archive sites like www.hotscripts.com
arttron
08-07-2006, 11:54 PM
I've searched that site and I've searched google. I can't find anything but it obviously is out there. I really just need someone to point me in the correct direction.
FishMonger
08-08-2006, 12:19 AM
It can not be done with just HTML and CSS. You need to use either a server side script (php, perl, asp, etc) or client side scripting (ie javascript), or a combination of both.
arttron
08-08-2006, 08:04 PM
Which is why I posted in th perl/cgi section. I know it can't be done with html or css.
FishMonger
08-08-2006, 08:31 PM
Your description of the limitations is a little confusing and vague. You want a script, but its ext "must be .gif/.jpg/.png".
I'm looking for a script that is exactly like the link I provided.The link you provided points to a company that provides an image rotation service. I didn't see anywhere where they posted their script that you want to duplicate. Their home page uses javascript for the rotation, which you said you can't or don't want to use.
Here's a perl module that will randomly select an image from a specified directory.
http://search.cpan.org/~tbone/Image-Random-0.04/lib/Image/Random.pm
here's another
http://search.cpan.org/~bigj/File-Random-0.17/Random.pm
arttron
08-08-2006, 08:40 PM
http://randomimage.net/rotations/11355.jpg
Above is what I want.
The URL to the image is http://randomimage.net/rotations/11355.jpg
It ends in a .jpg extension and displays a random image each time you refresh.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.