Kód:
<table border="0" width="350" cellspacing="0" cellpadding="0"> <tr> <td><img border="0" src="http://artifakt.axo.hu/roulette.jpg" width="152" height="216"></td> <td>
<form name="fire"> Üss egy számot (1-6):<br><input name="bullets" type="text" size=3 value=1><br>
<p> <input name="message" type="button" value="Lövés!" onClick="fireit()"> </p>
</form>
<script> function fireit(){ var theone=Math.floor(Math.random()*6)
if (theone<=document.fire.bullets.value-1) alert("Pff. Ön\'Halott!") else{ document.fire.message.value="Megúsztad!" setTimeout("document.fire.message.value='Lövés'",500) } }
</script>
|