Programalama > JAVA SCRIPT


Ort. 0
Puan ver:
<!-- saved from url=(0029)http://www.adresonline.gen.tr.tc -->
<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1254">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Web İşlem</title>
<style type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000">

<p align="center"></style> <script language="JavaScript">
<!-- Lotto Script by kurt.grigg@virgin.net
function lotto(){
for (j=1; j < 48; j++)//stop zero!?
 {
 var a=Math.round(Math.random()*j+1);
 var b=Math.round(Math.random()*j+1);
 var c=Math.round(Math.random()*j+1);
 var d=Math.round(Math.random()*j+1);
 var e=Math.round(Math.random()*j+1);
 var f=Math.round(Math.random()*j+1);
 }
var x=new Array(a,b,c,d,e,f);
if ((x[0] == x[1]) || (x[0] == x[2]) || (x[0] == x[3]) || (x[0] == x[4]) || (x[0] == x[5]) ||
    (x[1] == x[2]) || (x[1] == x[3]) || (x[1] == x[4]) || (x[1] == x[5]) || 
    (x[2] == x[3]) || (x[2] == x[4]) || (x[2] == x[5]) ||                        
    (x[3] == x[4]) || (x[3] == x[5]) ||
    (x[4] == x[5]) || (x[5] == x[4]))
lotto();//restart 
else
 {
 var y=x.toString();
 var z=y.split(',');
 for (i=0; i < z.length; i++)
 {
 z[i]=z[i]+" ";
 if (z[i].length < 3)//add '0' to singles  
 z[i]="0"+z[i]+" ";
 }
 z=z.sort();
 Nos=z[0]+z[1]+z[2]+z[3]+z[4]+z[5];
  if (document.all)
  {document.all.layer1.innerHTML=Nos;}//OR Z!
  else if (document.layers)
  {
  document.layers.layer1.document.open();
  document.layers.layer1.document.write("<span style='position:absolute;top:0px;left:0px;font-family:Verdana;font-size:20px;color:#888888;text-align:center'> "+Nos+"</span>");
  document.layers.layer1.document.close();
  }
  T=setTimeout('lotto()',10);
 }
}
function StOp(){
setTimeout('clearTimeout(T)',3000);
}
//-->
</script> </p>

<p align="center"> </p>

<hr size="1" width="600">
<div align="center"><center>

<table border="0" width="250" height="50">
    <tr>
        <td align="center"><form name="form">
            <p><input type="button" value="Lottery Number Picker"
            onclick="lotto();StOp()"> </p>
        </form>
        <p><span id="layer1" class="a1">Result</span> </p>
        </td>
    </tr>
</table>
</center></div>

<p align="center"><font face="Westminster"><strong>
<u>www.adresonline.gen.tr.tc</u></strong></font></p>
</body>
</html>


Yorumlar                 Yorum Yaz
Bu hazır kod'a ilk yorumu siz yapın!
KATEGORİLER
ASP - 240
ASP.NET - 24
C# - 75
C++ - 174
CGI - 8
DELPHI - 247
FLASH - 49
HTML - 536
PASCAL - 246
PERL - 11
PHP - 160
WML - 9
XML - 2
Copyright © 2002 - 2024 Hazır Kod - Tüm Hakları Saklıdır.
Siteden yararlanırken gizlilik ilkelerini okumanızı tavsiye ederiz.
hazirkod.com bir İSOBİL projesidir.