»
Tiếng AnhTiếng PhápTiếng Việt

In - Con trỏ 'kiểu dây cao su' - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Con trỏ » Di chuyển theo chuột » Con trỏ 'kiểu dây cao su'
URL: https://www.javascriptbank.com/elastic-band-trail.html

Con trỏ 'kiểu dây cao su' © JavaScriptBank.comHiệu ứng tạo một đường thẳng nối con trỏ chuột với quả bóng, cả hai cùng di chuyển theo con trỏ chuột và tùy theo tốc độ di chuyển mà độ đàn hồi của d6ay sẽ thay đổi.

Phiên bản đầy đủ: jsB@nk » Con trỏ » Di chuyển theo chuột » Con trỏ 'kiểu dây cao su'
URL: https://www.javascriptbank.com/elastic-band-trail.html



CSS
<STYLE>v\:* { BEHAVIOR: url(#default#VML)}</STYLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<SCRIPT language="JavaScript1.2">//Elastic band trail//By Elastic_Ouille_script@GHindoute.net//Thanks to MP1515 <MP1515@aramette.net> for all Mathematical modelvar stringcolor="black" //SPECIFY STRING COLORvar ballsrc="../image/hole.gif" //SPECIFY URL TO BALL IMAGE///No editing required below this line//////////////////////////if (document.all&&window.print){document.write('<IMG id=Om style="LEFT: -10px; POSITION: absolute" src="'+ballsrc+'">')ddx=0;ddy=0;PX=0;PY=0;xm=0;ym=0OmW=Om.width/2;OmH=Om.height/2}function Ouille(){ x=Math.round(PX+=(ddx+=((xm-PX-ddx)*3)/100)) y=Math.round(PY+=(ddy+=((ym-PY-ddy)*3-300)/100)) Om.style.left=x-OmW Om.style.top=y-OmH elastoc.to=x+","+y //elastoc.strokecolor="RGB("+x+","+(2*y)+",0)" elastoc.strokecolor=stringcolor setTimeout("Ouille()",1)   }function momouse(){ xm=window.event.x+5 ym=window.event.y+document.body.scrollTop+15 elastoc.from=xm+","+ym}if(document.all&&window.print){code="<v:line id=elastoc style='LEFT:0;POSITION:absolute;TOP:0' strokeweight='1.5pt'></v:line>"} else {code="<v:group style='LEFT:-10;WIDTH:100pt;POSITION:absolute;TOP:0;HEIGHT:100pt' coordsize='21600,21600'><v:line id=elastoc style='LEFT:0;WIDTH:100pt;POSITION:absolute;TOP:0;HEIGHT:100pt' strokeweight='1.5pt'></v:line></v:group>"}if(document.all&&window.print){document.body.insertAdjacentHTML("afterBegin",code)document.onmousemove=momouseOuille()}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


Files
http://javascriptbank.com/javascript/background/hole.gif