Alternating between two Home Pages
-
Is it possible to have two home pages. I would like to make two, one for during the day and one for at night.
Is there code I can use to alternate the home page every 12hours?
I have used code to swap images:<?php
$hour = date(‘H’); // hour of the day, 24 hour clock
if( $hour >= 06 or $hour < 18)
$img_name = ‘picturejelly.jpg’;
if( $hour >= 18 or $hour < 6)
$img_name = ‘picturesmoke.jpg’;
?>Is there something like this I can use that targets my pages?
Any help would be much appreciated
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Alternating between two Home Pages’ is closed to new replies.