📄 ping.js
字号:
<? if eq 1 1 '<script language="JavaScript">' '' ?>
<? if eq 1 1 '<? include ../html/js/ip.js ?>' '<script language="JavaScript" src="../html/js/ip.js"></script>' ?>
<? if eq 1 1 '<? include ../html/js/jsl.js ?>' '<script language="JavaScript" src="../html/js/jsl.js"></script>' ?>
<? if eq 1 1 '<? include ../html/js/error.js ?>' '<script language="JavaScript" src="../html/js/error.js"></script>' ?>
<? if eq 1 1 '' '<script language="JavaScript">' ?>
function uiPollResult()
{
document.getElementById("uiPostPingResultForm").submit();
}
function uiDoOnLoad()
{
jslSetValue("uiViewPingIPAddress","uiPostPingIPAddress");
jslSetValue("uiViewPingSize","uiPostPingSize");
jslSetValue("uiViewPingNumber","uiPostPingNumber");
if (document.getElementById("uiPostPingMore").value == 1)
setInterval("uiPollResult()",1000);
}
function uiCancel()
{
}
function uiSave()
{
if(doValidateIP(document.getElementById("uiViewPingIPAddress").value) == false)
return false;
if (parseInt(document.getElementById("uiViewPingSize").value) == 0)
{
alert("Please select a ping size more than 0 and less than or equal to 64,000.");
return false;
}
if (parseInt(document.getElementById("uiViewPingNumber").value) == 0)
{
alert("Please select a ping count more than 0 and less than or equal to 9.");
return false;
}
if (parseInt(document.getElementById("uiViewPingSize").value) > 64000)
{
alert("Please select a ping size less than or equal to 64,000.");
return false;
}
if (parseInt(document.getElementById("uiViewPingNumber").value) >= 10)
{
alert("Please select a ping count less than or equal to 9.");
return false;
}
if (parseInt(document.getElementById("uiViewPingNumber").value) < 1)
{
alert("Please select a ping count from 1 to 9.");
return false;
}
//Aids 050802 invalid ping value
if (isNaN(parseInt(document.getElementById("uiViewPingNumber").value)))
{
alert("Please select a ping count from 1 to 9.");
return false;
}
//Aids 050802 invalid ping value
jslSetValue("uiPostPingIPAddress","uiViewPingIPAddress");
jslSetValue("uiPostPingSize","uiViewPingSize");
jslSetValue("uiPostPingNumber","uiViewPingNumber");
document.getElementById("uiPostForm").submit();
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -