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

📄 check.js

📁 这是一套基于WEB的网站管理系统
💻 JS
字号:
function CheckForm(myform){
	myform.content.value=getHTML(); 
	MessageLength=IframeID.document.body.innerHTML.length;
	if(MessageLength<LeastString){alert("留言内容不能小于"+LeastString+"个字符!");return false;}
	if(MessageLength>MaxString){alert("留言内容不能大于"+MaxString+"个字符!");return false;}
	if (myform.username.value==""){
		alert("用户名称不能为空!");
		document.myform.username.focus();
		return false;
	}
	if (myform.topic.value==""){
		alert("留言主题不能为空!");
		document.myform.topic.focus();
		return false;
	}
	if ((myform.GuestEmail.value.indexOf("@") == -1) || (myform.GuestEmail.value.indexOf(".") == -1)){
		alert("请查看您的E-mail地址是否正确,请重录入!");
		document.myform.GuestEmail.focus();
       		return false;
	}
	
	//document.myform.submit1.disabled = true;
	//document.myform.submit();
}

function formatbt()
{
  var arr = showModalDialog("../editor/btformat.htm?",null, "dialogWidth:250pt;dialogHeight:166pt;toolbar=no;location=no;directories=no;status=no;menubar=NO;scrollbars=no;resizable=no;help=0; status:0");
  if (arr != null){
     document.myform.Topicformat.value=arr;
     myt.innerHTML="<span style='background-color: #FFFFff;font-size:12px' "+arr+">设置标题样式 ABCdef</span>";
  }
}
function Cancelform()
{
  document.myform.Topicformat.value='';
  myt.innerHTML="<span style='background-color: #FFFFff;font-size:12px'>设置标题样式 ABCdef</span>";
}
function CtrlEnter()
{
	if(event.ctrlKey && window.event.keyCode==13)
	{
		this.document.myform.submit();
	}	
}

⌨️ 快捷键说明

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