I was hoping to import the mouse coordinates to the numbers in a div's change background color to rgb(event.clientx, eventclientY, 50). Any ideas?
<body>
<p>
<span>Move the mouse over the div.</span>
<span> </span>
</p>
<div></div>
<script>
$( "div" ).mousemove(function( event ) {
var $corX = $("(event.pageX)/10");
var $corY = $("(event.pageY)");
var $coloChange = $("rgb(" + $corx+ ", " + $corY + ",40)");
$("div").css"("background", "$colorChange");
});
</script>