function numChi(){ var x = Math.ceil(Math.random()*3); var y = prompt("选择你的答案:1,2,或3"); if (y > 3){ var ventana = window.open("","Respuesta","width=600px, height=200px"); ventana.document.write(""); ventana.document.write("
(关闭此窗口再次尝试)
");} else{ if (x>y){ var ventana = window.open("","Respuesta","width=600px, height=200px"); ventana.document.write(""); ventana.document.write("(关闭此窗口再次尝试)
");} else if (x(关闭此窗口再次尝试)
");} else { var ventana = window.open("","Respuesta","width=600px, height=200px"); ventana.document.write(""); ventana.document.write("(关闭此窗口再次尝试)
");} } }