Lost Password?
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size
  • default color
  • red color
  • green color
Member Area

Web Code

Home arrow Scripts arrow JavaScript arrow Let users change background color     
Let users change background color PDF Print E-mail
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 (763) | Quote this article on your site | Views: 6983

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)
 
Next >

Popular of Late