Русский
<!-- http://bbs.downcodes.com --> <!--Для реализации эффекта необходимо выполнить два шага: Шаг 1. Поместите следующий код в область <body> --> <script Language=" JavaScript" > <!-- var mousex=new Array(); var mousey=new Array(); var i; var j=0; var k; var Recordcount=0; var повторение; вар повторение2; вар повторение3; вар скорость =50 ; функция startthis() { Recordcount=1; i=0; mousex=new Array(); Recordthis(); function Recordthis() { if (maxnum.value=='' | | isNaN (maxnum.value) == true || maxnum.value<0) { if (recordcount==1) { mousex[i]=mousefollow.offsetLeft; mousey[i]=mousefollow.offsetTop i++; ; textfield .value='нет ограничения по времени'; } } else { if (recordcount==1) { if (i<maxnum.value) { mousex[i]=mousefollow.offsetLeft; mousey[i]=mousefollow.offsetTop; i++; k=i; textfield.value='remaining'+(maxnum.value-i)+'/50 секунд'; else { Recordcount=0; textfield.value='время истекло';} } } setTimeout(" Recordthis()",20); } function stopthis() {clearTimeout("repeat"); Recordcount=0; } function playthis() {clearTimeout("repeat"); 0; if (j<i-1) { стрелка.style.pixelLeft=mousex[j]; стрелка.style.pixelTop=mousey[j]; стрелка.style.visibility='visible'; j++ = setTimeout(" playthis() ",speed); } else {clearTimeout("repeat2");arrow.style.visibility='hidden'; j=0; } } function rewindthis() {clearTimeout("repeat");clearTimeout("repeat2 "); Recordcount=0; if (k>0) {arrow.style.pixelLeft=mousex[k-1];arrow.style.pixelTop=mousey[k-1];arrow.style.visibility='visible'; k-- ;repeat3=setTimeout("rewindthis()",speed); } else {clearTimeout("repeat3");arrow.style.visibility='hidden'; k=i; } } function Follow() { mousefollow. style.pixelLeft =document.body.scrollLeft+event.clientX; mousefollow.style.pixelTop=document.body.scrollTop+event.clientY; } // --> </script> <div id="arrow" style=" позиция: абсолютная; ширина: 12 пикселей; высота: 21 пикс; z-index: 1; видимость: скрытый"><img src="" >/div> <div id="mousefollow" style="position:absolute width: 12 пикселей; высота: 21 пиксель; z-index:1; видимость: скрыто">.</div> <input type="text" name="maxnum" size="4" maxlength="4"><input type=button onclick=startthis () value=Record><input type=button onclick=stopthis() value=Stop><input type=button onclick="speed=50;playthis()" value=Play><input type=button onclick= "speed= 2;playthis()" value=быстрое воспроизведение><input type=button onclick="speed=150;playthis()" value=slow play><input type=button onclick="speed=50;rewindthis() " value= Reverse><input type="button" name="textfield" style="width:100px" value="Без ограничения по времени"> <!--Шаг 2. Добавьте следующий код в область <body>: -> <ТЕЛО onmousemove=follow()>