Make your own free website on Tripod.com
<script language="JavaScript">
<!-- Hide
// slot machin script by freabeer@webtv.net
var v = new Array;
v[1]="7";
v[2]="$";
v[3]="#";
v[4]="";
v[5]="=";
v[6]="-";
var sl = new Array;
sl[1]=1;
sl[2]=2;
sl[3]=3;
sl[4]=4;
sl[5]=5;
sl[6]=6;
sl[7]=2;
sl[8]=3;
sl[9]=4;
sl[10]=5;
sl[11]=6;
sl[12]=3;
sl[13]=4;
sl[14]=5;
sl[15]=6;
sl[16]=4;
sl[17]=5;
sl[18]=6;
sl[19]=5;
sl[20]=6;
sl[21]=6;
sl[22]=1;
sl[23]=2;
sl[24]=3;
sl[25]=4;
sl[26]=5;
sl[27]=6;
var x=0;var x1=0;var x2=0;var x3=0;
var y=0;var y1=0;var y2=0;var y3=0;
var z=0;var z1=0;var z2=0;var z3=0;
var view_1="";var view_2="";var view_3="";
var ps=0;var t1=0;var t2=0;var t3=0;
var gold=500;var prize=0;var gold_view="";
function view(){
ps=0;
while (ps<25){
x=(Math.random(1));
y=(Math.random(1));
z=(Math.random(1));
x=(x*27);y=(y*27);z=(z*27);
x=Math.round(x);y=Math.round(y);z=Math.round(z);
x1=(x-1);if( x1<1){x1 = x1+27;}
x2=x;
x3=(x+1);if ( x3>27 ){x3=x3-27;}
y1=(y-1);if( y1<1){y1=y1+27;}
y2=y;
y3=(y+1);if( y3>27 ){y3=y3-27;}
z1=(z-1);if( z1<1){z1 = z1+27;}
z2=z;
z3=(z-1);if( z3<1){z3 = z3-27;}
view_1=(v[sl[x1]]+"\n"+v[sl[x2]]+"\n"+v[sl[x3]]);
view_2=(v[sl[y1]]+"\n"+v[sl[y2]]+"\n"+v[sl[y3]]);
view_3=(v[sl[z1]]+"\n"+v[sl[z2]]+"\n"+v[sl[z3]]);
window.document.the_form.slot_1.value=view_1;
window.document.the_form.slot_2.value=view_2;
window.document.the_form.slot_3.value=view_3;
ps++;}
t1=(v[sl[x2]]);t2=(v[sl[y2]]);t3=(v[sl[z2]]);
if ((t1 == t2) && (t2 == t3))
{prize=((1300000-(sl[x2]*215000)));
alert("Winner\nYou have won "+prize);
gold=gold+prize;}
if ((t1 != t2) || (t2 != t3)){
alert("Loser"); gold=gold-5;}
gold_view=("Money left\n__________\n"+gold+"$");
window.document.the_form.money.value=gold_view;
} // the_form,slot_# 1,2,3 pull=view()
// End Hide -->
</script>
</head>
<body bgcolor="#000000" text="#FFFFFF" link="#FFFF99" vlink="#FFFFCC">
<center>
<form name="the_form">
<textarea name="slot_1" rows=3 cols=1></textarea>
<textarea name="slot_2" rows=3 cols=1></textarea>
<textarea name="slot_3" rows=3 cols=1></textarea>
<input type="button" name="button" value="Pull" onClick=view()><br>
<textarea name="money" rows=3 cols=12></textarea>
</form>
</center>