Jump to content

"Flipping"


TFD3

Recommended Posts

Ok this may sound strange but I was wondering if someone can help me make a php script where two PNG images in the script rotate.

 

For example:

I had two images, image_1.png and image_2.png and I want image_1.png to show up for X amount of seconds then flip to image_2.png and have it show for X amount of seconds then start over again. This can be done with Java Script but for what im needing to use it for there is no way javascript can work.

 

Does anyone have any ideas on how to do this?

 

Thanks guys!!

Link to comment
Share on other sites

This is I believe is not possible in php. However if it was a GIF image you might be able to find some library allowing you to generate an animated GIF image doing what you described. Use JavaScript or animated GIF files.

 

The only thing...GIF images are not supported for what I need :(

I'll give it a try with javascript

Link to comment
Share on other sites

Sounds like your requirements are quite tight.  It is 100% not possible in php, as php runs on the server.  What you want (flipping an image) must be done in the client's browser.

 

The only way I can imagine it could be done without javascript is to have an iframe that constantly refreshes itself, each time refreshing to the other image.  The iframe and the image itself could be set as cacheable, so hopefully the browser would not be making http requests every time.

 

Other than that, javascript, flash, java, activex can all do it on the client side.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.