• Community Manager

    Javascript per il mouse

    
    
    <html>
    
    <head>
    <title>Script</title>
    <style>.spanstyle &#123;
    	COLOR: red; FONT-FAMILY&#58; Verdana; FONT-SIZE&#58; 8pt; FONT-WEIGHT&#58; bold; POSITION&#58; absolute; TOP&#58; -50px; VISIBILITY&#58; visible
    &#125;
    </style>
    <script LANGUAGE="JavaScript">
    <!-- Begin
    var x, y;
    var step = 10;
    var flag = 0;
    
    var message = "Propio Bello Vero? ";
    message = message.split&#40;""&#41;;
    var xpos = new Array&#40;&#41;;
    for &#40;i = 0; i <= message.length - 1; i++&#41; &#123;
    xpos&#91;i&#93; = -50;
    &#125;
    var ypos = new Array&#40;&#41;;
    for &#40;i = 0; i <= message.length - 1; i++&#41; &#123;
    ypos&#91;i&#93;= -50;
    &#125;
    function handlerMM&#40;e&#41; &#123;
    x = &#40;document.layers&#41; ? e.pageX &#58; document.body.scrollLeft + event.clientX;
    y = &#40;document.layers&#41; ? e.pageY &#58; document.body.scrollTop + event.clientY;
    flag = 1;
    &#125;
    function makesnake&#40;&#41; &#123;
    if &#40;flag == 1 && document.all&#41; &#123;
    for &#40;i = message.length - 1; i >= 1; i--&#41; &#123;
    xpos&#91;i&#93; = xpos&#91;i - 1&#93; + step;
    ypos&#91;i&#93; = ypos&#91;i - 1&#93;;
    &#125;
    xpos&#91;0&#93; = x + step;
    ypos&#91;0&#93; = y;
    for &#40;i = 0; i < message.length - 1; i++&#41; &#123;
    var thisspan = eval&#40;"span" + &#40;i&#41; + ".style"&#41;;
    thisspan.posLeft = xpos&#91;i&#93;;
    thisspan.posTop = ypos&#91;i&#93;;
       &#125;
    &#125;
    else if &#40;flag==1 && document.layers&#41; &#123;
    for &#40;i = message.length - 1; i >= 1; i--&#41; &#123;
    xpos&#91;i&#93; = xpos&#91;i - 1&#93; + step;
    ypos&#91;i&#93; = ypos&#91;i - 1&#93;;
    &#125;
    xpos&#91;0&#93; = x + step;
    ypos&#91;0&#93; = y;
    for &#40;i = 0; i < message.length - 1; i++&#41; &#123;
    var thisspan = eval&#40;"document.span" + i&#41;;
    thisspan.left = xpos&#91;i&#93;;
    thisspan.top = ypos&#91;i&#93;;
       &#125;
    &#125;
    var timer = setTimeout&#40;"makesnake&#40;&#41;", 10&#41;;
    &#125;
    // End -->
    </script>
    
    
    </head>
    
    <body bgcolor="# #336799" text="" onload="makesnake&#40;&#41;"
    style="OVERFLOW-X&#58; hidden; OVERFLOW-Y&#58; scroll; WIDTH&#58; 100%" link="" vlink="#00FFFF">
    <div style="text-align&#58;CENTER; "><FONT SIZE="3" COLOR="#336600" FACE="Arial,Helvetica,sans-serif">
    <script LANGUAGE="JavaScript">
    
    for &#40;i = 0; i <= message.length-1; i++&#41; &#123;
    document.write&#40;"<span id='span"+i+"' class='spanstyle'>"&#41;;
    document.write&#40;message&#91;i&#93;&#41;;
    document.write&#40;"</span>"&#41;;
    &#125;
    if &#40;document.layers&#41; &#123;
    document.captureEvents&#40;Event.MOUSEMOVE&#41;;
    &#125;
    document.onmousemove = handlerMM;
    
    </script>
    </body>
    </html>
    
    

    Ecco altri script per il

    [url=http://www.giorgiotave.it/raccolta_javascript/mouse.php]Mouse



Descrizione: