Pagina de start a forumului Potty`z Forum
Pagina de start a forumului Potty`z Forum FAQ Cautare Membri Grupuri Profil Mesaje private
 
Acum este: 10/10/2026 11:42  
Lotto Numbers 6/49 16 -Romanian Version- by @stro

 
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului Potty`z Forum -> Script-uri Java si Tutoriale Java Subiectul anterior | Subiectul urmator  
Autor Mesaj
Potty
Administrator
Administrator
Potty

Data inscrierii: 13/Iul/2005
Mesaje: 158
Localitate: Radauti

MesajTrimis: 02/09/2006 22:26    Titlul subiectului: Lotto Numbers 6/49 16 -Romanian Version- by @stro Raspunde cu citat (quote)

Cod:
<START>
<!-- Pasul 1: Codul urmator in sectiunea <head>: -->
<style>
.a1{
position:relative;
font-family:Verdana;
font-size:20px;
color:#888888;
}
</style>

<script language="JavaScript">

/*****************************************
* Generator Numere Loto de @stro
*****************************************/

var totalnumbers=6 //Numerele totale care vor fi generate
var lowerbound=1   //Numarul cel mai mic
var upperbound=49  //Numarul cel mai mare

function lotto(){
B=' ';
LottoNumbers=new Array();
for (i = 1; i <= totalnumbers; i++)
{
RandomNumber = Math.round(lowerbound+Math.random()*(upperbound-lowerbound));
 for (j = 1; j <= totalnumbers; j)
 {
 if (RandomNumber == LottoNumbers[j])
   {
    RandomNumber=Math.round(lowerbound+Math.random()*(upperbound-lowerbound));
    j=0;
   }
 j++;
 }
LottoNumbers[i]=RandomNumber;
}
LottoNumbers=LottoNumbers.toString();
X=LottoNumbers.split(',');
for (i=0; i < X.length; i++)
{
X[i]=X[i]+' ';
if (X[i].length==2)
X[i]='0'+X[i];
}
X=X.sort();
for (i=0; i </span>
</script>
<!-- Pasul 2: Urmatorul cod in sectiunea <body> -->
<table>
<tr>
<td>
<form>
<input>
</form>
<span>Rezultat</span>
</td>
</tr>
</table>
<END>

CREDIT: @stro
_________________
Lotto Numbers 6/49   16 -Romanian Version- by @stro Lotto Numbers 6/49   16 -Romanian Version- by @stro
Lotto Numbers 6/49   16 -Romanian Version- by @stro Lotto Numbers 6/49   16 -Romanian Version- by @stro

Lotto Numbers 6/49   16 -Romanian Version- by @stro Lotto Numbers 6/49   16 -Romanian Version- by @stro
Sus
Vezi profilul utilizatorului Trimite mesaj privat
Afiseaza mesajele pentru a le previzualiza:   
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului Potty`z Forum -> Script-uri Java si Tutoriale Java Ora este GMT + 3 ore
Pagina 1 din 1

 
Mergi direct la:  
Nu puteti crea un subiect nou in acest forum
Nu puteti raspunde in subiectele acestui forum
Nu puteti modifica mesajele proprii din acest forum
Nu puteti sterge mesajele proprii din acest forum
Nu puteti vota in chestionarele din acest forum


Powered by phpBB © 2001, 2002 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro