Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as JavaScript by aaaaa ( 15 years ago )
var cookie_opts = {
  path: '/',
  domain: 'plemiona.pl'
 }
 
 var background = $('#background');
 background.css('display', $.cookie('background'));
 if ($.cookie('background') == 'block') {
  $('#bg-on em').css('text-decoration', 'underline');
  $('body').removeClass('light_background');
 } else {
  $('#bg-off em').css('text-decoration', 'underline');
  $('body').addClass('light_background');
 }

 $('#bg-off').click(function() {
  background.hide();
  $('#bg-on em').css('text-decoration', 'none');
  $(this).find('em').css('text-decoration', 'underline');
  $('body').addClass('light_background');
  $.cookie('background', 'none', cookie_opts);
 });
 $('#bg-on').click(function() {
  background.show();
  $('#bg-off em').css('text-decoration', 'none');
  $(this).find('em').css('text-decoration', 'underline');
  $('body').removeClass('light_background');
  $.cookie('background', 'block', cookie_opts);
 });

 

Revise this Paste

Your Name: Code Language: