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
https://forums.phpfreaks.com/topic/208509-rotate-html-content-slideshow/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.