Accueil > > > DIT TOUT LES INFORMATIONS PERTINENTES DE L'ORDINATEUR
DIT TOUT LES INFORMATIONS PERTINENTES DE L'ORDINATEUR
Information sur la source
Description
Vous pouvez aller voir lotre version avec zip et sans bug : < http://www.javascriptfr.com/code.aspx?ID=18971 >!!! Je l'ai trouver sur un site, pi vu qui a beaucoup de bug, je voulais me casser la tête, mais là chu pu capable. Il donne l'IP, le domaine, le type de navigateur, pi plein de cossin
Source
- <body>
- <table dir="ltr" border="0" cellpadding="0" cellspacing="0" width="100%"><tr><!--msnavigation--><td valign="top">
-
- <SCRIPT language="JavaScript">
- var date_statement="";
- var time_statement="";
- var today=new Date();
- var month="";
- var day="";
- function todays_date() {
- var month=today.getMonth();
- var day_of_week=today.getDay();
- date_statement=""
- document.month=""
- month++; // So it's now between 1 - 12.
- if(month==1) {january(today.getDate());document.month="janvier";}
- if(month==2) {february(today.getDate());document.month="février";}
- if(month==3) {march(today.getDate());document.month="mars";}
- if(month==4) {april(today.getDate());document.month="avril";}
- if(month==5) {may(today.getDate());document.month="mai";}
- if(month==6) {june(today.getDate());document.month="juin";}
- if(month==7) {july(today.getDate());document.month="juillet";}
- if(month==8) {august(today.getDate());document.month="aout";}
- if(month==9) {september(today.getDate());document.month="septembre";}
- if(month==10) {october(today.getDate());document.month="octobre";}
- if(month==11) {november(today.getDate());document.month="novembre";}
- if(month==12) {december(today.getDate());document.month="décembre";}
- document.day=""
- if(day_of_week==0)document.day="Dimanche";
- if(day_of_week==1)document.day="Lundi";
- if(day_of_week==2)document.day="Mardi";
- if(day_of_week==3)document.day="Mercredi";
- if(day_of_week==4)document.day="Jeudi";
- if(day_of_week==5)document.day="Vendredi";
- if(day_of_week==6)document.day="Samedi";
- }
- function january(date) {if(date==1)date_statement="Bonne Année !";}
- function february(date) {if(date==14)date_statement="Pensez à la St Valentin ! si t'oubli ta meuf la pauvre!";}
- function march(date) {if(date==21)date_statement="C'est le Printemps !";}
- function april(date) {if(date==1)date_statement="Le temps du poisson d'avril !";}
- function may(date) {if(date==1)date_statement="Bientôt l'été !"}
- function june(date) {if(date==21)date_statement="L été c'est le repos du guerier !";}
- function july(date) {if(date==14)date_statement="Bonne Fête Nationale !";}
- function august(date) {}
- function september(date) {if(date==21)date_statement="C'est l'Automne !";}
- function october(date) {if(date==31)date_statement="Happy Halloween.";if(date==5)date_statement="C'est l'anniversaire de Jean-François le Webmaster";}
- function november(date) {}
- function december(date) {if(date==21)date_statement+="Couvrez-vous c'est l'hiver !";if(date==25)date_statement="Joyeux Noël !";if(date==31)date_statement="Bon réveillon !";}
- function time_of_day() {var time=today.getHours();
- time_statement=""
- if(time>=6 && time<8)
- time_statement="Déjà sur le Net ! tu te lève tôt toi !,"
- if(time>=8 && time<12)
- time_statement="Bonne matinée,"
- if(time>=12 && time<13)
- time_statement="Bon appétit moi là je mange !,"
- if(time>=13 && time<17)
- time_statement="Bon après-midi sur Cool Paradise,"
- if(time>=17 && time<22)
- time_statement="Bonsoir,"
- if(time>=22 || time<6)
- time_statement="Bonne nuit il est tard !,"
- }
- // -- End Hiding Here -->
-
- </SCRIPT>
- <div align="center">
- <center>
- <table border="8" cellspacing="0" bordercolorlight="#66FFFF" bordercolordark="#0099FF" bgcolor="#000000" bordercolor="#0000FF" cellpadding="5" style="border-collapse: collapse" width="596">
- <tr>
- <td width="570">
- <p align="left"><font face="Verdana"><u><br></u>
- <font size="2" color="#00FF00">HEURE ( Selon Votre Ordinateur) :</font><br>
- <font color="#FFFFFF" face="Verdana" size='1'>
-
- <SCRIPT language="JavaScript">
- var date_statement="";
- var time_statement="";
- var today=new Date();
- var month="";
- var day="";
- function todays_date() {
- var month=today.getMonth();
- var day_of_week=today.getDay();
- date_statement=""
- document.month=""
- month++; // So it's now between 1 - 12.
- if(month==1) {january(today.getDate());document.month="janvier";}
- if(month==2) {february(today.getDate());document.month="février";}
- if(month==3) {march(today.getDate());document.month="mars";}
- if(month==4) {april(today.getDate());document.month="avril";}
- if(month==5) {may(today.getDate());document.month="mai";}
- if(month==6) {june(today.getDate());document.month="juin";}
- if(month==7) {july(today.getDate());document.month="juillet";}
- if(month==8) {august(today.getDate());document.month="aout";}
- if(month==9) {september(today.getDate());document.month="septembre";}
- if(month==10) {october(today.getDate());document.month="octobre";}
- if(month==11) {november(today.getDate());document.month="novembre";}
- if(month==12) {december(today.getDate());document.month="décembre";}
- document.day=""
- if(day_of_week==0)document.day="Dimanche";
- if(day_of_week==1)document.day="Lundi";
- if(day_of_week==2)document.day="Mardi";
- if(day_of_week==3)document.day="Mercredi";
- if(day_of_week==4)document.day="Jeudi";
- if(day_of_week==5)document.day="Vendredi";
- if(day_of_week==6)document.day="Samedi";
- }
- function january(date) {if(date==1)date_statement="Bonne Année !";}
- function february(date) {if(date==14)date_statement="Pensez à la St Valentin ! si t'oubli ta meuf la pauvre!";}
- function march(date) {if(date==21)date_statement="C'est le Printemps !";}
- function april(date) {if(date==1)date_statement="Le temps du poisson d'avril !";}
- function may(date) {if(date==1)date_statement="Bientôt l'été !";}
- function june(date) {if(date==21)date_statement="L été c'est le repos du guerier !";}
- function july(date) {if(date==14)date_statement="Bonne Fête Nationale !";}
- function august(date) {}
- function september(date) {if(date==21)date_statement="C'est l'Automne !";}
- function october(date) {if(date==31)date_statement="Happy Halloween.";}
- function november(date) {}
- function december(date) {if(date==21)date_statement+="Couvrez-vous c'est l'hiver !";if(date==25)date_statement="Joyeux Noël !";if(date==31)date_statement="Bon réveillon !";}
- function time_of_day() {var time=today.getHours();
- time_statement=""
- if(time>=6 && time<8)
- time_statement="Déjà sur le Net ! tu te lève tôt toi !,"
- if(time>=8 && time<12)
- time_statement="Bonne matinée,"
- if(time>=12 && time<13)
- time_statement="Bon appétit moi là je mange !,"
- if(time>=13 && time<17)
- time_statement="Bon après-midi sur ce cossin,"
- if(time>=17 && time<22)
- time_statement="Bonsoir,"
- if(time>=22 || time<6)
- time_statement="Bonne nuit il est tard !,"
- }
- // -- End Hiding Here -->
-
- </SCRIPT>
- <SCRIPT language=JavaScript>
- time_of_day();
- todays_date();
- document.writeln(""+time_statement+" <br>Nous sommes le "+document.day+" "+today.getDate()+" "+document.month+" et il est "+today.getHours()+":"+today.getMinutes()+":"+today.getSeconds()+" "+date_statement+"<DT>")
- </script></font><br>
-
- </font>
-
- <font size="2" color="#00FF00" face="Verdana">Votre Navigateur :<br>
- </font>
- <font color="#FFFFFF" face="Verdana" size='1'>
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- document.write ( "<FONT COLOR=red>Votre navigateur est</FONT><BR>" + navigator.appName + navigator.appVersion);
- //-->
- </SCRIPT>
- <SCRIPT language="" type=text/JavaScript>
- //D'autres scripts sur http://www.toutjavascript.com
- // Utilisation possible et gratuite à condition de laisser les commentaires
-
-
- var tjs_img;
- var tjs_src="tjs.jpg"; // Image à charger
- var tjs_size=35687; // Taille de l'image
- var tjs_delai=100;
- var tjs_nb=-1;
- var tjs_delai_max=20000; // 20 000 millisecondes
- var timer1=0; var timer2=0;
- var tjs_fin="";
-
- function Checkkos() {
- // lance la vérif de la connexion
- tjs_img=new Image();
- timer1=new Date();
- timer1=timer1.getTime();
- tjs_img.src=tjs_src+"?dummy="+timer1;
- tjs_nb=0;
- document.countkos.info.value="Vérification en cours ";
- setTimeout("Timerkos()",tjs_delai);
- }
- function Timerkos() {
- var anim="-"
- tjs_nb++;
- document.countkos.info.value="Vérification en cours ";
-
- if (tjs_nb*tjs_delai>=tjs_delai_max) { // Fin de la durée maxi
- tjs_fin=EvalConnexion(0);
- document.countkos.info.value=tjs_fin;
- } else {
- if (tjs_img.complete) {
- timer2=new Date(); timer2=timer2.getTime();
- tjs_fin=EvalConnexion(tjs_size/(timer2-timer1));
- document.countkos.info.value=tjs_fin;
- } else {
- setTimeout("Timerkos()",tjs_delai)
- }
- }
- }
- function EvalConnexion(kos) {
- tjs_nb=-1;
- res="";
- if (kos==0) {res="Connexion impossible";}
- if ((kos>0)&&(kos<3)) {res="Modem 28k";}
- if ((kos>3)&&(kos<6)) {res="Modem 56k";}
- if ((kos>6)&&(kos<100)) {res="Hauts débits";}
- if (kos>100) {res="Vous êtes en local"; }
- kos=Math.round(kos*10)/10;
- return res+" (" + kos +" ko/s)";
- }
-
- </SCRIPT>
-
- <SCRIPT language=JavaScript>
- // L'ensemble de ce script vient de http://www.toutjavascript.com (idée originale et réalisation)
- // Utilisation possible à condition de laisser ce commentaire !
- var tjs_nb=10;
- var tjs_note=0;
- var tjs_cpu=0;
- var tjs_nav=""; var tjs_os="";
- function TjsDummyCalc(mode) {
- if (mode==0) {
- var a=5.2+90*Math.sin(1)/3;
- }
- }
- function TjsGetConfig() {
- tjs_os="?"; tjs_nav="?";
- var N=navigator.appName; var V=navigator.appVersion;
- if (N=="Microsoft Internet Explorer") {
- tjs_nav="M";
- if (V.indexOf("Win",0)>0) {tjs_os="W"}
- if (V.indexOf("Mac",0)>0) {tjs_os="M"}
- }
- if (N=="Netscape") {
- tjs_nav="N";
- if (V.indexOf("Mac",0)>0) {tjs_os="M";}
- if (V.indexOf("Linux",0)>0) {tjs_os="L";}
- if (V.indexOf("Win",0)>0) {tjs_os="W";}
- }
- }
- function TjsGetNbFor(nb) {
- var timer1=new Date();
- for (var i=0; i<nb; i++) {
- TjsDummyCalc(0);
- }
- timer2=new Date();
- timer2=timer2.getTime();
- timer1=timer1.getTime();
- delta=timer2-timer1;
- if (delta<200) {return TjsGetNbFor(nb*5); }
- else {return Math.round(nb*1000/delta);}
- }
- function TjsGo() {
- TjsGetConfig();
- tjs_nb=TjsGetNbFor(tjs_nb);
- tjs_note=TjsGetNote(tjs_nb);
- document.tjsevalcpu.note.value="Note = "+tjs_note;
- tjs_cpu++;
- document.tjsevalcpu.resultat.value=(tjs_data.Estimer(tjs_note,tjs_nav,tjs_os,1));
- tjs_Check()
- }
- function TjsGetNote(nb) {
- // Fonction principale
- var timer1=new Date();
- for (var i=0; i<nb; i++) {
- TjsDummyCalc(0);
- }
- timer2=new Date();
- timer2=timer2.getTime();
- timer1=timer1.getTime();
- delta=timer2-timer1;
- return Math.round(nb/delta*10)/10;
- }
- function TjsEvalCPU() {
- document.tjsevalcpu.resultat.value="Evaluation CPU en cours...";
- document.tjsevalcpu.note.value="";
- setTimeout("TjsGo()",100);
-
- }
- function tjs_Check() {
- if (tjs_note>210) {alert("Vous avez un processeur rapide.\\nN'oublier pas de participer à l'enrichissement de la base de données des résultats ?"); return 0}
- if (tjs_nav!="M") {alert("Vous utilisez un navigateur différent de Internet Explorer.\\nN'oubliez pas de participer à l'enrichissement de la base de données des résultats ?"); return 0}
- }
-
- var tjs_data=new tjs_CreerData();
- tjs_data.Add('Athlon',500,1600,78,359,'4.446549*n+156.603','M','W',238,'0.914')
- tjs_data.Add('Athlon',600,1400,17,197,'2.151755*n+839.812','N','W',14,'0.427')
- tjs_data.Add('Pentium 4',1200,1800,97,230,'4.138422*n+780.536','M','W',15,'0.733')
- tjs_data.Add('Duron',600,1100,98,239,'3.048889*n+344.377','M','W',106,'0,803')
- tjs_data.Add('Pentium 3',350,1050,3,202,'4.41138*n+204.158','M','W',327,'0.84')
- tjs_data.Add('Pentium 3',133,1000,3,102,'3.399415*n+497.071','N','W',24,'0.369')
- tjs_data.Add('Céléron',266,1008,30,179,'4.073981*n+179.942','M','W',125,'0,865')
- tjs_data.Add('Céléron',400,760,5,98,'3.538999*n+340.533','N','W',13,'0,766')
- tjs_data.Add('Pentium 2',233,475,11,57,'5.868628*n+160.04','N','W',14,'0.829')
- tjs_data.Add('Pentium 2',200,800,29,118,'4.345567*n+112.895','M','W',123,'0.74')
- tjs_data.Add('Pentium 1',120,266,6,53,'1.832428*n+132.94','M','W',44,'0.536')
- tjs_data.Add('Pentium 1',120,200,9,24,'4.97384*n+91.714','N','W',4,'0.871')
- tjs_data.Add('K6',200,550,22,68,'4.325366*n+199.425','M','W',54)
- tjs_data.Add('K6',200,475,9,42,'5.610091*n+188.07','N','W',4)
- tjs_data.Add('G4',350,733,51,111,'6.774047*n-46.045','M','W',7)
- tjs_data.Add('G3',233,500,41,144,'0.167188*n+344.292','M','W',10)
-
-
- function tjs_CreerData(){this.N=0;this.Add=AddD;this.Estimer=tjs_Estimer;this.Detail=tjs_Detail}
- function AddD(nom,f_min,f_max,n_min,n_max,func1,nav,os,nb){
- var N=this.N;
- var I=new Object;
- I.nom=nom;
- I.f_min=f_min;I.f_max=f_max;I.n_min=n_min;I.n_max=n_max;I.nb=nb;
- I.func1=func1;I.nav=nav;I.os=os;
- this[N]=I;
- this.N++;
- }
-
- function tjs_Estimer(n,nav,os,mode) {
- var Z=""; var Mhz=0;
- if ((tjs_nav=="?")||(tjs_os=="?")) {
- Z="Configuration inconnue";
- return Z;
- }
-
- for (var i=0;i<this.N;i++) {
- if ((this[i].nav==nav)&&(this[i].os==os)&&(n>=this[i].n_min)&&(n<this[i].n_max)) {
- Mhz=Math.floor(eval(this[i].func1)/10)*10;
- if (mode==0) {
- Z+=this[i].nom+" "+Mhz+" Mhz\\n";
- }
- if (mode==1) {
- if ((Mhz<=this[i].f_max)&&(Mhz>=this[i].f_min)) {
- Z+=this[i].nom+" "+Mhz+" Mhz\\n";
- }
- }
- }
- }
- return Z;
- }
-
- function tjs_Detail() {
- var tab=new Array; var n=0;
- var Z=""; var model=""; var nb=0
- for (var i=0;i<this.N;i++) {
- model=this[i].nom; nb=0;
- for (var j=0;j<this.N;j++) {
- if (model==this[j].nom) {
- nb+=this[j].nb;
- }
- }
- Z+=model+" tous navigateurs confondus : "+nb+" résultats<BR>";
- }
- document.write(Z);
- }
-
- </SCRIPT>
- <SCRIPT language=VBScript>
- <!--
- document.write ("VBScript is enabled and working.")
-
-
- Function WM_activeXDetect(name, activeXname)
- on error resume next
- If ScriptEngineMajorVersion >= 2 then
- WM_activeXDetect = False
- WM_activeXDetect = IsObject(CreateObject(activeXname))
- If (err) then
- WM_activeXDetect = False
- End If
- Else
- WM_activeXDetect = False
- end if
- if WM_activeXDetect = True then
- document.write "<br>" & name & " " & activeXname & " est installé"
- End If
- End Function
-
- -->
- </SCRIPT>
- <SCRIPT language=JavaScript>
- if (navigator.cpuClass != null) document.write ("CPU type: " + navigator.cpuClass + "<br>")
- if (screen.colorDepth != null)document.write ("Nombre de couleurs : " + screen.colorDepth + "<br>")
- </SCRIPT>
- <SCRIPT language=JavaScript>
- var visites=history.length;
- </script>
- </font>
- <font face="Verdana">
- <br>
- </font>
- <font size="2" face="Verdana" color="#00FF00">Infos Divers :
- </font> <font color="#FFFFFF" face="Verdana" size='1'><br>
- <script language="JavaScript">
- <!-- debut
- var bestwidth =1024;
- var bestheight = 768;
- if (screen.width!= bestwidth || screen.height != bestheight)
- {
- msg = "Ce site est optimisé pour une résolution d'écran de " + bestwidth + "x" +
- bestheight + ". La votre est actuellement de " + screen.width + "x" + screen.height;
- document.write(msg);
- }
- else
- {
- document.write("Vous avez la bonne résolution qui est de :1024*768");
- }
- // End -->
- </script>
- </font>
- <font size="1" face="Verdana">
- <u><font color="#00FF00" size="2" face="Verdana">
- <br></font>
- </u>
- <br></font>
- <font size="2" face="Verdana" color="#00FF00">
- Nombre de page vue pendant la
- session :
- <script language="JavaScript">
- <!--
- document.write(visites);
- // -->
- </script>
- </font>
- <font color="#FFFFFF" face="Verdana" size='1'>
- <br><br>
- </font>
- <font color="#00FF00" face="Verdana" size="2">
- Votre dernière page vu : </font>
- <font color="#FFFFFF" face="Verdana" size='2'> <SCRIPT language=JavaScript class=unnamed1>
- var where = document.referrer;
- document.write("Celle ci => : "+where)
- </SCRIPT>
- </font>
- <font face="Verdana" size="2">
- </font></font><font face="Verdana" color="#00FF00">
- <br><br>
- <font color="#00FF00"><font size="2">Votre
- IP + Domaine (Selon Votre FAI) :</font><br> <font color="#FFFFFF" face="Verdana" size='1'>
- <script LANGUAGE="JavaScript" SRC="http://toutjavascript.free.fr/service/service.php3?mode=normal"></script>
- <SCRIPT type="text/javascript">
- <!--
- document.write("<U>Adresse IP</U> : "+ip+" ");
- document.write("<U>Domaine</U> : "+domaine+" ");
- document.write("<U>Extension</U> : "+domaine.substring(domaine.lastIndexOf('.')+1)+"<BR>");
- //--></SCRIPT>
- <i><u><br>
- </font>
- </td>
- </tr>
- </table>
- </center>
- </div>
- <center>
-
- <p align="center"> </p>
-
- </td></tr><!--msnavigation--></table>
- <!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td> </td>
- </tr><!--msnavigation--></table>
<body>
<table dir="ltr" border="0" cellpadding="0" cellspacing="0" width="100%"><tr><!--msnavigation--><td valign="top">
<SCRIPT language="JavaScript">
var date_statement="";
var time_statement="";
var today=new Date();
var month="";
var day="";
function todays_date() {
var month=today.getMonth();
var day_of_week=today.getDay();
date_statement=""
document.month=""
month++; // So it's now between 1 - 12.
if(month==1) {january(today.getDate());document.month="janvier";}
if(month==2) {february(today.getDate());document.month="février";}
if(month==3) {march(today.getDate());document.month="mars";}
if(month==4) {april(today.getDate());document.month="avril";}
if(month==5) {may(today.getDate());document.month="mai";}
if(month==6) {june(today.getDate());document.month="juin";}
if(month==7) {july(today.getDate());document.month="juillet";}
if(month==8) {august(today.getDate());document.month="aout";}
if(month==9) {september(today.getDate());document.month="septembre";}
if(month==10) {october(today.getDate());document.month="octobre";}
if(month==11) {november(today.getDate());document.month="novembre";}
if(month==12) {december(today.getDate());document.month="décembre";}
document.day=""
if(day_of_week==0)document.day="Dimanche";
if(day_of_week==1)document.day="Lundi";
if(day_of_week==2)document.day="Mardi";
if(day_of_week==3)document.day="Mercredi";
if(day_of_week==4)document.day="Jeudi";
if(day_of_week==5)document.day="Vendredi";
if(day_of_week==6)document.day="Samedi";
}
function january(date) {if(date==1)date_statement="Bonne Année !";}
function february(date) {if(date==14)date_statement="Pensez à la St Valentin ! si t'oubli ta meuf la pauvre!";}
function march(date) {if(date==21)date_statement="C'est le Printemps !";}
function april(date) {if(date==1)date_statement="Le temps du poisson d'avril !";}
function may(date) {if(date==1)date_statement="Bientôt l'été !"}
function june(date) {if(date==21)date_statement="L été c'est le repos du guerier !";}
function july(date) {if(date==14)date_statement="Bonne Fête Nationale !";}
function august(date) {}
function september(date) {if(date==21)date_statement="C'est l'Automne !";}
function october(date) {if(date==31)date_statement="Happy Halloween.";if(date==5)date_statement="C'est l'anniversaire de Jean-François le Webmaster";}
function november(date) {}
function december(date) {if(date==21)date_statement+="Couvrez-vous c'est l'hiver !";if(date==25)date_statement="Joyeux Noël !";if(date==31)date_statement="Bon réveillon !";}
function time_of_day() {var time=today.getHours();
time_statement=""
if(time>=6 && time<8)
time_statement="Déjà sur le Net ! tu te lève tôt toi !,"
if(time>=8 && time<12)
time_statement="Bonne matinée,"
if(time>=12 && time<13)
time_statement="Bon appétit moi là je mange !,"
if(time>=13 && time<17)
time_statement="Bon après-midi sur Cool Paradise,"
if(time>=17 && time<22)
time_statement="Bonsoir,"
if(time>=22 || time<6)
time_statement="Bonne nuit il est tard !,"
}
// -- End Hiding Here -->
</SCRIPT>
<div align="center">
<center>
<table border="8" cellspacing="0" bordercolorlight="#66FFFF" bordercolordark="#0099FF" bgcolor="#000000" bordercolor="#0000FF" cellpadding="5" style="border-collapse: collapse" width="596">
<tr>
<td width="570">
<p align="left"><font face="Verdana"><u><br></u>
<font size="2" color="#00FF00">HEURE ( Selon Votre Ordinateur) :</font><br>
<font color="#FFFFFF" face="Verdana" size='1'>
<SCRIPT language="JavaScript">
var date_statement="";
var time_statement="";
var today=new Date();
var month="";
var day="";
function todays_date() {
var month=today.getMonth();
var day_of_week=today.getDay();
date_statement=""
document.month=""
month++; // So it's now between 1 - 12.
if(month==1) {january(today.getDate());document.month="janvier";}
if(month==2) {february(today.getDate());document.month="février";}
if(month==3) {march(today.getDate());document.month="mars";}
if(month==4) {april(today.getDate());document.month="avril";}
if(month==5) {may(today.getDate());document.month="mai";}
if(month==6) {june(today.getDate());document.month="juin";}
if(month==7) {july(today.getDate());document.month="juillet";}
if(month==8) {august(today.getDate());document.month="aout";}
if(month==9) {september(today.getDate());document.month="septembre";}
if(month==10) {october(today.getDate());document.month="octobre";}
if(month==11) {november(today.getDate());document.month="novembre";}
if(month==12) {december(today.getDate());document.month="décembre";}
document.day=""
if(day_of_week==0)document.day="Dimanche";
if(day_of_week==1)document.day="Lundi";
if(day_of_week==2)document.day="Mardi";
if(day_of_week==3)document.day="Mercredi";
if(day_of_week==4)document.day="Jeudi";
if(day_of_week==5)document.day="Vendredi";
if(day_of_week==6)document.day="Samedi";
}
function january(date) {if(date==1)date_statement="Bonne Année !";}
function february(date) {if(date==14)date_statement="Pensez à la St Valentin ! si t'oubli ta meuf la pauvre!";}
function march(date) {if(date==21)date_statement="C'est le Printemps !";}
function april(date) {if(date==1)date_statement="Le temps du poisson d'avril !";}
function may(date) {if(date==1)date_statement="Bientôt l'été !";}
function june(date) {if(date==21)date_statement="L été c'est le repos du guerier !";}
function july(date) {if(date==14)date_statement="Bonne Fête Nationale !";}
function august(date) {}
function september(date) {if(date==21)date_statement="C'est l'Automne !";}
function october(date) {if(date==31)date_statement="Happy Halloween.";}
function november(date) {}
function december(date) {if(date==21)date_statement+="Couvrez-vous c'est l'hiver !";if(date==25)date_statement="Joyeux Noël !";if(date==31)date_statement="Bon réveillon !";}
function time_of_day() {var time=today.getHours();
time_statement=""
if(time>=6 && time<8)
time_statement="Déjà sur le Net ! tu te lève tôt toi !,"
if(time>=8 && time<12)
time_statement="Bonne matinée,"
if(time>=12 && time<13)
time_statement="Bon appétit moi là je mange !,"
if(time>=13 && time<17)
time_statement="Bon après-midi sur ce cossin,"
if(time>=17 && time<22)
time_statement="Bonsoir,"
if(time>=22 || time<6)
time_statement="Bonne nuit il est tard !,"
}
// -- End Hiding Here -->
</SCRIPT>
<SCRIPT language=JavaScript>
time_of_day();
todays_date();
document.writeln(""+time_statement+" <br>Nous sommes le "+document.day+" "+today.getDate()+" "+document.month+" et il est "+today.getHours()+":"+today.getMinutes()+":"+today.getSeconds()+" "+date_statement+"<DT>")
</script></font><br>
</font>
<font size="2" color="#00FF00" face="Verdana">Votre Navigateur :<br>
</font>
<font color="#FFFFFF" face="Verdana" size='1'>
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write ( "<FONT COLOR=red>Votre navigateur est</FONT><BR>" + navigator.appName + navigator.appVersion);
//-->
</SCRIPT>
<SCRIPT language="" type=text/JavaScript>
//D'autres scripts sur http://www.toutjavascript.com
// Utilisation possible et gratuite à condition de laisser les commentaires
var tjs_img;
var tjs_src="tjs.jpg"; // Image à charger
var tjs_size=35687; // Taille de l'image
var tjs_delai=100;
var tjs_nb=-1;
var tjs_delai_max=20000; // 20 000 millisecondes
var timer1=0; var timer2=0;
var tjs_fin="";
function Checkkos() {
// lance la vérif de la connexion
tjs_img=new Image();
timer1=new Date();
timer1=timer1.getTime();
tjs_img.src=tjs_src+"?dummy="+timer1;
tjs_nb=0;
document.countkos.info.value="Vérification en cours ";
setTimeout("Timerkos()",tjs_delai);
}
function Timerkos() {
var anim="-"
tjs_nb++;
document.countkos.info.value="Vérification en cours ";
if (tjs_nb*tjs_delai>=tjs_delai_max) { // Fin de la durée maxi
tjs_fin=EvalConnexion(0);
document.countkos.info.value=tjs_fin;
} else {
if (tjs_img.complete) {
timer2=new Date(); timer2=timer2.getTime();
tjs_fin=EvalConnexion(tjs_size/(timer2-timer1));
document.countkos.info.value=tjs_fin;
} else {
setTimeout("Timerkos()",tjs_delai)
}
}
}
function EvalConnexion(kos) {
tjs_nb=-1;
res="";
if (kos==0) {res="Connexion impossible";}
if ((kos>0)&&(kos<3)) {res="Modem 28k";}
if ((kos>3)&&(kos<6)) {res="Modem 56k";}
if ((kos>6)&&(kos<100)) {res="Hauts débits";}
if (kos>100) {res="Vous êtes en local"; }
kos=Math.round(kos*10)/10;
return res+" (" + kos +" ko/s)";
}
</SCRIPT>
<SCRIPT language=JavaScript>
// L'ensemble de ce script vient de http://www.toutjavascript.com (idée originale et réalisation)
// Utilisation possible à condition de laisser ce commentaire !
var tjs_nb=10;
var tjs_note=0;
var tjs_cpu=0;
var tjs_nav=""; var tjs_os="";
function TjsDummyCalc(mode) {
if (mode==0) {
var a=5.2+90*Math.sin(1)/3;
}
}
function TjsGetConfig() {
tjs_os="?"; tjs_nav="?";
var N=navigator.appName; var V=navigator.appVersion;
if (N=="Microsoft Internet Explorer") {
tjs_nav="M";
if (V.indexOf("Win",0)>0) {tjs_os="W"}
if (V.indexOf("Mac",0)>0) {tjs_os="M"}
}
if (N=="Netscape") {
tjs_nav="N";
if (V.indexOf("Mac",0)>0) {tjs_os="M";}
if (V.indexOf("Linux",0)>0) {tjs_os="L";}
if (V.indexOf("Win",0)>0) {tjs_os="W";}
}
}
function TjsGetNbFor(nb) {
var timer1=new Date();
for (var i=0; i<nb; i++) {
TjsDummyCalc(0);
}
timer2=new Date();
timer2=timer2.getTime();
timer1=timer1.getTime();
delta=timer2-timer1;
if (delta<200) {return TjsGetNbFor(nb*5); }
else {return Math.round(nb*1000/delta);}
}
function TjsGo() {
TjsGetConfig();
tjs_nb=TjsGetNbFor(tjs_nb);
tjs_note=TjsGetNote(tjs_nb);
document.tjsevalcpu.note.value="Note = "+tjs_note;
tjs_cpu++;
document.tjsevalcpu.resultat.value=(tjs_data.Estimer(tjs_note,tjs_nav,tjs_os,1));
tjs_Check()
}
function TjsGetNote(nb) {
// Fonction principale
var timer1=new Date();
for (var i=0; i<nb; i++) {
TjsDummyCalc(0);
}
timer2=new Date();
timer2=timer2.getTime();
timer1=timer1.getTime();
delta=timer2-timer1;
return Math.round(nb/delta*10)/10;
}
function TjsEvalCPU() {
document.tjsevalcpu.resultat.value="Evaluation CPU en cours...";
document.tjsevalcpu.note.value="";
setTimeout("TjsGo()",100);
}
function tjs_Check() {
if (tjs_note>210) {alert("Vous avez un processeur rapide.\\nN'oublier pas de participer à l'enrichissement de la base de données des résultats ?"); return 0}
if (tjs_nav!="M") {alert("Vous utilisez un navigateur différent de Internet Explorer.\\nN'oubliez pas de participer à l'enrichissement de la base de données des résultats ?"); return 0}
}
var tjs_data=new tjs_CreerData();
tjs_data.Add('Athlon',500,1600,78,359,'4.446549*n+156.603','M','W',238,'0.914')
tjs_data.Add('Athlon',600,1400,17,197,'2.151755*n+839.812','N','W',14,'0.427')
tjs_data.Add('Pentium 4',1200,1800,97,230,'4.138422*n+780.536','M','W',15,'0.733')
tjs_data.Add('Duron',600,1100,98,239,'3.048889*n+344.377','M','W',106,'0,803')
tjs_data.Add('Pentium 3',350,1050,3,202,'4.41138*n+204.158','M','W',327,'0.84')
tjs_data.Add('Pentium 3',133,1000,3,102,'3.399415*n+497.071','N','W',24,'0.369')
tjs_data.Add('Céléron',266,1008,30,179,'4.073981*n+179.942','M','W',125,'0,865')
tjs_data.Add('Céléron',400,760,5,98,'3.538999*n+340.533','N','W',13,'0,766')
tjs_data.Add('Pentium 2',233,475,11,57,'5.868628*n+160.04','N','W',14,'0.829')
tjs_data.Add('Pentium 2',200,800,29,118,'4.345567*n+112.895','M','W',123,'0.74')
tjs_data.Add('Pentium 1',120,266,6,53,'1.832428*n+132.94','M','W',44,'0.536')
tjs_data.Add('Pentium 1',120,200,9,24,'4.97384*n+91.714','N','W',4,'0.871')
tjs_data.Add('K6',200,550,22,68,'4.325366*n+199.425','M','W',54)
tjs_data.Add('K6',200,475,9,42,'5.610091*n+188.07','N','W',4)
tjs_data.Add('G4',350,733,51,111,'6.774047*n-46.045','M','W',7)
tjs_data.Add('G3',233,500,41,144,'0.167188*n+344.292','M','W',10)
function tjs_CreerData(){this.N=0;this.Add=AddD;this.Estimer=tjs_Estimer;this.Detail=tjs_Detail}
function AddD(nom,f_min,f_max,n_min,n_max,func1,nav,os,nb){
var N=this.N;
var I=new Object;
I.nom=nom;
I.f_min=f_min;I.f_max=f_max;I.n_min=n_min;I.n_max=n_max;I.nb=nb;
I.func1=func1;I.nav=nav;I.os=os;
this[N]=I;
this.N++;
}
function tjs_Estimer(n,nav,os,mode) {
var Z=""; var Mhz=0;
if ((tjs_nav=="?")||(tjs_os=="?")) {
Z="Configuration inconnue";
return Z;
}
for (var i=0;i<this.N;i++) {
if ((this[i].nav==nav)&&(this[i].os==os)&&(n>=this[i].n_min)&&(n<this[i].n_max)) {
Mhz=Math.floor(eval(this[i].func1)/10)*10;
if (mode==0) {
Z+=this[i].nom+" "+Mhz+" Mhz\\n";
}
if (mode==1) {
if ((Mhz<=this[i].f_max)&&(Mhz>=this[i].f_min)) {
Z+=this[i].nom+" "+Mhz+" Mhz\\n";
}
}
}
}
return Z;
}
function tjs_Detail() {
var tab=new Array; var n=0;
var Z=""; var model=""; var nb=0
for (var i=0;i<this.N;i++) {
model=this[i].nom; nb=0;
for (var j=0;j<this.N;j++) {
if (model==this[j].nom) {
nb+=this[j].nb;
}
}
Z+=model+" tous navigateurs confondus : "+nb+" résultats<BR>";
}
document.write(Z);
}
</SCRIPT>
<SCRIPT language=VBScript>
<!--
document.write ("VBScript is enabled and working.")
Function WM_activeXDetect(name, activeXname)
on error resume next
If ScriptEngineMajorVersion >= 2 then
WM_activeXDetect = False
WM_activeXDetect = IsObject(CreateObject(activeXname))
If (err) then
WM_activeXDetect = False
End If
Else
WM_activeXDetect = False
end if
if WM_activeXDetect = True then
document.write "<br>" & name & " " & activeXname & " est installé"
End If
End Function
-->
</SCRIPT>
<SCRIPT language=JavaScript>
if (navigator.cpuClass != null) document.write ("CPU type: " + navigator.cpuClass + "<br>")
if (screen.colorDepth != null)document.write ("Nombre de couleurs : " + screen.colorDepth + "<br>")
</SCRIPT>
<SCRIPT language=JavaScript>
var visites=history.length;
</script>
</font>
<font face="Verdana">
<br>
</font>
<font size="2" face="Verdana" color="#00FF00">Infos Divers :
</font> <font color="#FFFFFF" face="Verdana" size='1'><br>
<script language="JavaScript">
<!-- debut
var bestwidth =1024;
var bestheight = 768;
if (screen.width!= bestwidth || screen.height != bestheight)
{
msg = "Ce site est optimisé pour une résolution d'écran de " + bestwidth + "x" +
bestheight + ". La votre est actuellement de " + screen.width + "x" + screen.height;
document.write(msg);
}
else
{
document.write("Vous avez la bonne résolution qui est de :1024*768");
}
// End -->
</script>
</font>
<font size="1" face="Verdana">
<u><font color="#00FF00" size="2" face="Verdana">
<br></font>
</u>
<br></font>
<font size="2" face="Verdana" color="#00FF00">
Nombre de page vue pendant la
session :
<script language="JavaScript">
<!--
document.write(visites);
// -->
</script>
</font>
<font color="#FFFFFF" face="Verdana" size='1'>
<br><br>
</font>
<font color="#00FF00" face="Verdana" size="2">
Votre dernière page vu : </font>
<font color="#FFFFFF" face="Verdana" size='2'> <SCRIPT language=JavaScript class=unnamed1>
var where = document.referrer;
document.write("Celle ci => : "+where)
</SCRIPT>
</font>
<font face="Verdana" size="2">
</font></font><font face="Verdana" color="#00FF00">
<br><br>
<font color="#00FF00"><font size="2">Votre
IP + Domaine (Selon Votre FAI) :</font><br> <font color="#FFFFFF" face="Verdana" size='1'>
<script LANGUAGE="JavaScript" SRC="http://toutjavascript.free.fr/service/service.php3?mode=normal"></script>
<SCRIPT type="text/javascript">
<!--
document.write("<U>Adresse IP</U> : "+ip+" ");
document.write("<U>Domaine</U> : "+domaine+" ");
document.write("<U>Extension</U> : "+domaine.substring(domaine.lastIndexOf('.')+1)+"<BR>");
//--></SCRIPT>
<i><u><br>
</font>
</td>
</tr>
</table>
</center>
</div>
<center>
<p align="center"> </p>
</td></tr><!--msnavigation--></table>
<!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td> </td>
</tr><!--msnavigation--></table>
Conclusion
La chu écoeurer, je le met sur js pour que quelqu'un puisse m'aider à l'améliorer ou trouver les bugs. Aidez moi s'il-vous-plaît pcq jva y arracher à tête à ce script là!!!
Aller voir lotre version < http://www.javascriptfr.com/code.aspx?ID=18971 >
Sources du même auteur
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
IMAGINE CUP 2012, MAKE A SIGN EN FINALEIMAGINE CUP 2012, MAKE A SIGN EN FINALE par junarnoalg
Voilà qui est fait, la nouvelle est officielle ! L'équipe belge "Make a Sign" va au pays des kangourous défendre son projet dans la catégorie Software Design. http://www.imaginecup.com/CompetitionsContent/Competition/WorldwideFinalists.aspx V...
Cliquez pour lire la suite de l'article par junarnoalg KINECT 1.5 IS OUT !KINECT 1.5 IS OUT ! par Vko
La version 1.5 du Kinect For Microsoft vient tout juste de sortir ! Plein de nouveautés: Tracking de squelette en Near Mode Détection en position assise Détection faciale avec un SDK dédié Documentation et des guideline (enfin) Un out...
Cliquez pour lire la suite de l'article par Vko LES ACTUALITéS DE LA SEMAINE SUR C2I.FR (14 MAI - 20 MAI) LES ACTUALITéS DE LA SEMAINE SUR C2I.FR (14 MAI - 20 MAI) par richardc
Mise à jour des Web API du 14 Mai
Réservez dès maintenant votre journée du 20 juin pour le Windows Azure Dev Camp 2012 à Paris
Mise à jour de Team Foundation Service
MechCommander 2 sur Windows 8
Entity Framework 5 Release Candidate e...
Cliquez pour lire la suite de l'article par richardc REACTIVE EXTENSIONS : CONSOMMER DES SERVICES AVEC RX PARTIE 3, LES PIèGES à éVITERREACTIVE EXTENSIONS : CONSOMMER DES SERVICES AVEC RX PARTIE 3, LES PIèGES à éVITER par Groc
Une mauvaise utilisation de rx lors de l'écriture d'une couche d'accès à des services peut conduire à des cas embarassants avec des erreurs mal gérées, des appels qui ne partent lorsqu'ils le devraient, et même des résultats incorrects . le tout nuis...
Cliquez pour lire la suite de l'article par Groc SHAREPOINT BLOG SITE, PROBLèME D'ARCHIVESSHAREPOINT BLOG SITE, PROBLèME D'ARCHIVES par junarnoalg
Dernièrement, nous avons migré le site
myTIC
vers un nouveau serveur SharePoint 2010. Dans les contenus que nous vouloins récupérer, nous avions un certain nombre de blogs.
Nous avons utilisé les commandes Power...
Cliquez pour lire la suite de l'article par junarnoalg
Forum
UTILISER UN .JSUTILISER UN .JS par zaikoe
Cliquez pour lire la suite par zaikoe
Logiciels
sDEVIS-FACTURES vlPRO (8.1.0.3)SDEVIS-FACTURES VLPRO (8.1.0.3)sDEVIS-FACTURES vlPRO a été mis au point pour les particuliers, créateurs, entrepreneurs, artisa... Cliquez pour télécharger sDEVIS-FACTURES vlPRO 974 Application Server (12.2.4.6)974 APPLICATION SERVER (12.2.4.6)Développez de puissantes applications dans un environnement de 'cloud computing', clusterisé, séc... Cliquez pour télécharger 974 Application Server vPicture (1.4.2.1)VPICTURE (1.4.2.1)Avec vPicture, hébergez vos images facilement et rapidement.
vPicture est un utilitaire simple, ... Cliquez pour télécharger vPicture Easy-Planning (2.2.1.6)EASY-PLANNING (2.2.1.6)Easy-Planning permet de créer des plannings sous la représentation de diagrammes et est adapté au... Cliquez pour télécharger Easy-Planning COM-BACKUP (2.0)COM-BACKUP (2.0)
COM-BACKUP est un logiciel de sauvegarde qui permet de planifier les sauvegardes de vos dossiers ...
Cliquez pour télécharger COM-BACKUP
|