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

In - Bóng động cho chữ - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Chữ » Mờ và chớp sáng » Bóng động cho chữ
URL: https://www.javascriptbank.com/non-focus-text-script.html

Bóng động cho chữ © JavaScriptBank.comĐoạn mã này dùng bộ lọc gradient để tạo bóng di chuyển cho chữ.

Phiên bản đầy đủ: jsB@nk » Chữ » Mờ và chớp sáng » Bóng động cho chữ
URL: https://www.javascriptbank.com/non-focus-text-script.html



JavaScript
<SCRIPT language=JavaScript>// Author: Igor Bushin<!--//put your own message here. HTML tag allowedstr='Some text some text some text';strnew=str;//strnew=str+'<br>'+str+'<br>'+str+'<br>'+str+'<br>'+str+'<br>'+str;document.all.layer1.innerHTML=strnew;document.all.layer2.innerHTML=strnew;document.all.layer3.innerHTML=strnew;document.all.layer4.innerHTML=strnew;document.all.layer5.innerHTML=strnew;timer=120; // speed in msecnumnf=12;  // or set 6 - for style 2s2=0;s3=0;s4=0;s5=0;nfs=-1;count=numnf;s2l=66;  s3l=s2l+6;s4l=s3l+6;s5l=s4l+6;s2t=66;s3t=s2t+6;s4t=s3t+6;s5t=s4t+6;function nonfocustext(){ count+=nfs;   s2l+=nfs; s3l+=2*nfs; s4l+=3*nfs; s5l+=4*nfs; s2t+=nfs; s3t+=2*nfs; s4t+=3*nfs; s5t+=4*nfs; layer2.style.left=s2l; layer3.style.left=s3l; layer4.style.left=s4l; layer5.style.left=s5l; layer2.style.top=s2t; layer3.style.top=s3t; layer4.style.top=s4t; layer5.style.top=s5t; if ((count==numnf) || (count==0)) {nfs=-nfs;}}function doit(){ document.all.rpltag.outerHTML='<P align=center><INPUT name="Button" onclick="'+"window.location.href='http://www.shvaika.ic.ck.ua'"+';" type="button" value="Authors site click here"></P>';  setInterval('nonfocustext()',timer);}//--></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<FONT face="Comic Sans MS" size=7><DIV id=layer1 style="Z-INDEX: 5; LEFT: 60px; COLOR: #000000; POSITION: absolute; TOP: 60px"></DIV><DIV id=layer2 style="Z-INDEX: 4; LEFT: 66px; COLOR: #333333; POSITION: absolute; TOP: 66px"></DIV><DIV id=layer3 style="Z-INDEX: 3; LEFT: 72px; COLOR: #666666; POSITION: absolute; TOP: 72px"></DIV><DIV id=layer4 style="Z-INDEX: 2; LEFT: 78px; COLOR: #999999; POSITION: absolute; TOP: 78px"></DIV><DIV id=layer5 style="Z-INDEX: 1; LEFT: 84px; COLOR: #cccccc; POSITION: absolute; TOP: 84px"></DIV><FORM><P id=rpltag align=center><INPUT onclick=doit(); type=button value="Click to non-focus text" name=Button></P></FORM><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->