vcode.js
来自「人事管理系统论文(全) 亏我找了三四天才找到的东西」· JavaScript 代码 · 共 39 行
JS
39 行
function refreshC_code(aid)
{
var pp= Math.round((Math.random()) * 100000000);
document.getElementById("VerificationPic").src = "http://comment.blog.hexun.com/inc/vcodepic.aspx?pp="+pp;
}
function refreshCode(aid)
{
var pp= Math.round((Math.random()) * 100000000);
document.getElementById("VerificationPic").src = "http://comment.blog.hexun.com/inc/vcodepic.aspx?articleid=" + aid + "&pp="+pp;
}
function refreshCodeV2(aid)
{
var pp= Math.round((Math.random()) * 100000000);
document.getElementById("VerificationPic").src = "http://comment.blog.hexun.com/inc/vcodepic.aspx?articleid=" + aid + "&pp="+pp;
if (document.getElementById("vcodeHint"))
{
document.getElementById("vcodeHint").innerHTML = "看不清楚?换一张吧。";
}
if (document.getElementById("vcodeShow"))
{
document.getElementById("vcodeShow").innerHTML = "1";
}
}
function showCode(aid)
{
if (document.getElementById("vcodeShow"))
{
if (document.getElementById("vcodeShow").innerHTML == "0")
{
refreshCodeV2(aid);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?