onMouseMove Event

Code (text):

<html>

<head>

<title>Title</title>

</head>

<body onmousemove="functionSomething(‘asdfdasfas’);">

    <script>

    function functionSomething(x)

    {

        //Something

        alert(x);

    }

 

    var x=event.clientX;

    var y=event.clientY;

 

    alert("asdfdas");

    }</script>

</body>

</html>

I've been trying to get this to work but nothing works when you move the mouse, it was in the head originally and I moved it to the body and it still won't work. But if I put…
onMouseMove Event

See original post by Pudge1

Leave a Reply