Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   Misc

   Amazon

   Links

    


Day of week color

 

 

This example will display a different background color for each day of the week

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<?php
$today = date("w");
$bgcolor = array(
"red", "blue", "green", "yellow",
"purple", "brown", "orange"
);
?>
<body bgcolor="<?print("$bgcolor[$today]");?>">

</body>
</html>

 


 

 



 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Glowing text in Internet Explorer(Javascript)
Upper or Lower case(ASP)
App.Path example(VB)
display the IP address using WMI(VB)
random circles(Darkbasic)
Get stock quotes(PHP)
Replace a word(ASP)
Domain name to IP address(PHP)

    




Copyright © 2004 by programmershelp.co.uk