⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adminvote.js

📁 前台完全分离了HTML与ASP
💻 JS
字号:
function appendVoteSection()
{
	if (document.frmVoteTheme.VoteSection.value == "")
	{
		alert("请填写投票选项后再点追加");
		document.frmVoteTheme.VoteSection.focus();
		return false;
	}
	if(document.frmVoteTheme.VoteSections.value=="")
	 document.frmVoteTheme.VoteSections.value +=document.frmVoteTheme.VoteSection.value;
	else
	 document.frmVoteTheme.VoteSections.value +="," + document.frmVoteTheme.VoteSection.value;
	document.frmVoteTheme.VoteSection.value = "";
	document.frmVoteTheme.VoteSection.focus();
}
function checkVoteForm()
{
	if(document.frmVoteTheme.VoteTheme.value=="")
	{
		alert("投票主题必须填写");
		document.frmVoteTheme.VoteTheme.focus();
		return false;
	}
	if(document.frmVoteTheme.EndTime.value=="")
	{
		alert("结束时间必须填写!");
		document.frmVoteTheme.EndTime.focus();
		return false;
	}
	if(document.frmVoteTheme.VoteSections.value=="")
	{
		alert("投票选项不能为空");
		document.frmVoteTheme.VoteSections.focus();
		return false;
	}
	return true;
}
var flag = true;
function selectAll(cButton) 
{   
	for (var i=0;i<document.VoteForm.VoteThemeDel.length;i++) {
		var temp=document.VoteForm.VoteThemeDel[i];
		temp.checked=!temp.checked;
	}
   if (flag)
   {
     cButton.src="images/Button/cancelSelect.gIF";
	 flag=false;
   }
   else
   {
     cButton.src="images/Button/selectAll.gIF";
	 flag=true;
   }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -