setInterval("alert('注意')", 100000);  //100秒跳出一次

解决方案 »

  1.   

    setInterval("alert('注意')", 100000);  //100秒跳出一次
      

  2.   

    最好写在body的onload事件里:
    <body onload=setInterval("alert('注意')",100000)>
      

  3.   

    if (time()=="18:00")
    {alert("aaa");
    }
      

  4.   

    如:在2003年6月12日18:00弹出“该下班啦!”void function vChkTime(iYear, iMonth, iDay, iHour, iMinute) {
      var oDate = new Date();
      if (iYear == oDate.getFullYear() &&
          iMonth == oDate.getMonth() + 1 &&
          iDay == oDate.getDate() &&
          iHour == oDate.getHours() &&
          iMinute == oDate.getMinutes() &&
      ) {
        window.alert("该下班啦!");
      }
    }<body onload="window.setInterval('vChkTime(2003, 6, 12, 18, 0)', 60000);">
      

  5.   

    老兄,这样还是不行!因为根本循环不了!
    不过没关系,这问题一同事帮我解决了
    先算出当前时间和设定时间的差值,然后用setTimeout
    呵呵,麻烦了,各位!