HRA: JEDNORUKY BANDITA (2)

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

167
p167.html / p167.zip
Znama automatova hra Jednoruky Bandita.
24888b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<HTML> <TITLE>JavaScript DESTINATION - P167</TITLE> <BODY BGCOLOR="#FFFFFF"> <SCRIPT LANGUAGE="JavaScript"> <!-- ls=" abcdef"; isn1=new Array(); for (i=1;i<7;i++){ isn1[i]=new Image(); isn1[i].src="w"+i+".gif"; } isn=new Array(); for (i=1;i<5;i++){ isn[i]=new Image(); isn[i].src="s"+i+".gif"; } var pri=new Array(); for (i=1;i<6;i++){ pri[i]=new Image(); pri[i].src="p"+i+".gif"; } var win=new Array(); win[0]="ccc"; win[1]="bcd"; win[2]="cde"; win[3]="dea"; win[4]="aaa"; win[5]="bbe"; win[6]="ebe"; win[7]="eac"; win[8]="bbb"; win[9]="aeb"; var hctr=0; function spinIt(){ if (hctr==1){ document.prize.src=pri[5].src; } hctr++; if ((hctr>0)&&(hctr<7)){ handleIt(); } else{ wheelIt(); } } function wheelIt(){ document.lfwhl.src=isn1[6].src; setTimeout("document.mdwhl.src=isn1[6].src",2000); setTimeout("document.rtwhl.src=isn1[6].src",4000); setTimeout("wheelIt1()",6000); } function wheelIt1(){ srand(); pos=ls.indexOf(win[rec].substring(0,1)) document.lfwhl.src=isn1[pos].src; pos=ls.indexOf(win[rec].substring(1,2)) document.mdwhl.src=isn1[pos].src; pos=ls.indexOf(win[rec].substring(2,3)) document.rtwhl.src=isn1[pos].src; if (win[rec]=="aaa"||win[rec]=="bbb"||win[rec]=="ccc"){ winIt(); } else{ document.prize.src=pri[4].src; } } function winIt(){ if (win[rec]=="aaa"){ document.prize.src=pri[3].src; } if (win[rec]=="bbb"){ document.prize.src=pri[2].src; } if (win[rec]=="ccc"){ document.prize.src=pri[1].src; } } function srand(){ today=new Date(); rand=today.getTime(); picker="a"+rand picker=picker.charAt((picker.length - 4)); rec=picker; } function handleIt(){ if (hctr==4){hctr=5;} if (hctr<4){ document.spin.src=isn[hctr].src; setTimeout("spinIt()",75); } else{ document.spin.src=isn[(7-hctr)].src; setTimeout("spinIt()",75); } } // --> </SCRIPT> </HEAD> <BODY BGCOLOR="white"><CENTER> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR><TD><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR><TD COLSPAN=3 ALIGN=CENTER><FONT COLOR="blue" SIZE=6><B>Jednoruky bandita</B></FONT><BR>Vyhrajte zlavu pri svojom nakupe !<BR>Staci sa dotknut rucky nalavo</TD><TD></TD></TR> <TR><TD VALIGN=TOP><BR> <IMG NAME="lfwhl" HEIGHT=118 BORDER=0 WIDTH=59 SRC="w1.gif" ALT="left wheel"></TD> <TD VALIGN=TOP><BR><IMG NAME="mdwhl" HEIGHT=118 BORDER=0 WIDTH=59 SRC="w1.gif" ALT="middle wheel"></TD> <TD VALIGN=TOP><BR><IMG NAME="rtwhl" HEIGHT=118 BORDER=0 WIDTH=59 SRC="w1.gif" ALT="right wheel"></TD></TR> </TABLE> <TD VALIGN=BOTTOM><A HREF="p167.html" onMouseover="hctr=1;spinIt();"><IMG NAME="spin" HEIGHT=118 BORDER=0 WIDTH=59 SRC="s1.gif" ALT="Handle"></TD></TR> <TR><TD COLSPAN=2><IMG SRC="p5.gif" NAME="prize" HEIGHT=40 WIDTH=256></TD></TR> </TABLE> </center> </BODY> </HTML>
[ Navrat / BACK ]