Sürgü ile Renk Değiştirme

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
 <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script>
	$(function() {
		$( "#slider" ).slider({
    range: "min",
    value: 50,
    min: 10,
    max: 99,
    slide: function(event, ui) {
      $("#sonuc").text(ui.value);
	  var d=ui.value;
	  var e=Math.ceil(99-d);
	    var deger="#" + d + d + d;
	    var degert="#" + e + e + e;
	  $("body").css("background-color", deger);
	  $("body").css("color", degert);
	  
    }
  });
	});
  </script>
</head>
<body>
  <center><h1>Sürgü ile Renk Değiştirme</h1> </center>
<div id="slider"></div>
 <center><h3><div id="sonuc">50</div></h3></center>