Criar uma Loja Virtual Grátis
Notícias

  1. language="JavaScript1.2">
  2.  
  3. //especifique o endereço da imagem
  4. var cursorpath="https://img.comunidades.net/wad/wadesign/anddesign_banner.jpg"
  5.  
  6. if(document.layers)
  7. {document.write("")}
  8. elseif(document.all){document.write("
    "
    )}
  9.  
  10. count=-1;
  11. move=1;
  12.  
  13. functionCurve(){
  14. abc=newArray(0,1,1,1,2,3,4,0,6,-1,-1,-1,-2,-3,-4,0,-6)
  15. for(i=0; i < abc.length; i++)
  16. {var C=Math.round(Math.random()*[i])}
  17. howbend=abc[C];
  18. setTimeout('Curve()',1900);
  19. return howbend;
  20. }
  21. ypos=10;
  22. xpos=10;
  23.  
  24. degree =60;
  25. functionMoveRandom(){
  26. PathBend=degree+=howbend;//ok!
  27. y =4*Math.sin(PathBend*Math.PI/180);
  28. x =6*Math.cos(PathBend*Math.PI/180);
  29. if(document.layers){
  30. ypos+=y;
  31. xpos+=x;
  32. document.PoInTeRs.top=ypos+window.pageYOffset;
  33. document.PoInTeRs.left=xpos+window.pageXOffset;
  34. }
  35. elseif(document.all){
  36. ypos+=y;
  37. xpos+=x;
  38. document.all.pOiNtErS.style.top=ypos+document.body.scrollTop;
  39. document.all.pOiNtErS.style.left=xpos+document.body.scrollLeft;
  40. }
  41. T=setTimeout('MoveRandom()',50);
  42. }
  43. function edges(){
  44. if(document.layers){
  45. if(document.PoInTeRs.left >= window.innerWidth-40+window.pageXOffset)degree=Math.round(Math.random()*45+157.5);
  46. if(document.PoInTeRs.top >= window.innerHeight-30+window.pageYOffset)degree=Math.round(Math.random()*45-112.5);
  47. if(document.PoInTeRs.top <=2+window.pageYOffset) degree =Math.round(Math.random()*45+67.5);//OK!
  48. if(document.PoInTeRs.left <=2+window.pageXOffset) degree =Math.round(Math.random()*45-22.5);//OK!
  49. }
  50. elseif(document.all)
  51. {
  52. if(document.all.pOiNtErS.style.pixelLeft >= document.body.offsetWidth-45+document.body.scrollLeft)degree=Math.round(Math.random()*45+157.5);
  53. if(document.all.pOiNtErS.style.pixelTop >= document.body.offsetHeight-35+document.body.scrollTop)degree=Math.round(Math.random()*45-112.5);
  54. if(document.all.pOiNtErS.style.pixelTop <=2+document.body.scrollTop) degree =Math.round(Math.random()*45+67.5);//OK!
  55. if(document.all.pOiNtErS.style.pixelLeft <=2+document.body.scrollLeft) degree =Math.round(Math.random()*45-22.5);//OK!
  56. }
  57. setTimeout('edges()',100);
  58. }
  59. function starteffect(){
  60. Curve();
  61. MoveRandom();// onUnload="opener.gO()"
  62. edges();
  63. }
  64.  
  65. if(document.all||document.layers)
  66. window.onload=starteffect
Translate to English Translate to Spanish Translate to French Translate to German Google-Translate-Portuguese to Italian Translate to Russian Translate to Chinese Translate to Japanese

Rating: 2.5/5 (28 votos)

ONLINE
1




Partilhe esta Página




Total de visitas: 2194