Lost Password? Register
  • 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:





Reddit!Del.icio.us!Facebook!Slashdot!Technorati!StumbleUpon!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites!

Add as favourites (14) | Quote this article on your site | Views: 341

Be first to comment this article

Write Comment
Name:
Title:
Comment:

Code:* Code

 
Next >