<script type="text/javascript">filter()</script>
<script type='text/javascript'>
$(document).ready(function (){
var $text = $("#exe").on('keyup', filter);
var a = Math.ceil(Math.random() * 10);
var b = Math.ceil(Math.random() * 10);
$("#bt").hide();
$("#bt2").hide();
var $c = a + b;
var $activo;
var $variable3;
$activo=1;
function filter(){
if($activo==1)
{
var retVal = prompt("Cuanto es "+ a + " + " + b + " ? ", "Respuesta");
$variable= parseInt(retVal);
$variable2= parseInt($c);
if ($variable === $variable2)
{
$variable3=$variable;
$("#bt").show();
$("#bt2").show();
$activo=0;
}
}
return $variable3;
};
});
</script>
<?php
$_SESSION['variable'] = echo 'getVar()';
$aviso=0;
?>
Comentarios sobre la versión: 1.0 (0)
No hay comentarios