rotating images

I have a client that would like to have random different animations when you visit his site.

for example I might go there and see the hummingbirds this time, but next time i see the fireflies.

Is this possible?

these BTW are mark up items.

http://www.grassrootsweb.net/JK

Thank you for your thoughts on this.

looking at this first animation, i have to give a big thank you to David Owens for pointing out the program Hype.

easy, good tech assistance and non flash.

Julie


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

PS I do know that the picture on the second page is large. I am working on reducing that right now.

On Jul 26, 2011, at 5:00 PM, Julie Maxwell Allen wrote:

I have a client that would like to have random different animations when you visit his site.

for example I might go there and see the hummingbirds this time, but next time i see the fireflies.

Is this possible?

these BTW are mark up items.

http://www.grassrootsweb.net/JK

Thank you for your thoughts on this.

looking at this first animation, i have to give a big thank you to David Owens for pointing out the program Hype.

easy, good tech assistance and non flash.

Julie


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

There is an action for that:

Random Image ActionsForge - The Complete Repository of Freeway Actions - always the first place to look!

D


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

OK - I see you don’t actually want images - you want random content of different types.

Thinking…


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

But, cn I do that with mark up items like the one I displayed?

Thanks

On Jul 26, 2011, at 7:49 PM, DeltaDave wrote:

There is an action for that:

Random Image ActionsForge - The Complete Repository of Freeway Actions - always the first place to look!

D


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

yes.

I have made some animations through hype and my client wants me to

have different ones so its random animations when you come to the page/

the code sits in a mark up item

Thank you!!

On Jul 26, 2011, at 7:57 PM, DeltaDave wrote:

OK - I see you don’t actually want images - you want random content of different types.

Thinking…


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

There is an action PHP Random Include which I think that you might be able to use for this.

But your page would need to be a .php and I think that you would need to make your markup items into partials. Essentially your existing markup code saved with a file name of myfilename.inc

But then again - what do I know about PHP?

And besides Walter will have something in his armoury that is ready to fire!

D


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

Here is a little example http://www.deltadesign.co/fbtwit.php

2 Different Menus - refresh the page

D


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

Ok. Cool.

I am unsure of php but would love to hear Walters thoughts and magic on this also…

Sent from my iPhone

On Jul 26, 2011, at 9:12 PM, DeltaDave email@hidden wrote:

Here is a little example http://www.deltadesign.co/fbtwit.php

2 Different Menus - refresh the page

D


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

If you hunt back a few days, I posted some JavaScript to select one of
N URLs at random when a button is pressed. If you have all of the
effects generated and uploaded, and all you have to do is insert one
of them by name, then you could put their names in the array in place
of the URLs, and change the observer from watching the button click to
watching the page load.

Since Protaculous already watches the page load, all you would need to
do is tell the script where it needs to go:

Things to edit to suit your page: effect_one, effect_two, etc – these
would become the names of your Hype exported animations, in a space-
separated list. Use as many of them as you like, only one will load.
yourTargetElement would be the name (in Freeway) of the box where you
are inserting the animation. If you’re doing a full-screen animation,
then the effect would be inserted into ‘PageDiv’. (capitalization is
critical here)

I haven’t tested this, and it’s possible that the script would be
inserted, but wouldn’t be evaluated (run as a program). I’m not sure
if that will work at all, and I don’t have time to experiment with it
today. I suspect that the PHP approach might be safer, because you are
simply creating an HTML file on the server, interpolating a random
element into the rest of the shell of the page, and then the browser
just does what it is supposed to do with a single file, rather than
using JavaScript to load more JavaScript and expecting it to run in
the same context. Might be a bridge too far in that case.

Walter

On Jul 26, 2011, at 10:37 PM, Julie Maxwell Allen wrote:

Ok. Cool.

I am unsure of php but would love to hear Walters thoughts and
magic on this also…

Sent from my iPhone

On Jul 26, 2011, at 9:12 PM, DeltaDave email@hidden wrote:

Here is a little example http://www.deltadesign.co/fbtwit.php

2 Different Menus - refresh the page

D


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


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

thank you.

how would you do it in php.

  • when you have time.
    J
    On Jul 27, 2011, at 10:21 AM, Walter Lee Davis wrote:

If you hunt back a few days, I posted some JavaScript to select one of N URLs at random when a button is pressed. If you have all of the effects generated and uploaded, and all you have to do is insert one of them by name, then you could put their names in the array in place of the URLs, and change the observer from watching the button click to watching the page load.

Since Protaculous already watches the page load, all you would need to do is tell the script where it needs to go:

gist:1109419 · GitHub

Things to edit to suit your page: effect_one, effect_two, etc – these would become the names of your Hype exported animations, in a space-separated list. Use as many of them as you like, only one will load. yourTargetElement would be the name (in Freeway) of the box where you are inserting the animation. If you’re doing a full-screen animation, then the effect would be inserted into ‘PageDiv’. (capitalization is critical here)

I haven’t tested this, and it’s possible that the script would be inserted, but wouldn’t be evaluated (run as a program). I’m not sure if that will work at all, and I don’t have time to experiment with it today. I suspect that the PHP approach might be safer, because you are simply creating an HTML file on the server, interpolating a random element into the rest of the shell of the page, and then the browser just does what it is supposed to do with a single file, rather than using JavaScript to load more JavaScript and expecting it to run in the same context. Might be a bridge too far in that case.

Walter

On Jul 26, 2011, at 10:37 PM, Julie Maxwell Allen wrote:

Ok. Cool.

I am unsure of php but would love to hear Walters thoughts and magic on this also…

Sent from my iPhone

On Jul 26, 2011, at 9:12 PM, DeltaDave email@hidden wrote:

Here is a little example http://www.deltadesign.co/fbtwit.php

2 Different Menus - refresh the page

D


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


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

Dave already posted an example of that, I thought.

Walter

On Jul 27, 2011, at 10:41 AM, Julie Maxwell Allen wrote:

thank you.

how would you do it in php.

  • when you have time.
    J

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

he did but how do you do it.

J
On Jul 26, 2011, at 10:37 PM, Julie Maxwell Allen wrote:

Ok. Cool.

I am unsure of php but would love to hear Walters thoughts and magic on this also…

Sent from my iPhone

On Jul 26, 2011, at 9:12 PM, DeltaDave email@hidden wrote:

Here is a little example http://www.deltadesign.co/fbtwit.php

2 Different Menus - refresh the page

D


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


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

he did but how do you do it.

1 Get the PHP Random Include action http://www.deltadesign.co/downloads/PHP_Random_Include.fwaction.zip

2 Make your page .php

3 Draw an instance of the action on your page

4 Make your markup items into partials. Essentially your existing markup code saved with a file name of myfilename.inc

Open the index.html file that Hype creates on export and copy out the section between the tags

Paste this into a plain text document and give it a meaningful name like animation1.inc

5 Upload these partials to the server - FTP probably best along with the Resources folder that Hype created for you. Put them at the same page level as the page on which these animations will appear.

6 Add the partials paths/names into the action interface ie animation1.inc, animation2.inc

7 Upload and test as you cannot preview locally.

D


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

Thank you! I will work on it when o get home.

J

Sent from my iPhone

On Jul 27, 2011, at 8:10 PM, DeltaDave email@hidden wrote:

he did but how do you do it.

1 Get the PHP Random Include action http://www.deltadesign.co/downloads/PHP_Random_Include.fwaction.zip

2 Make your page .php

3 Draw an instance of the action on your page

4 Make your markup items into partials. Essentially your existing markup code saved with a file name of myfilename.inc

Open the index.html file that Hype creates on export and copy out the section between the tags

Paste this into a plain text document and give it a meaningful name like animation1.inc

5 Upload these partials to the server - FTP probably best along with the Resources folder that Hype created for you. Put them at the same page level as the page on which these animations will appear.

6 Add the partials paths/names into the action interface ie animation1.inc, animation2.inc

7 Upload and test as you cannot preview locally.

D


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