[JavaScript] 纯文本查看 复制代码 function firm1() {
if (confirm("您完成了 " + Math.round((fm0.time_class0.value - 30) / 60) + " 分钟学时,确定要退出吗?")) {
document.cookie = "class_time=" + window.btoa(Math.round((fm0.time_class0.value - 30) / 60));
document.cookie = "class_id=" + window.btoa(document.fm0.class_id.value);
document.getElementById('fm0').submit()
//location.href = "user_class_ck.php";
} else {
return;
}
}
[HTML] 纯文本查看 复制代码 <form name="fm0" id="fm0" action="user_class_ck.php" method="get">
<input type="text" name="time_class" size="4" disabled="">
<input type="hidden" name="time_class0">
<input type="hidden" name="class_id" value="3">
<input type="hidden" id="user_id" name="user_id" value="333">
</form> |