<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
<style type="text/css" id="a">
body{background:#c00;}
</style>
</head>
<body>
<script type="text/javascript">
$(function(){
$("html").click(function(){
//$("#a").html("body{background:RGB("+b()+","+b()+","+b()+")}");
$("#a").html("body{background:#"+b().toString(16)+b().toString(16)+b().toString(16)+"}");
})
function b(){
var max=255;
return Math.floor(Math.random()*max)+1;
}
})
</script>
</body>
</html>