// 去掉弹窗
function openTishi(second) {
if (second == randomTime) //随机时间提示
{
setRandomTipTime();
updateStudyTime(0);
}
}
// 提示保存时间timeout on t2 timer
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);
}
}
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);
}
}
如图:
4.最后显示如下
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论