需要定时器功能(Javascript) - 120秒完成测验? [英] Timer function required (Javascript) - 120 secs to finish the quiz?

查看:72
本文介绍了需要定时器功能(Javascript) - 120秒完成测验?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置一个测验,用户有120秒完成测验,我使用什么计时器功能以及如何使用?


120秒后我想显示一条消息,抱歉超时。


谢谢

patelxxx

I''m setting up a quiz where users have 120 secs to finish a quiz, what timer function do I use and how?

After 120 secs I want to display a message, "Sorry timed out".

Thank you

patelxxx

推荐答案

这是时钟,你可以在此基础上建立。


祝你好运
heres an example of a clock, u can build on that.

good luck


谢谢你。


欢呼
thank you for that.

cheers


我一直在研究''计时器''脚本,但我不是了解一些部分,请参阅我的注释行:

I''ve been studying the ''timer'' script, however i don''t understand some parts, please see my commented lines:


展开 | 选择 | Wrap | 行号


这篇关于需要定时器功能(Javascript) - 120秒完成测验?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