Javascripts > Javascript Forms > Colours
Script Title: Colours
Description: It changes your background colour every day
Example: No example available for this script.
Copy the following code between the <BODY></BODY> tags of your html page.<script> <!-- var mydate=new Date() var today=mydate.getDay() if (today==1) document.write('<body bgcolor="red">') else if (today==2) document.write('<body bgcolor="blue">') else if (today==3) document.write('<body bgcolor="green">') else if (today==4) document.write('<body bgcolor="black">') else if (today==5) document.write('<body bgcolor="white">') else if (today==6) document.write('<body bgcolor="blue">') else document.write('<body bgcolor"red">') //--> </script>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email