I’ve been playing with the iFrame action and what would be really
cool is if there was a way to combine the iFrame action with the
Random Image action. I’d like to be able to randomly choose different
content for the iFrame.
You can do this in PHP, very simply. Change the page name of your
iframe page to end in .php. In the Page > HTML Markup dialog, move to
the Before HTML section (picker at the bottom-left of the dialog) and
enter the following:
Obviously, change that array to be the pages you want to choose at
random. Each element except the last has a comma after it, so if you
were to write it all out in one line, it would be like this: (one,
two, three).
Now, back in your iframe action, simply enter this in the Address field:
<?=$src?>
And now when you view this from a PHP web server, one of the pages
will be chosen at random.
Walter
On Apr 2, 2008, at 5:48 PM, Joe Sporleder wrote:
I’ve been playing with the iFrame action and what would be really
cool is if there was a way to combine the iFrame action with the
Random Image action. I’d like to be able to randomly choose different
content for the iFrame.