?? sms_func.js
字號:
<script language="JavaScript">
function CheckShowFormNewSms(strFormName)
{
if (strFormName.selIncepterId.value == "" )
{
alert(':-) 對不起!請您選擇短信對象(2--4字)');
strFormName.selIncepter.focus()
return false;
}
if (strFormName.iptTitle.value == "" ||
strFormName.iptTitle.value.length > 20)
{
alert(':-) 對不起!請您填入短信主題(1--20字)');
strFormName.iptTitle.focus()
return false;
}
if (strFormName.txtContent.value.length >1000 ||
strFormName.txtContent.value.length < 5)
{
alert(':-) 對不起!請您填入短信內容(5--200字)');
strFormName.txtContent.focus()
return false;
}
submitonce(strFormName);
return true;
}
function SelectAllChkBox(strFormName)
{
for (var i=0;i<strFormName.elements.length;i++)
{
var e = strFormName.elements[i];
if (e.name != 'chkSms')
e.checked = strFormName.chkSms.checked;
}
}
function DelClew()
{
if(confirm('確定刪除選定的留言嗎?'))
{
this.document.frmDelSms.submit();
return true;
}
return false;
}
function DelAllClew()
{
if(confirm('確定刪除所有本箱的留言嗎?'))
{
this.document.frmDelSms.submit();
return true;
}
return false;
}
function CheckDelForm()
{
var bolChk = false
for (var i = 0; i < frmDelSms.elements.length; i++)
{
var strE = frmDelSms.elements[i];
if (strE.checked)
{
bolChk = true;
break;
}
}
if (bolChk = false)
{
alert(':-) 對不起!請您選擇要刪除的短信');
return bolChk;
}
return true;
}
</Script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -