Forums Rue-Montgallet.com
Rue-Montgallet.comRue-Hardware.comRue-Occasion.comRue-DVD.comRue-Jeuxvideo.comRue-AudioVideo.comRue-Telephone.comForums
S'inscrire | S'identifier |
| Recherche avancée | Aide
 
 

Il y a 57 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici

 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet :

Comment faire ce script ??

 
n°5023
kamui
Mada mada dame!
Profil : Vieux de la vieille
Posté le 05-09-2003 à 19:21:13  profilanswer
 

http://perso.wanadoo.fr/club-cipm/Club/liens.htm
 
 
le fameux script ,horloge plus date et heure , merci  :jap:

n°5024
Nodashi
Silence je dors
Profil : Dinosaure
Posté le 05-09-2003 à 19:30:00  profilanswer
 

lekel script ?
 
parce ke la ton lien c'est des liens illisible :/


---------------
informatique / jeu vidéo / blog du développeur / Pour les hommes modernes
n°5031
kamui
Mada mada dame!
Profil : Vieux de la vieille
Posté le 05-09-2003 à 21:44:11  profilanswer
 

nodashi a écrit :

lekel script ?
 
parce ke la ton lien c'est des liens illisible :/


 
 
je parlais  tu fameux curseur de la souris  :lol:

n°5035
kamui
Mada mada dame!
Profil : Vieux de la vieille
Posté le 06-09-2003 à 19:29:41  profilanswer
 

y'as kk1 ???
 
 :cry:

n°5036
Tisiphone
Sex, Drugs, Knowledge
Profil : Dinosaure
Posté le 06-09-2003 à 21:21:36  profilanswer
 

nodashi a écrit :

lekel script ?
 
parce ke la ton lien c'est des liens illisible :/


Klr on voit absolument que dalle


---------------
Membre passif de la Pourriture De Topic Team;  
Membre de la TEAM Project Dolphin et de la Flemmards Team :sol:
Membre de la Cool Team  
"Seb remonteur de moral de MwA bah voui zenti msieu ke
n°5037
Tisiphone
Sex, Drugs, Knowledge
Profil : Dinosaure
Posté le 06-09-2003 à 21:22:15  profilanswer
 

Kamui a écrit :


 
 
je parlais  tu fameux curseur de la souris  :lol:  


De quel curseur tu parles?


---------------
Membre passif de la Pourriture De Topic Team;  
Membre de la TEAM Project Dolphin et de la Flemmards Team :sol:
Membre de la Cool Team  
"Seb remonteur de moral de MwA bah voui zenti msieu ke
n°5038
Nodashi
Silence je dors
Profil : Dinosaure
Posté le 06-09-2003 à 21:25:26  profilanswer
 

Bah ton script il marche pas sous Moz donc c'est un script de merde


---------------
informatique / jeu vidéo / blog du développeur / Pour les hommes modernes
n°5039
Tisiphone
Sex, Drugs, Knowledge
Profil : Dinosaure
Posté le 06-09-2003 à 21:27:13  profilanswer
 

nodashi a écrit :

Bah ton script il marche pas sous Moz donc c'est un script de merde


Ah spour ça que je vois pas le curseur qui devrait remplacer le curseur normal :lol:


---------------
Membre passif de la Pourriture De Topic Team;  
Membre de la TEAM Project Dolphin et de la Flemmards Team :sol:
Membre de la Cool Team  
"Seb remonteur de moral de MwA bah voui zenti msieu ke
n°5040
Nodashi
Silence je dors
Profil : Dinosaure
Posté le 06-09-2003 à 21:33:18  profilanswer
 

