PDA

View Full Version : rotating banners


gtlanz
04-07-2007, 10:29 PM
Hi i need a banner to rotate every 24 hrs at midnight using JavaScript .Apart from setTimeout at 86400000 and uploading at midnight on multiple pages with deferent banners on each page is there a better way.
.btw i know nothing of Php .or asp
thanks
Geoff

davidj
04-08-2007, 11:15 AM
is this midnight where your server is living or midnight on the user machine

gtlanz
04-08-2007, 12:03 PM
The site is of local interest only ie same time zone .Would the banner not change after a setTimeout of 86400000 milliseconds/24 hrs from the time i uploaded ?

davidj
04-08-2007, 12:15 PM
the best way would be a server side language like php. Client side script like javascript does not have a memory where in php you would incorporate the memory in the form of a database.

your database would hold the uploaded image date~time stamp for calculations

gtlanz
04-09-2007, 08:47 PM
Thanks .....