Dimaz,
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(function(){
$('div').click(function(){
for(var i=1; i<256; i++){
setTimeout(function(x){
return function() {$('div').css("background-color","RGB("+x+",200,15)").html(x)
}}(i),200*i) }
});
});
</script>
</head>
<body>
<div style="width:330px;height:100px;">click</div>
</body>
</html>