Code :
  1. <SCRIPT language=JavaScript>
  2. dCol='00FF00';//date colour.
  3. fCol='CCCCCC';//face colour.
  4. sCol='FF0000';//seconds colour.
  5. mCol='6699FF';//minutes colour.
  6. hCol='6699FF';//hours colour.
  7. ClockHeight=40;
  8. ClockWidth=40;
  9. ClockFromMouseY=0;
  10. ClockFromMouseX=100;
  11. //Alter nothing below! Alignments will be lost!
  12. d=new Array("DIMANCHE","LUNDI","MARDI","MERCREDI","JEUDI","VENDREDI","SAMEDI" );
  13. m=new Array("JANVIER","FEVRIER","MARS","AVRIL","MAI","JUIN","JUILLET","AOÜT","SEPTEMBRE","OCTOBRE","NOVEMBRE","DECEMBRE" );
  14. date=new Date();
  15. day=date.getDate();
  16. year=date.getYear();
  17. if (year < 2000) year=year+1900;
  18. TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
  19. D=TodaysDate.split('');
  20. H='...';
  21. H=H.split('');
  22. M='....';
  23. M=M.split('');
  24. S='.....';
  25. S=S.split('');
  26. Face='1 2 3 4 5 6 7 8 9 10 11 12';
  27. font='Arial';
  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>


---------------
informatique / jeu vidéo / blog du développeur / Pour les hommes modernes
n°5041
Nodashi
Silence je dors
Profil : Dinosaure
Posté le 06-09-2003 à 21:33:54  profilanswer
 

putin mon clavier fume faut ke j'arrette de taper aussi vite :p


---------------
informatique / jeu vidéo / blog du développeur / Pour les hommes modernes
n°5042
Tisiphone
Sex, Drugs, Knowledge
Profil : Dinosaure
Posté le 06-09-2003 à 22:22:31  profilanswer
 

nodashi a écrit :

Code :
  1. <SCRIPT language=JavaScript>
  2. dCol='00FF00';//date colour.
  3. fCol='CCCCCC';//face colour.
  4. sCol='FF0000';//seconds colour.
  5. mCol='6699FF';//minutes colour.
  6. hCol='6699FF';//hours colour.
  7. ClockHeight=40;
  8. ClockWidth=40;
  9. ClockFromMouseY=0;
  10. ClockFromMouseX=100;
  11. //Alter nothing below! Alignments will be lost!
  12. d=new Array("DIMANCHE","LUNDI","MARDI","MERCREDI","JEUDI","VENDREDI","SAMEDI" );
  13. m=new Array("JANVIER","FEVRIER","MARS","AVRIL","MAI","JUIN","JUILLET","AOÜT","SEPTEMBRE","OCTOBRE","NOVEMBRE","DECEMBRE" );
  14. date=new Date();
  15. day=date.getDate();
  16. year=date.getYear();
  17. if (year < 2000) year=year+1900;
  18. TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
  19. D=TodaysDate.split('');
  20. H='...';
  21. H=H.split('');
  22. M='....';
  23. M=M.split('');
  24. S='.....';
  25. S=S.split('');
  26. Face='1 2 3 4 5 6 7 8 9 10 11 12';
  27. font='Arial';
  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>

 


[:wam]


---------------
Membre passif de la Pourriture De Topic Team;  
Membre de la TEAM Project Dolphin et de la Flemmards Team :sol:
Membre de la Cool Team  
"Seb remonteur de moral de MwA bah voui zenti msieu ke
n°5043
Tisiphone
Sex, Drugs, Knowledge
Profil : Dinosaure
Posté le 06-09-2003 à 22:22:59  profilanswer
 

nodashi a écrit :

putin mon clavier fume faut ke j'arrette de taper aussi vite :p


 :lol: Super noda


---------------
Membre passif de la Pourriture De Topic Team;  
Membre de la TEAM Project Dolphin et de la Flemmards Team :sol:
Membre de la Cool Team  
"Seb remonteur de moral de MwA bah voui zenti msieu ke
n°5045
kamui
Mada mada dame!
Profil : Vieux de la vieille
Posté le 07-09-2003 à 22:54:37  profilanswer
 

merci Nodashi (copier /coller powaa), mais je viens de m'apercevoir en regardant les sources du fameux liens y'avait le script :mdr:
 
 :jap:
 

Citation :

