Jump to content

Rotate HTML content slideshow


345dfg

Recommended Posts

Hi guys,

 

I happen to be clueless about PHP.

 

I want to create a section on my website that rotates content (like a slideshow). It should be able to rotate any type of html content (images and text). An example of a site that does something similar is: http://www.fordgt.org.

 

However, I'm NOT looking for javascript code.

 

If possible, I should be able to set the amount of seconds each html area appears.

 

People who visit the website use both IE and Firefox.

 

I have searched online with queries like php rotator, php content rotator, php slideshow etc but I haven't been able to find something that looks easy enough to implement.  :shrug:

 

Could someone point me in the right direction, please?

 

Thanks,

 

George

Link to comment
Share on other sites

Because PHP is a server-side language, all it can do is serve a single piece of content.  Once the client's browser has been sent the data, PHP no longer plays a role in what happens... basically meaning a timer in PHP (such as usleep) would only stop the server from processing scripts until the end of the counter and then resumes, which would only cause a delay on the browser receiving the HTML page.

 

For your requirements, you would need something working on the client-side to control the rotation between the different content.

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.