Cursore Personalizzato per Forum

« Older   Newer »
 
  Share  
.
  1. Nifo
        Like  
     
    .

    User deleted


    Per il cursore personalizzato nel vostro forum bisogna incollare questa codice in gestioni codici html->in cima al forum
    Questo permetterà di aggiungere oltre la tradizionale freccetta anche un’immagine..

    CODICE
    <script>var immagine='LINK DELL'IMMAGINE';
    var code = '';
    if (document.all) {
    code += '<SPAN ID="pointer" STYLE="position: absolute; left: -100">';
    code += '<IMG NAME="pointerImg" SRC="' + immagine + '" BORDER=0>';
    code += '</SPAN>';
    } else {
    code += '<LAYER ID="pointer" POSITION="absolute" LEFT="-100">';
    code += '<IMG ID="pointerImg" SRC="' + immagine + '" BORDER=0>';
    code += '</LAYER>';
    }
    document.write(code);

    if(document.layers) document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = coordinate;

    function coordinate(e) {
    if (document.layers) {
    document.layers.pointer.left = e.pageX + 8;
    document.layers.pointer.top = e.pageY + 8;
    }
    if (document.all) {
    pointer.style.left = event.clientX + document.body.scrollLeft + 8;
    pointer.style.top = event.clientY + document.body.scrollTop + 8;
    }
    return true;
    }
    </script>



    Questo invece lo modifica del tutto..


    CODICE
    <body style="cursor:url(URL cursore);"><script type="text/javascript"></script>
     
    .
0 replies since 24/7/2010, 14:31   103 views
  Share  
.