Random Selection of Graphic

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?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi James

Look no further than the Random Image action from <http://www.softpress.com/kb/article.php?id=175

, 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?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Go to

http://softpress.com/kb/article.php?id=175

Download the action then drag it over the Freeway 5 icon.

Freeway 5 will open and tell you that you are about to install actions.

OK it and go.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 19 Apr. 2008, 11:15 pm, DeltaDave wrote:

Go to

http://softpress.com/kb/article.php?id=175

Download the action then drag it over the Freeway 5 icon.

Freeway 5 will open and tell you that you are about to install actions.

OK it and go.

David

Thank you!

It took a bit of figuring things out but now the Random Image is working, working, working…

Many, many thanks!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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:

http://www.softpress.com/kb_old/article.php?id=175

I just tried it with 5.3.1 and the action works fine. So my question is, if it still works, why hide it?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options