Accueil > > > LOTTO
LOTTO
Information sur la source
Description
Salut: Donne apres 15sec 7 chiffres au hasard le site origine : http://www.espacejavascript.com/jeux_1.php j'ai modifie le code parce que a l'origine il ne donne que 5 chiffres ( entre 1 et 21 jeux du lote avec les jetons ) voila..... bon loto
Source
<html>
<head>
<LINK href="file:///C:/postit_fichiers/menu.css" type=text/css rel=StyleSheet>
<SCRIPT language=Javascript src="postit.js"></SCRIPT>
</HEAD>
<BODY bottomMargin=0 leftMargin=0 topMargin=0
onload="postit(-5,20,'ATTENTION:<br>j\'ai modifié le script<br>d\'origine<br>www.<br>espacejavascript.com<br>/jeux_1.php<br>!!<br><br><small>(Cliquer sur la <br>punaise pour fermer)</small>')"
rightMargin=0 MarginHeight="0" MarginWidth="0">
</BODY>
</HTML>
<script language="javascript">
/*
JAVASCRIPT CREE PAR
OORTOUNGORF - ESPACE JAVASCRIPT.COM
http://www.espacejavascript.com
*/
function tirage()
{
document.prono.pr1.style.color = '#ffffff';
document.prono.pr2.style.color = '#ffffff';
document.prono.pr3.style.color = '#ffffff';
document.prono.pr4.style.color = '#ffffff';
document.prono.pr5.style.color = '#ffffff';
document.prono.pr6.style.color = '#ffffff';
document.prono.pr7.style.color = '#ffffff';
nbre = 49;
n1 = 1+Math.floor(Math.random()*nbre);
n2 = 1+Math.floor(Math.random()*nbre);
n3 = 1+Math.floor(Math.random()*nbre);
n4 = 1+Math.floor(Math.random()*nbre);
n5 = 1+Math.floor(Math.random()*nbre);
n6 = 1+Math.floor(Math.random()*nbre);
n7 = 1+Math.floor(Math.random()*nbre);
if((n1 == n2)||(n1 == n3)||(n1 == n4)||(n1 == n5)||(n1 == n6)||(n1 == n7)||(n2 == n1)||(n2 == n3)||(n2 == n4)||(n2 == n5)||(n2 == n6)||(n2 == n7)||(n3 == n1)||(n3 == n2)||(n3 == n4)||(n3 == n5)||(n3 == n6)||(n3 == n7)||(n4 == n1)||(n4 == n2)||(n4 == n3)||(n4 == n5)||(n4 == n6)||(n4 == n7)||(n5 == n1)||(n5 == n2)||(n5 == n3)||(n5 == n4)||(n5 == n6)||(n5 == n7)||(n6 == n1)||(n6 == n2)||(n6 == n3)||(n6 == n4)||(n6 == n5)||(n6 == n7)||(n7 == n1)||(n7 == n2)||(n7 == n3)||(n7 == n4)||(n6 == n5)||(n6 == n7))
{
tirage();
}
else
{
with(document)
{
getElementById("loto1").innerText = n1;
getElementById("loto2").innerText = n2;
getElementById("loto3").innerText = n3;
getElementById("loto4").innerText = n4;
getElementById("loto5").innerText = n5;
getElementById("loto6").innerText = n6;
getElementById("loto7").innerText = n7;
}
}
}
function resultats()
{
var i = 0;
with(document.prono)
{
p1 = pr1.value;
p2 = pr2.value;
p3 = pr3.value;
p4 = pr4.value;
p5 = pr5.value;
p6 = pr6.value;
p7 = pr7.value;
}
if((p1 == n1)||(p1 == n2)||(p1 == n3)||(p1 == n4)||(p1 == n5))
{
document.prono.pr1.style.color = '#ff8000';
i++;
}
if((p2 == n1)||(p2 == n2)||(p2 == n3)||(p2 == n4)||(p2 == n5))
{
document.prono.pr2.style.color = '#ff8000';
i++;
}
if((p3 == n1)||(p3 == n2)||(p3 == n3)||(p3 == n4)||(p3 == n5))
{
document.prono.pr3.style.color = '#ff8000';
i++;
}
if((p4 == n1)||(p4 == n2)||(p4 == n3)||(p4 == n4)||(p4 == n5))
{
document.prono.pr4.style.color = '#ff8000';
i++;
}
if((p5 == n1)||(p5 == n2)||(p5 == n3)||(p5 == n4)||(p5 == n5))
{
document.prono.pr5.style.color = '#ff8000';
i++;
}
if((p6 == n1)||(p6 == n2)||(p6 == n3)||(p6 == n4)||(p6 == n5))
{
document.prono.pr6.style.color = '#ff8000';
i++;
}
if((p7 == n1)||(p7 == n2)||(p7 == n3)||(p7 == n4)||(p7 == n5))
{
document.prono.pr7.style.color = '#ff8000';
i++;
}
if(i == 0)
{
document.getElementById("resultats").innerText = '';
return(false);
}
if(i == 1)
{
document.getElementById("resultats").innerText = 'Vous avez 1 bon numéro !';
return(false);
}
if((i < 5)&&(i > 1))
{
document.getElementById("resultats").innerText = 'Vous avez '+i+' bons numéros !';
return(false);
}
if(i == 5)
{
document.getElementById("resultats").innerText = 'Vous avez 5 bons numéros !';
return(false);
}
}
function loto()
{
document.getElementById("resultats").innerText = 'Choisissez 5 numéros entre 1 et 21...';
document.prono.reset();
document.prono.pr1.style.color = '#ffffff';
document.prono.pr2.style.color = '#ffffff';
document.prono.pr3.style.color = '#ffffff';
document.prono.pr4.style.color = '#ffffff';
document.prono.pr5.style.color = '#ffffff';
document.prono.pr6.style.color = '#ffffff';
document.prono.pr7.style.color = '#ffffff';
}
</script>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Loto Flash.....par FKP95!!!!!!</title>
</head>
<body bgcolor="#0061AD">
<table cellpadding=0 cellspacing=0>
<tr>
<td background="fond_loto.gif" width=320 height=200 align="center" bgcolor="#0061AD">
<br><br>
<form name="prono">
<input name="pr1" size="1" maxlength=2 STYLE="align-text:center;color:#0061AD;border:none; background:#0061AD;font-family:verdana;font-weight:bold;font-size:11">
<input type="text" name="pr2" size="1" maxlength=2 STYLE="align-text:center;color:#0061AD;border:none; background:#0061AD;font-family:verdana;font-weight:bold;font-size:11">
<input type="text" name="pr3" size="1" maxlength=2 STYLE="align-text:center;color:#0061AD;border:none; background:#0061AD;font-family:verdana;font-weight:bold;font-size:11">
<input type="text" name="pr4" size="1" maxlength=2 STYLE="align-text:center;color:#0061AD;border:none; background:#0061AD;font-family:verdana;font-weight:bold;font-size:11">
<input type="text" name="pr5" size="1" maxlength=2 STYLE="align-text:center;color:#0061AD;border:none; background:#0061AD;font-family:verdana;font-weight:bold;font-size:11">
<input type="text" name="pr6" size="1" maxlength=2 STYLE="align-text:center;color:#0061AD;border:none; background:#0061AD;font-family:verdana;font-weight:bold;font-size:11">
<input type="text" name="prx" size="1" maxlength=2 STYLE="align-text:center;color:#0061AD;border:none; background:#0061AD;font-family:verdana;font-weight:bold;font-size:11">
<input type="text" name="pr7" size="1" maxlength=2 STYLE="align-text:center;color:#0061AD;border:none; background:#0061AD;font-family:verdana;font-weight:bold;font-size:11">
<br>
<br>
</form>
<DIV ID="resultats" STYLE="color:#ffffff;font-family:verdana;font-size:10;font-weight:bold;position:relative;visibility:visible">
</DIV>
<img border="0" src="logo_loto.gif" width="144" height="47"><table cellpadding=0 cellspacing=1 bgcolor="#004080">
<tr>
<td width=20 height=20 bgcolor="#0061AD" STYLE="padding:4" align="center" valign="center">
<font color="#00ff00" face="verdana" size=1><b>
<DIV ID="loto1" STYLE="position:relative"></DIV>
</td>
<td width=20 height=20 bgcolor="#0061AD" STYLE="padding:4" align="center" valign="center">
<font color="#00ff00" face="verdana" size=1><b>
<DIV ID="loto2" STYLE="position:relative"></DIV>
</td>
<td width=20 height=20 bgcolor="#0061AD" STYLE="padding:4" align="center" valign="center">
<font color="#00ff00" face="verdana" size=1><b>
<DIV ID="loto3" STYLE="position:relative"></DIV>
</td>
<td width=20 height=20 bgcolor="#0061AD" STYLE="padding:4" align="center" valign="center">
<font color="#00ff00" face="verdana" size=1><b>
<DIV ID="loto4" STYLE="position:relative"></DIV>
</td>
<td width=20 height=20 bgcolor="#0061AD" STYLE="padding:4" align="center" valign="center">
<font color="#00ff00" face="verdana" size=1><b>
<DIV ID="loto5" STYLE="position:relative"></DIV>
</td>
<td width=20 height=20 bgcolor="#0061AD" STYLE="padding:4" align="center" valign="center">
<font color="#00ff00" face="verdana" size=1><b>
<DIV ID="loto6" STYLE="position:relative"></DIV>
</td>
<td width=20 height=20 bgcolor="#0061AD" STYLE="padding:4" align="center" valign="center">
<font color="#00ff00" face="verdana" size=1><b>
<DIV ID="loto7" STYLE="position:relative"></DIV>
</td>
</tr>
</table>
<br>
<input type="button" onclick="affichage=window.setInterval('tirage()', 100);window.setTimeout('clearInterval(affichage);resultats()', 15000)" value="
La Baraca!!!!
" STYLE="color:#ffffff;border:1px double #ffffff; background:#4890c0;font-family:verdana;font-weight:bold;font-size:10">
<input type="button" onclick="loto()" STYLE="color:#ffffff;border:1px double #0061AD; background:#0061AD;font-family:verdana;font-weight:bold;font-size:10">
</td></tr></table>
</body>
</html>
Conclusion
aucune
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
MYTIC - SHAREPOINT 2010 : DéJà UN MYTHE MICROSOFT ?MYTIC - SHAREPOINT 2010 : DéJà UN MYTHE MICROSOFT ? par junarnoalg
La prochaine session de MyTIC aura lieu à Namur, le 23 mars prochain. Pendant presque une heure, nous parlerons de SharePoint 2010. Voici un aperçu du programme.
Accueil : 17h30 Début de la session : 18h00 - Les nouvelles int...
Cliquez pour lire la suite de l'article par junarnoalg [MIX10] KEYNOTE DEUXIèME JOURNéE - INTERNET EXPLORER 9, HTML5, VISUAL STUDIO 2010, ODATA[MIX10] KEYNOTE DEUXIèME JOURNéE - INTERNET EXPLORER 9, HTML5, VISUAL STUDIO 2010, ODATA par cyril
Le deuxième keynote du mix fut très riche en contenu. Internet Explorer 9 Juste un après le lancement de Internet Explorer 8, Microsoft a dévoilé les nouveautés de Internet Explorer 9. Désormais, IE supportera HTML5, SVG et CSS3. L'élément ...
Cliquez pour lire la suite de l'article par cyril CERTIFICATIONS BETA .NET 4CERTIFICATIONS BETA .NET 4 par KooKiz
Les inscriptions pour les certifications beta .NET 4 ont commencé. L'inscription est offerte pour les examens suivants : - 71-511, TS: Windows Applications Development with Microsoft .NET Framework 4 - 71-515, TS: Web Applications Development with...
Cliquez pour lire la suite de l'article par KooKiz [MIX 2010] - MICROSOFT TRANSLATOR TECHNOLOGY PREVIEW V2[MIX 2010] - MICROSOFT TRANSLATOR TECHNOLOGY PREVIEW V2 par redo
J'imagine que la plupart d'entre vous connaissent bien et utilisent le service de traduction de Google, mais connaissez-vous celui de Microsoft . Microsoft Translator ? Effectivement, Microsoft nous annoncé le lancement version 2 de la Technologie Preview...
Cliquez pour lire la suite de l'article par redo
Logiciels
Academy System (10.9.4.0)ACADEMY SYSTEM (10.9.4.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Xilisoft Convertisseur Vidéo Ultimate (5.1.39.0305)XILISOFT CONVERTISSEUR VIDéO ULTIMATE (5.1.39.0305)Xilisoft Convertisseur Vidéo Ultimate est un outil puissant de conversion vidéo, facile à utilise... Cliquez pour télécharger Xilisoft Convertisseur Vidéo Ultimate Xilisoft DVD Ripper Ultimate (5.0.64.0304)XILISOFT DVD RIPPER ULTIMATE (5.0.64.0304)Xilisoft DVD Ripper Ultimate est un logiciel excellent pour copier et convertir DVD vers presque ... Cliquez pour télécharger Xilisoft DVD Ripper Ultimate Rigs of Rods (63.3)RIGS OF RODS (63.3)c'est un jeu de multi-simulation camions,autobus voitures, avions, bateaux, hélicoptère avec défo... Cliquez pour télécharger Rigs of Rods
|