• code curseur chouette

     

     

    <!-- DEBUT DU SCRIPT -->
    <p>
    <script>// <![CDATA[
    /*
    Image qui suit et regarde la souris
    http://www.editeurjavascript.com/scripts/scripts_images_1_66.php

    SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
    http://www.editeurjavascript.com
    */
    var x = 0;
    var y = 0;

    if (document.getElementById)
    {
    if(navigator.appName.substring(0,3) == "Net")
    document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = Pos_Souris;
    window.onload = Bouge_Image;
    }

    function Pos_Souris(e)
    {
    x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
    y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;
    }

    posX = 0;
    posY = 0;
    anim = true;
    oldpos ="http://ekladata.com/gp1YcCrQRATshjB2ADFyEmDihOY.png";

    function Bouge_Image()
    {
    if (document.getElementById && anim)
    {
    posX = posX+(((x-posX)+20)/15);
    posY = posY+(((y-posY)+20)/15);
    if(posX<x)
    newpos='http://ekladata.com/gp1YcCrQRATshjB2ADFyEmDihOY.png';
    else
    newpos='http://ekladata.com/gp1YcCrQRATshjB2ADFyEmDihOY.png';
    if(newpos!=oldpos)
    {
    document.tete.src=newpos;
    oldpos=newpos;
    }
    document.getElementById("teteronde").style.top = posY+"px";
    document.getElementById("teteronde").style.left = posX+"px";
    tempo = setTimeout("Bouge_Image()", 15)
    }
    }

    if(document.getElementById)
    {
    document.write('<div id="teteronde" style="position: absolute">');
    document.write('<a href="#" onClick="anim=false;document.getElementById(\'teteronde\').style.visibility = \'hidden\';return(false)">');
    document.write('<img src="http://ekladata.com/gp1YcCrQRATshjB2ADFyEmDihOY.png"style="border:0px" name="tete" alt="Cliquez ici pour faire disparaître" />');
    document.write('</a>');
    document.write('</div>');
    }
    // ]]></script>
    </p>
    <!-- FIN DU SCRIPT -->
    <p>&nbsp;</p>