<SCRIPT language=JavaScript>
dCol='00FF00';//date colour.
fCol='CCCCCC';//face colour.
sCol='FF0000';//seconds colour.
mCol='6699FF';//minutes colour.
hCol='6699FF';//hours colour.
ClockHeight=40;
ClockWidth=40;
ClockFromMouseY=0;
ClockFromMouseX=100;
 
//Alter nothing below! Alignments will be lost!
 
d=new Array("DIMANCHE","LUNDI","MARDI","MERCREDI","JEUDI","VENDREDI","SAMEDI" );
m=new Array("JANVIER","FEVRIER","MARS","AVRIL","MAI","JUIN","JUILLET","AOÜT","SEPTEMBRE","OCTOBRE","NOVEMBRE","DECEMBRE" );
date=new Date();
day=date.getDate();
year=date.getYear();
if (year < 2000) year=year+1900;
TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
D=TodaysDate.split('');
H='...';
H=H.split('');
M='....';
M=M.split('');
S='.....';
S=S.split('');
Face='1 2 3 4 5 6 7 8 9 10 11 12';
font='Arial';
size=1;
speed=0.6;
ns=(document.layers);
ie=(document.all);
Face=Face.split(' ');
n=Face.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font face="+font+" size="+size+" color="+fCol+"><B>";
props2="<font face="+font+" size="+size+" color="+dCol+"><B>";
Split=360/n;
Dsplit=360/D.length;
HandHeight=ClockHeight/4.5
HandWidth=ClockWidth/4.5
HandY=-7;
HandX=-2.5;
scrll=0;
step=0.06;
currStep=0;
y=new Array();x=new Array();Y=new Array();X=new Array();
for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
if (ns){
for (i=0; i < D.length; i++)
document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>');
for (i=0; i < n; i++)
document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>');
for (i=0; i < S.length; i++)
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>');
for (i=0; i < M.length; i++)
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>');
for (i=0; i < H.length; i++)
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>');
}
if (ie){
document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < D.length; i++)
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>');
document.write('</div></div>');
document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < n; i++)
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>');
document.write('</div></div>');
document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < H.length; i++)
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>');
document.write('</div></div>');
document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < M.length; i++)
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>');
document.write('</div></div>')
document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < S.length; i++)
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>');
document.write('</div></div>')
}
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
}
(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
function ClockAndAssign(){
time = new Date ();
secs = time.getSeconds();
sec = -1.57 + Math.PI * secs/30;
mins = time.getMinutes();
min = -1.57 + Math.PI * mins/30;
hr = time.getHours();
hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
if (ie){
Od.style.top=window.document.body.scrollTop;
Of.style.top=window.document.body.scrollTop;
Oh.style.top=window.document.body.scrollTop;
Om.style.top=window.document.body.scrollTop;
Os.style.top=window.document.body.scrollTop;
}
for (i=0; i < n; i++){
 var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style;
 F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
 F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
 }
for (i=0; i < H.length; i++){
 var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style;
 HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
 HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs);
 }
for (i=0; i < M.length; i++){
 var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style;
 ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
 ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min);
 }
for (i=0; i < S.length; i++){
 var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style;
 SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
 SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec);
 }
for (i=0; i < D.length; i++){
 var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
 DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
 DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
 }
currStep-=step;
}
function Delay(){
scrll=(ns)?window.pageYOffset:0;
Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
for (i=1; i < D.length; i++){
Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed);
Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed);
}
y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
for (i=1; i < n; i++){
y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
}
ClockAndAssign();
setTimeout('Delay()',20);
}
if (ns||ie)window.onload=Delay;
</SCRIPT>


Message édité par kamui le 07-09-2003 à 22:59:38
n°5046
Nodashi
Silence je dors
Profil : Dinosaure
Posté le 07-09-2003 à 23:55:13  profilanswer
 

Kamui a écrit :

merci Nodashi (copier /coller powaa), mais je viens de m'apercevoir en regardant les sources du fameux liens y'avait le script :mdr:
 
 :jap:


 
Bah oui copy/paste de la source vu ke tu sais pas le faire je l'ai fait pour toi ;)


