Forum'da ara:
Ara


« Önceki başlık :: Sonraki başlık »  
Yazar Mesaj
Mesaj24.10.2009, 14:23 (UTC)    
Mesaj konusu: Sayısal Loto 6 Şanslı Rakamı veren HTML kod Sİtene ekLemeLsn

Kod:
<TABLE borderColor="#cc33ff" width="200" border="2">
<TBODY>
<TR>
<TD>
<CENTER>Sans oyunu rakamları cekilisi! Sayısal Loto - Sans Topu - On Numara

<form NAME="lottery">
<p>Kac adet rakam istiyorsun?<br>
<input type="text" name="balls_drawn" size="2" value="6"><br>
<br>
Kac adet rakam icinden?<br>
<input type="text" name="max_number" size="2" value="49"><br>
<br>
Sanslı numaranız:<br>
<input TYPE="text" NAME="numbers" SIZE="40" MAXLENGTH="40" VALUE><br>
<input TYPE="button" VALUE="Cevir" onclick="generatenos();"><br>
<br>
</p>
</form><script language="javascript">
<!--
//code to generate and display random numbers, using values entered by a user on a form
//(namely BALLS_DRAWN and MAX_NUMBER), for use as lottery numbers etc.
//Copyright (C) Rhodus Corp 1997 [rhodus( at )geocities.com]
//do not use this code in whole or in part without including these four lines.
var loop; //loop counter
var randy; //holds random numbers
function make_array(size) //creates a one-dimensional array
{
this.length = size;
for (a=0; a<size; a++) this[a]="";
}
function generatenos() //flags certain numbers in a one-dimensional array
{
hold = new make_array(document.lottery.max_number.value);
document.lottery.numbers.value = ""; //clear numbers box
//now we need to generate some numbers-----------------------------------------------
for(loop=0;loop<document.lottery.balls_drawn.value;loop++) //1 step through loop for each ball to be drawn
{
randy = Math.round(Math.random()*(document.lottery.max_number.value-1));
randy++; //ie. number between 0+1 (=1) and max_value-1+1 (=max_value)
if(hold[randy]==1)
{
loop--; //if number already chosen, go back one step in the loop
continue; //and start again (so no duplicate numbers)
}
if(hold[randy]!=1)
{
hold[randy]=1; //if not already flagged, then flag the number in the 'hold' list
}
}
//-----------------------------------------------------------------------------------
//now we need to display the numbers-------------------------------------------------
for(loop=0;loop<=document.lottery.max_number.value;loop++)
{
if(hold[loop]==1) //ie. if 'loop' is flagged
document.lottery.numbers.value = document.lottery.numbers.value + loop + ", "; //display on 'numbers' text field, seperated by commas
}
//-----------------------------------------------------------------------------------
}
// -->
</script> </CENTER><font face="arial, helvetica" size="-2"><a href="http://enigma1xx.blogcu.com">www.atakan06ank.tr.gg</a></font></CENTER></TD></TR></TBODY></TABLE></FORM>
Mesaj24.10.2009, 14:24 (UTC)    
Mesaj konusu:

|^^^^^^^^^^^^\ ||\
|__ EMEĞE SAYGI__| ||'""|""\___
| _____________ l | |__|__|___| )
(@!)!(@)"""""**|(@) (@)****|(@) www.atakan06ank.tr.gg
Önceki mesajları göster:   


Powered by phpBB © 2001, 2005 phpBB Group
Türkçe Çeviri: phpBB Türkiye & Erdem Çorapçıoğlu