I have a page in a website and I would like to have a particular graphic item (one containing text) randomly selected from one of a collection of same sized graphic items. That is, if I have say a hundred such graphic items I would like one of them randomly selected each time the page is opened. Can this be done and if so how do I do it?
You can do this for up to 20 images using the Random Image Action,
but I suspect that will break down for you on a number of fronts. For
one, you say you need access to a hundred options, for another, the
Random Image Action puts all of those images into your page, and that
makes the page really unwieldy for you to work with.
If all of your images are exactly the same dimensions, I would use a
PHP image rotator script to do this. You would create a new folder on
your server (using an FTP application) and upload all of your random
images into it. Then on your page, you would change the filename
extension to .php, and add a lump of code to your page that would
look into that folder, pick an image at random, and then write its
code out into your page.
There are hundreds/thousands of examples of this out there on the
GoogleWeb (google: php image rotator), if you want more specific help
on this, I recommend you post a question on the Dynamo list, where
lumps of code flying around are far more common.
Walter
On Apr 19, 2008, at 11:49 AM, James L. Ryan wrote:
I have a page in a website and I would like to have a particular
graphic item (one containing text) randomly selected from one of a
collection of same sized graphic items. That is, if I have say a
hundred such graphic items I would like one of them randomly
selected each time the page is opened. Can this be done and if so
how do I do it?
, although this is limited to 25 random images. I’ve used it on the
home pages at http://www.gordonlow.net/ and <http://www.shrs.org.uk/
. As you say the images all have to be the same size in each
selection.
Best wishes
Gordon
On 19 Apr 2008, at 4:49pm, James L. Ryan wrote:
I have a page in a website and I would like to have a particular
graphic item (one containing text) randomly selected from one of a
collection of same sized graphic items. That is, if I have say a
hundred such graphic items I would like one of them randomly
selected each time the page is opened. Can this be done and if so
how do I do it?
Just where do I find the Random Image action and how do I install it. I’m asking as someone who has never installed an action. I’m using Freeway Pro 5.0.2
The above links to the Random Image 1.02 action are dead as of this writing. You cannot find the action even on ActionsForge now either (only in the Wish List). It’s very odd. I had to Google for it. It’s now located here: