Change background color using php for a webpage
Change background color using php for a webpage
This is a very simple script that will dynamically change the background color of a webpage using simple php script.Just copy an paste the script below.
//mistonline.in
$today = date("l");
print("$today");
if($today == "Sunday")
{
$bgcolor = "#FEF0C5";
}
elseif($today == "Monday")
{
$bgcolor = "#FFFFFF";
}
elseif($today == "Tuesday")
{
$bgcolor = "#FBFFC4";
}
elseif($today == "Wednesday")
{
$bgcolor = "#FFE0DD";
}
elseif($today == "Thursday")
{
$bgcolor = "#E6EDFF";
}
elseif($today == "Friday")
{
$bgcolor = "#E9FFE6";
}
else
{
// Since it is not any of the days above it must be Saturday
$bgcolor = "#F0F4F1";
}
print("\n");
?>
This just changes the color of the screen based on the day of the week
Incoming search terms:
- w 2668 inurl:/blog/blog cgi?n= (5)
- php web page change background color every day (2)
- how to change php background color (2)
- php script to change background color of the browser (2)
- php code background color best (1)
- php program for change background color of browser day of the week (1)
- php script to change backgroundcolor of browser according to day of week (1)
- PHP Tutorial - Change background color (1)
- 3 create a php form to get user preferences for background and foreground color of a page and save it in a cookie the next time you load the page it should be displayed according to the settings in the cookie 3 create a php form to get user preferences fo (1)
- r 51 /cgi/gbook cgi (1)
- simple script to change color of background of web page (1)
- to change background colors with php (1)
- updating webpage background with php? (1)
- write a php script to change background color of the browser using switch statement according to day of the week (1)
- php change_Color (1)
- php bgcolor pdf (1)
- mvb simple program using check box by changing the color of name and background (1)
- background color change the days of the week using javascript (1)
- change background color of a web page in php (1)
- change background color of page every day in php (1)
- change background color using day and css by php (1)
- change background color with php everyday (1)
- change color and background color in php (1)
- changing colors of webpage in php (1)
- code to change background of a webpage in php (1)
- color of php (1)
- how to change background color of browser according to day of week in php (1)
- how to change the background colour in php (1)
- how to change the color of a web page using php (1)
- write a program that changes background colors in php (1)