Log in

View Full Version : IFRAME and/or Script help



Lyghtzone
11-28-2006, 10:59 AM
I'm designing a website for a bar, and I would like to find a script that would allow pages to change inside of an IFRAME on a time schedule. I'd like to be able to feature the events of a night on one page, run it for 24 hours, and then have the site automatically switch to the next page for the next night's events. . .if you guys follow me on that one. . .thanks for your time, efforts, and consideration.

thetestingsite
11-29-2006, 11:21 PM
You could utilize javascript or any server side language to accomplish this, as far as Javascript goes, I'm not sure how it would be done (as I am just learning Javascript); however, you could utilize PHP for this (depending if the server has PHP enabled). If you were to use PHP, you could utilize the date(); (http://www.php.net/date) function as well as if and elseif statements. If you would like, let me know what it is exactly you would like set up (ie: if the web page in the IFRAME will be created by hand on a day to day basis, or if the events are already in a database, or something to that effect.) and I would not mind helping out a little.

ccrstudioweb
11-30-2006, 07:32 PM
This script is written JavaScript and you can find it easyle on net. Look for "fotos changed by hours java script code) on google.

you will find a code that change the page's foto by hour. The one I found once functions by 24 hours and when finishing it goes to the firt one foto.

But all 24 fotos are inside a folder on server.

You could change the 24 photos diaryrly.

PS: Some codes allow you to change the fotos at each 30 min, 10min, ...

May it halp you?