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

📄 vartool.js

📁 前台完全分离了HTML与ASP
💻 JS
📖 第 1 页 / 共 2 页
字号:
		}
		else{
		QueryStr +="MemberCount";
		displayStr +="会员总数";
		}
		strNum++;
	}

	if(document.SiteCountForm.NowOnline.checked){
		if(strNum>1){
		QueryStr +=",NowOnline";
		displayStr +=",当前在线";
		}
		else
		{
		QueryStr +="NowOnline";
		displayStr +="当前在线";
		}
		strNum++;
	}

	if(document.SiteCountForm.GbookCount.checked){
		if(strNum>1){
		QueryStr +=",GbookCount";
		displayStr +=",留言总数";
		}
		else
		{
		QueryStr +="GbookCount";
		displayStr +="留言总数";
		}
		strNum++;
	}

	if(document.SiteCountForm.AccessSum.checked){
		if(strNum>1){
		QueryStr +=",AccessSum";
		displayStr +=",总访问量";
		}
		else{
		QueryStr +="AccessSum";
		displayStr +="总访问量";
		}
		strNum++;
	}
	if(document.SiteCountForm.ViewSum.checked){
		if(strNum>1){
		QueryStr +=",ViewSum";
		displayStr +=",总浏览量";
		}
		else{
		QueryStr +="ViewSum";
		displayStr +="总浏览量";
		}
		strNum++;
	}
	if(document.SiteCountForm.TodayAccessCount.checked){
		if(strNum>1){
		QueryStr +=",TodayAccessCount";
		displayStr +=",今日访问量";
		}
		else{
		QueryStr +="TodayAccessCount";
		displayStr +="今日访问量";
		}
		strNum++;
	}
	if(document.SiteCountForm.MaxOnlineCount.checked){
		if(strNum>1){
		QueryStr +=",MaxOnlineCount";
		displayStr +=",最高在线人数";
		}
		else{
		QueryStr +="MaxOnlineCount";
		displayStr +="最高在线人数";
		}
		strNum++;
	}
	if(document.SiteCountForm.MaxOnlineTime.checked){
		if(strNum>1){
		QueryStr +=",MaxOnlineTime";
		displayStr +=",最高在线时间";
		}
		else{
		QueryStr +="MaxOnlineTime";
		displayStr +="最高在线时间";
		}
		strNum++;
	}
	document.SiteCountForm.SiteCountFun.value = "<%=DisplaySiteCount(\""+QueryStr+"\",\""+displayStr+"\"," +SiteCountIsHaveIco+ ",\"" +SiteCountIcoPath+ "\")%>";
	 
  }
  
  //最新会员调用
  function mkNewMember()
  {
    var NewMemberIsHaveIco,NewMemberIcoPath;
	if(document.NewMemberForm.NewMemberIsHaveIco.checked)
       NewMemberIsHaveIco = true;
	else
	   NewMemberIsHaveIco = false;
	if(document.NewMemberForm.NewMemberIsHaveIco.checked && document.NewMemberForm.NewMemberIcoPath.value==""){
	  alert("请填写图标地址!!");
	  document.NewMemberForm.NewMemberIcoPath.focus();
	  return false;
	}
	else
	  NewMemberIcoPath = document.NewMemberForm.NewMemberIcoPath.value;
	document.NewMemberForm.NewMemberFun.value = "<%=DisplayMember(5,\"\"," +NewMemberIsHaveIco+ ",\"" +NewMemberIcoPath+ "\")%>";
	 
  }
  
  //友情链接
  function mkSiteLink()
  {
	var txtLinkDisplayNum,txtLinkRowNum,imgLinkDisplayNum,imgLinkRowNum;
	if (document.SiteLinkForm.txtLinkDisplayNum.value == "")
	{
	   alert("请填写总共显示的数量!");
	   document.SiteLinkForm.txtLinkDisplayNum.focus();
	   return false;
	}
	else
	  txtLinkDisplayNum = document.SiteLinkForm.txtLinkDisplayNum.value;
	  
	if (document.SiteLinkForm.txtLinkRowNum.value == "")
	{
	   alert("请填写总共显示的数量!");
	   document.SiteLinkForm.txtLinkRowNum.focus();
	   return false;
	}
	else
	 txtLinkRowNum = document.SiteLinkForm.txtLinkRowNum.value;
	 
	if (document.SiteLinkForm.imgLinkDisplayNum.value == "")
	{
	   alert("请填写总共显示的数量!");
	   document.SiteLinkForm.imgLinkDisplayNum.focus();
	   return false;
	}
	else
	  imgLinkDisplayNum = document.SiteLinkForm.imgLinkDisplayNum.value;
	  
	if (document.SiteLinkForm.imgLinkRowNum.value == "")
	{
	   alert("请填写总共显示的数量!");
	   document.SiteLinkForm.imgLinkRowNum.focus();
	   return false;
	}
	else
	 imgLinkRowNum = document.SiteLinkForm.imgLinkRowNum.value;
	
	document.SiteLinkForm.SiteLinkFun.value = "<%=displaySiteLink(" +txtLinkDisplayNum+ "," +txtLinkRowNum+ "," +imgLinkDisplayNum+ "," +imgLinkRowNum+ ")%>";
  }
  
  
  //文章类别
    function mkArticleType()
  {
    var ArticleTypeIsHaveIco,ArticleTypeDisplayNum,ArticleTypeMaxWord;
	if(document.ArticleTypeDisplayForm.ArticleTypeDisplayNum.value==""){
	   alert("请填写显示数量!!");
	   document.ArticleTypeDisplayForm.ArticleTypeDisplayNum.focus();
	   return false;
	}
	else{
	   ArticleTypeDisplayNum = document.ArticleTypeDisplayForm.ArticleTypeDisplayNum.value;
	}
	if(document.ArticleTypeDisplayForm.ArticleTypeMaxWord.value==""){
	   alert("请填写显示的最大字数!!");
	   document.ArticleTypeDisplayForm.ArticleTypeMaxWord.focus();
	   return false;
	}
	else{
	   ArticleTypeMaxWord = document.ArticleTypeDisplayForm.ArticleTypeMaxWord.value;
	}
	if(document.ArticleTypeDisplayForm.ArticleTypeIsHaveIco.checked)
       ArticleTypeIsHaveIco = true;
	else
	   ArticleTypeIsHaveIco = false;
	if(document.ArticleTypeDisplayForm.ArticleTypeIsHaveIco.checked && document.ArticleTypeDisplayForm.ArticleTypeIcoPath.value==""){
	  alert("请填写图标地址!!");
	  document.ArticleTypeDisplayForm.ArticleTypeIcoPath.focus();
	  return false;
	}
	ArticleTypeIcoPath = document.ArticleTypeDisplayForm.ArticleTypeIcoPath.value;
	document.ArticleTypeDisplayForm.ArticleTypeFun.value = "<%=DisplayType(\"article\",Request.QueryString(\"parentID\")," +ArticleTypeDisplayNum+ "," +ArticleTypeIsHaveIco+ ",\"" +ArticleTypeIcoPath+ "\"," +ArticleTypeMaxWord+ ",ZD_ArticleList)%>";
	 
  }
  //软件类别
  
   function mkSoftType()
  {
    var SoftTypeIsHaveIco,SoftTypeDisplayNum,SoftTypeMaxWord;
	if(document.SoftTypeDisplayForm.SoftTypeDisplayNum.value==""){
	   alert("请填写显示数量!!");
	   document.SoftTypeDisplayForm.SoftTypeDisplayNum.focus();
	   return false;
	}
	else{
	   SoftTypeDisplayNum = document.SoftTypeDisplayForm.SoftTypeDisplayNum.value;
	}
	if(document.SoftTypeDisplayForm.SoftTypeMaxWord.value==""){
	   alert("请填写显示的最大字数!!");
	   document.SoftTypeDisplayForm.SoftTypeMaxWord.focus();
	   return false;
	}
	else{
	   SoftTypeMaxWord = document.SoftTypeDisplayForm.SoftTypeMaxWord.value;
	}
	if(document.SoftTypeDisplayForm.SoftTypeIsHaveIco.checked)
       SoftTypeIsHaveIco = true;
	else
	   SoftTypeIsHaveIco = false;
	if(document.SoftTypeDisplayForm.SoftTypeIsHaveIco.checked && document.SoftTypeDisplayForm.SoftTypeIcoPath.value==""){
	  alert("请填写图标地址!!");
	  document.SoftTypeDisplayForm.SoftTypeIcoPath.focus();
	  return false;
	}
	SoftTypeIcoPath = document.SoftTypeDisplayForm.SoftTypeIcoPath.value;
	document.SoftTypeDisplayForm.SoftTypeFun.value = "<%=DisplayType(\"Soft\",Request.QueryString(\"parentID\")," +SoftTypeDisplayNum+ "," +SoftTypeIsHaveIco+ ",\"" +SoftTypeIcoPath+ "\"," +SoftTypeMaxWord+ ",ZD_SoftList)%>";
	 
  }
  //下属频道
  function mkChannel()
  {
    var ChannelIsHaveIco,ChannelIcoPath;
	if(document.ChannelForm.ChannelIsHaveIco.checked)
       ChannelIsHaveIco = true;
	else
	   ChannelIsHaveIco = false;
	if(document.ChannelForm.ChannelIsHaveIco.checked && document.ChannelForm.ChannelIcoPath.value==""){
	  alert("请填写图标地址!!");
	  document.ChannelForm.ChannelIcoPath.focus();
	  return false;
	}
	else
	  ChannelIcoPath = document.ChannelForm.ChannelIcoPath.value;
	document.ChannelForm.ChannelFun.value = "<%=DisplayChannel(Request.QueryString(\"ID\")," +ChannelIsHaveIco+ ",\"" +ChannelIcoPath+ "\",\"Channel.asp\")%>";
	 
  }
  //投票表单
  function mkVoteForm()
  {  
  	var voteButtonIco,lookButtonIco,themeIco,voteX,voteY;
  	//alert("dfs");
	if(document.frmVote.voteButtonIco.value==""){
	   alert("请填写投票按钮地址!!");
	   document.frmVote.voteButtonIco.focus();
	   return false;
	}
	if(document.frmVote.lookButtonIco.value==""){
	   alert("请填写查看按钮地址!!");
	   document.frmVote.lookButtonIco.focus();
	   return false;
	}
	if(document.frmVote.themeIco.value==""){
	   alert("请填写主题图标地址!!");
	   document.frmVote.themeIco.focus();
	   return false;
	}
	if(document.frmVote.voteX.value==""){
	   alert("请填写弹出窗口宽度!!");
	   document.frmVote.voteX.focus();
	   return false;
	}
	if(document.frmVote.voteY.value==""){
	   alert("请填写弹出窗口高度!!");
	   document.frmVote.voteY.focus();
	   return false;
	}
	voteButtonIco=document.frmVote.voteButtonIco.value;
	lookButtonIco=document.frmVote.lookButtonIco.value;
	themeIco = document.frmVote.themeIco.value;
	voteX = document.frmVote.voteX.value;
	voteY = document.frmVote.voteY.value;
	document.frmVote.VoteFormFun.value="<%=DisplayVoteForm(\""+voteButtonIco+"\",\""+lookButtonIco+"\",\""+themeIco+"\","+voteX+","+voteY+")%>";
}

⌨️ 快捷键说明

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