培训自动记录时间
程序员文章站
2022-07-04 19:46:36
...
国际惯例,强烈不建议使用IE,推荐2345加速浏览器、chrome浏览器、360极速浏览器
1.进入相应课程学习,如下图
2.按F12,弹出如下窗口
3.复制下面代码到前一步的窗口中,按Enter执行
// 去掉弹窗
function openTishi(second) {
if (second == randomTime) //随机时间提示
{
setRandomTipTime();
updateStudyTime(0);
}
}
// 提示保存时间
function DoConverseCallTimer() {
if (isClose == 1) {
return;
}
if (document.form2.thzt.value == "") {
//alert("请输入倒计时开始的秒数!");
} else {
var minute = "0";
var second = "0";
if (videoifplayFlag) {
begintime = parseInt(begintime) + 1;
}
minute = parseInt(begintime / 60);
second = begintime % 60;
if (minute < "21") {
document.form2.thzt.value = minute + "分" + second + "秒";
jQuery("#benci").html(minute + "分" + second + "秒," + (randomTime - begintime)+"秒后记录时间");
} else {
document.form2.thzt.value = minute + "分" + second + "秒";
return;
}
timer1 = window.setTimeout("DoConverseCallTimer()", 1000);
document.form2.passedtime.value = begintime;
openTishi(begintime);
}
}
如图: