hello future

Just some ideas I kick around and items worth a note.

Wednesday, May 23, 2007

Mouse tracking on a website

Cool little snippet for tracking the movement of a mouse on your website:


<script type="text/javascript">

function track_movement(evt)
{
document.getElementById("coords").innerHTML = "X: " evt.pageX " Y: " evt.pageY "<br />";
}

document.onmousemove = track_movement;

</script>

Tuesday, May 22, 2007

C# Form Event Handling

So if you want your base form to be able to see the key events that happen on your controls, you have to set the Form.KeyPreview = True;