Example:
Code:

<html>
<head>
<script type="text/javascript">
function changecolor(color_code)
{
document.bgColor=color_code;
}
</script>
</head>
<body>







</body>
</html> 
eXTReMe Tracker