Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1562 connectés 

  FORUM HardWare.fr
  Windows & Software

  Avec quoi est fait le curseur de http://www.wethere.com

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Avec quoi est fait le curseur de http://www.wethere.com

n°813594
benovitch
Posté le 12-08-2002 à 23:11:27  profilanswer
 

Je commence a me mettre a DREAMWEAVER et je voudrais savoir si y a moyen de faire la même chose, si oui comment (grande lignes)
 
ou sinon, quel soft faut il ?


Message édité par benovitch le 12-08-2002 à 23:11:59
mood
Publicité
Posté le 12-08-2002 à 23:11:27  profilanswer
 

n°813601
bl@p_psx
Admin G15-france
Posté le 12-08-2002 à 23:14:19  profilanswer
 

avec du javascript !
 
http://editeurjavascript.com
 
tu trouveras ton bohneur !
 
++


---------------
:Moultiplayers:.:Quatuor Chevalier:.:Admin G15-france.com:.:Wiki -G15-france:.:-Papa-:.
n°813608
bl@p_psx
Admin G15-france
Posté le 12-08-2002 à 23:18:05  profilanswer
 

dans head :

Code :
  1. <SCRIPT language=JavaScript>dCol='000099';//date colour.
  2. fCol='668099';//face colour.
  3. sCol='FF0000';//seconds colour.
  4. mCol='000000';//minutes colour.
  5. hCol='000000';//hours colour.
  6. ClockHeight=40;
  7. ClockWidth=40;
  8. ClockFromMouseY=0;
  9. ClockFromMouseX=100;
  10. //Alter nothing below! Alignments will be lost!
  11. d=new Array("SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY" );
  12. m=new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER" );
  13. date=new Date();
  14. day=date.getDate();
  15. year=date.getYear();
  16. if (year < 2000) year=year+1900;
  17. TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
  18. D=TodaysDate.split('');
  19. H='...';
  20. H=H.split('');
  21. M='....';
  22. M=M.split('');
  23. S='.....';
  24. S=S.split('');
  25. Face='1 2 3 4 5 6 7 8 9 10 11 12';
  26. //font='Arial';
  27. font='Verdana';
  28. size=1;
  29. speed=0.6;
  30. ns=(document.layers);
  31. ie=(document.all);
  32. Face=Face.split(' ');
  33. n=Face.length;
  34. a=size*10;
  35. ymouse=0;
  36. xmouse=0;
  37. scrll=0;
  38. props="<font face="+font+" size="+size+" color="+fCol+"><B>";
  39. props2="<font face="+font+" size="+size+" color="+dCol+"><B>";
  40. Split=360/n;
  41. Dsplit=360/D.length;
  42. HandHeight=ClockHeight/4.5
  43. HandWidth=ClockWidth/4.5
  44. HandY=-7;
  45. HandX=-2.5;
  46. scrll=0;
  47. step=0.06;
  48. currStep=0;
  49. y=new Array();x=new Array();Y=new Array();X=new Array();
  50. for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
  51. Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
  52. for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
  53. if (ns){
  54. for (i=0; i < D.length; i++)
  55. document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>');
  56. for (i=0; i < n; i++)
  57. document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>');
  58. for (i=0; i < S.length; i++)
  59. document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>');
  60. for (i=0; i < M.length; i++)
  61. document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>');
  62. for (i=0; i < H.length; i++)
  63. document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>');
  64. }
  65. if (ie){
  66. document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
  67. for (i=0; i < D.length; i++)
  68. document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>');
  69. document.write('</div></div>');
  70. document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
  71. for (i=0; i < n; i++)
  72. document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>');
  73. document.write('</div></div>');
  74. document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
  75. for (i=0; i < H.length; i++)
  76. document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>');
  77. document.write('</div></div>');
  78. document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
  79. for (i=0; i < M.length; i++)
  80. document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>');
  81. document.write('</div></div>')
  82. document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
  83. for (i=0; i < S.length; i++)
  84. document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>');
  85. document.write('</div></div>')
  86. }
  87. (ns)?window.captureEvents(Event.MOUSEMOVE):0;
  88. function Mouse(evnt){
  89. ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
  90. xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
  91. }
  92. (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
  93. function ClockAndAssign(){
  94. time = new Date ();
  95. secs = time.getSeconds();
  96. sec = -1.57 + Math.PI * secs/30;
  97. mins = time.getMinutes();
  98. min = -1.57 + Math.PI * mins/30;
  99. hr = time.getHours();
  100. hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
  101. if (ie){
  102. Od.style.top=window.document.body.scrollTop;
  103. Of.style.top=window.document.body.scrollTop;
  104. Oh.style.top=window.document.body.scrollTop;
  105. Om.style.top=window.document.body.scrollTop;
  106. Os.style.top=window.document.body.scrollTop;
  107. }
  108. for (i=0; i < n; i++){
  109. var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style;
  110. F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
  111. F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
  112. }
  113. for (i=0; i < H.length; i++){
  114. var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style;
  115. HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
  116. HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs);
  117. }
  118. for (i=0; i < M.length; i++){
  119. var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style;
  120. ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
  121. ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min);
  122. }
  123. for (i=0; i < S.length; i++){
  124. var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style;
  125. SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
  126. SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec);
  127. }
  128. for (i=0; i < D.length; i++){
  129. var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
  130. DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
  131. DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
  132. }
  133. currStep-=step;
  134. }
  135. function Delay(){
  136. scrll=(ns)?window.pageYOffset:0;
  137. Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
  138. Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
  139. for (i=1; i < D.length; i++){
  140. Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed);
  141. Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed);
  142. }
  143. y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
  144. x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
  145. for (i=1; i < n; i++){
  146. y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
  147. x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
  148. }
  149. ClockAndAssign();
  150. setTimeout('Delay()',20);
  151. }
  152. if (ns||ie)window.onload=Delay;
  153. </SCRIPT>


 
voilà !
 
++
 
SOURCES : http://www.wethere.com


---------------
:Moultiplayers:.:Quatuor Chevalier:.:Admin G15-france.com:.:Wiki -G15-france:.:-Papa-:.

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Windows & Software

  Avec quoi est fait le curseur de http://www.wethere.com

 

Sujets relatifs
[WORD] comment virer l'effacement du texte étant après le curseur ?cherche fo virus qui demultiplie le mouvement du curseur
Curseur window XP[RECHERCHE] un soft qui cache le curseur de la souris ...
Diriger le curseur avec son gamepad?HELP icônes ki fuient le curseur HELP
Masquer le curseur de la souris sous Win98??Ombre du curseur sous W2000 Pro SP2
bitmap -> curseur windows ?un programme qui zoome sur l'endroit ou le curseur se balade
Plus de sujets relatifs à : Avec quoi est fait le curseur de http://www.wethere.com


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR