Let users change background color
Written by Administrator   
Thursday, 10 April 2008

You can use this code to let your users change the background color of your website.
If you combine it with a cookie, their color choice can follow through the entire website.

Paste this code into the HEAD section of your HTML document.

function bgChange() {
  document.bgColor=document.getElementById("f").txt.value;
}


Related Items:

Write Comment
Name:
Title:
Comment:

Code:* Code


Add as favourites (828) | Quote this article on your site | Views: 7305

Comments (2)
1. 01-05-2012 05:38
Question
How do you create a cookie for your site, as stated above? Please help
Written by KirupaGames (Guest)
2. 15-08-2011 08:25
like it
Many many qulaity points there.
Written by Flora (Guest)