i need some help in my code :) , i don't know how to arange the code properly :) .
this is my first time to study java :) .
Code:
<html>
<title>clagmay_shuffle</title>
<body>
<form>
<input type="button" value="" id="btn1"/>
<input type="button" value="" id="btn2"/>
<input type="button" value="" id="btn3"/>
<input type="button" value="shuffle" name="btn" onclick="shuffle()"/>
</form>
<script type="text/javascript">
function shuffle(){
var x = document.getElementById('btn1').value=Math.floor(Math.random()*6)+1,
y = document.getElementById('btn2').value=Math.floor(Math.random()*6)+1,
z = document.getElementById('btn3').value=Math.floor(Math.random()*6)+1, i=0;
for setTimeout(function(x,y,z;i++){
{
if (x=y,z)
{
alert("wow");
}
continue;
}
},90);
}
</script>
</body>
</html>
Comment