I’m looking to make a webpage that will show a random web site (within the current web page) and only show it for 15 seconds then show another page, etc. I would like the web page to get the list of web sites to show from a MySQL database.
I’m not sure if this is possible to do in PHP because I know you can use iframes in Javascript, but if it’s possible I’d like to do it in PHP. If anyone could point me in the right direction or write a little bit of code it would be greatly appreciated.
Add this to your HTML
head:Then, you can serve that page with a different iframe every time.
Here’s an example: