Hi
Ik wil op me site dat als het 6u is dat het een ochtend background heeft
En om 12 uur een zonnige background heeft
Enzo verder
Ik vraag me af of deze code geschikt is?Tips zijn altijd welkom!
Ik wil op me site dat als het 6u is dat het een ochtend background heeft
En om 12 uur een zonnige background heeft
Enzo verder
Ik vraag me af of deze code geschikt is?
Spoiler tonen
[COLOR= #0000BB]<?PHP
$tijd[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"G"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$tijd[/COLOR] [COLOR= #007700]<[/COLOR] [COLOR= #0000BB]6[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<body BGCOLOR=#000000 bgproperties=fixed style=background-repeat: repeat-x; background-position: bottom left; topmargin=30 leftmargin=0 rightmargin=0 bottommargin=0 marginwidth=0 marginheight=0 background=donker.png>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$tijd[/COLOR] [COLOR= #007700]<[/COLOR] [COLOR= #0000BB]12[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<body BGCOLOR=#0766cc bgproperties=fixed style=background-repeat: repeat-x; background-position: bottom left; topmargin=30 leftmargin=0 rightmargin=0 bottommargin=0 marginwidth=0 marginheight=0 background=middag.png>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$tijd[/COLOR] [COLOR= #007700]<[/COLOR] [COLOR= #0000BB]20[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<body BGCOLOR=#0766cc bgproperties=fixed style=background-repeat: repeat-x; background-position: bottom left; topmargin=30 leftmargin=0 rightmargin=0 bottommargin=0 marginwidth=0 marginheight=0 background=middag.png>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<body BGCOLOR=#000000 bgproperties=fixed style=background-repeat: repeat-x; background-position: bottom left; topmargin=30 leftmargin=0 rightmargin=0 bottommargin=0 marginwidth=0 marginheight=0 background=zononder.png>"[/COLOR][COLOR= #007700];
}[/COLOR]
?>
