正文  高级教程 > Web应用开发平台 >

android 计时器 rexsee开发

var num = document.getElementById("txt1").value; var txt = parseInt(num); if(!isNaN(txt)){ document.getElementById("div2").innerHTML = ""; ......

var num = document.getElementById("txt1").value;
        var txt = parseInt(num);
        if(!isNaN(txt)){
          document.getElementById("div2").innerHTML = "";
          rexseeChronometer.show("label:您需要在"+txt+"秒钟内完成任务!;align:center;background-color:transparent;color:#000000;border-width:0;window-style:light;",txt,"javascript:alert('时间到了!')");
        }else{
          document.getElementById("div2").innerHTML = "<font color='#ff0000'>(请输入数字)</font>";