i am trying to make a body background switcher. where user will have couple of buttons, so that when they click on it body bg will change. also, it will save some sort of cookie so that the user go to another page or come bak it will remember that selection http://mangafox.com/ has this backgound selector thing.
You can also use jQuery to easily achive this effect: $('body').css('background-color', '#ccc'); Code (markup): or on button click: $('#button1').click(function(){ $('body').css('background-color', '#ccc'); }); $('#button2').click(function(){ $('body').css('background-color', '#fefefe'); }); Code (markup):