---------------
informatique / jeu vidéo / blog du développeur / Pour les hommes modernes
n°5047
lukefab
meuh
Profil : Habitué
Posté le 08-09-2003 à 00:00:00  profilanswer
 

Je te conseille pas de mettre ce genre de saloperie, ca ralentit à mort le navigateur pis c'est TES genant pourvisiter la page.
Le pire, c'est que ca ne se déactive pas à moins de désactiver le JS.


---------------
Opera 8.51 pour Windows, Linux, FreeBSD, Solaris, Mac OS X.
www.opera.com , c'est bon et sans morceau de pub dedans, mangez-en.
Un pingouin aux pommes ?
n°5048
Nodashi
Silence je dors
Profil : Dinosaure
Posté le 08-09-2003 à 00:23:51  profilanswer
 

lukefab a écrit :

Je te conseille pas de mettre ce genre de saloperie, ca ralentit à mort le navigateur pis c'est TES genant pourvisiter la page.
Le pire, c'est que ca ne se déactive pas à moins de désactiver le JS.
 


 
c'est surtout ke c'est carrement inutile


---------------
informatique / jeu vidéo / blog du développeur / Pour les hommes modernes
n°5073
Tisiphone
Sex, Drugs, Knowledge
Profil : Dinosaure
Posté le 11-09-2003 à 08:02:29  profilanswer
 

nodashi a écrit :


 
c'est surtout ke c'est carrement inutile


Klr  :lol: keskon s'en fout qu'il y ait tel ou tel pointeur


---------------
Membre passif de la Pourriture De Topic Team;  
Membre de la TEAM Project Dolphin et de la Flemmards Team :sol:
Membre de la Cool Team  
"Seb remonteur de moral de MwA bah voui zenti msieu ke
n°5094
killboy_42​5
killboy powered @ by offspring
Profil : Dinosaure
Posté le 15-09-2003 à 21:00:12  profilanswer
 

nodashi a écrit :

Code :
  1. <SCRIPT language=JavaScript>
  2. dCol='00FF00';//date colour.
  3. fCol='CCCCCC';//face colour.
  4. sCol='FF0000';//seconds colour.
  5. mCol='6699FF';//minutes colour.
  6. hCol='6699FF';//hours colour.
  7. ClockHeight=40;
  8. ClockWidth=40;
  9. ClockFromMouseY=0;
  10. ClockFromMouseX=100;
  11. //Alter nothing below! Alignments will be lost!
  12. d=new Array("DIMANCHE","LUNDI","MARDI","MERCREDI","JEUDI","VENDREDI","SAMEDI" );
  13. m=new Array("JANVIER","FEVRIER","MARS","AVRIL","MAI","JUIN","JUILLET","AOÜT","SEPTEMBRE","OCTOBRE","NOVEMBRE","DECEMBRE" );
  14. date=new Date();
  15. day=date.getDate();
  16. year=date.getYear();
  17. if (year < 2000) year=year+1900;
  18. TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
  19. D=TodaysDate.split('');
  20. H='...';
  21. H=H.split('');
  22. M='....';
  23. M=M.split('');
  24. S='.....';
  25. S=S.split('');
  26. Face='1 2 3 4 5 6 7 8 9 10 11 12';
  27. font='Arial';
  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>

 


 
il faut tout sa pour faire une horloge qui suis le pointeur !!!!!!!!!!!! :ouch:  :ouch:

n°5097
Nodashi
Silence je dors
Profil : Dinosaure
Posté le 16-09-2003 à 07:45:16  profilanswer
 

bah ouais vu k'elle tourne est tout


---------------
informatique / jeu vidéo / blog du développeur / Pour les hommes modernes
n°5103
killboy_42​5
killboy powered @ by offspring
Profil : Dinosaure
Posté le 16-09-2003 à 19:14:40  profilanswer
 

nodashi a écrit :

bah ouais vu k'elle tourne est tout


 
c'est fou :ouch: !!!!!!!!!!!!!!


Aller à :
Ajouter une réponse