科汛网站管理系统(KeSion CMS) v2.2 是科汛网络基于ASP技术开发的网站管理系统

源代码在线查看: addclassjs.js

软件大小: 2838 K
上传用户: lihuitao1987
关键词: KeSion CMS 2.2 ASP
下载地址: 免注册下载 普通下载 VIP

相关代码

				function SetStatus(Obj)
				{
				  if (Obj.value=='0')
				   {
				    document.all.MoreLinkArea.style.display="";
				   }
				   else
				   document.all.MoreLinkArea.style.display="none";
				}
				function SetNavStatus()
				{
				  if (document.all.NavType.value==0)
				   {document.all.NavWord.style.display="";
				    document.all.NavPic.style.display="none";}
				  else
				  {
				   document.all.NavWord.style.display="none";
				   document.all.NavPic.style.display="";}
				}
				function SetMoreLinkStatus()
				{
				if (document.all.MoreLinkType.value==0)
				   {document.all.LinkWord.style.display="";
				    document.all.LinkPic.style.display="none";}
				  else
				  {
				   document.all.LinkWord.style.display="none";
				   document.all.LinkPic.style.display="";}
				}
				function CheckForm()
				{   if (document.myform.JSName.value=='')
				     {
					  alert('请输入JS名称');
					  document.myform.JSName.focus(); 
					  return false
					  }
					  if (document.myform.JSFileName.value=='')
					  {
					   alert('请输入JS文件名');
					  document.myform.JSFileName.focus(); 
					  return false
					  }
					 if (CheckEnglishStr(document.myform.JSFileName,"JS文件名")==false) 
					   return false;
					 if (!IsExt(document.myform.JSFileName.value,'JS'))
					   { alert('JS文件名的扩展名必须是.js');
					   	  document.myform.JSFileName.focus(); 
					      return false;
					   }
				    var ClassList=document.myform.ClassList.value;
					var IncludeSubClass=false,NavType=1;
					var ShowClassName,ArticleProperty,ShowPicFlag;
					var OpenType='"'+document.myform.OpenType.value+'"';
					var ArticleListNumber=document.myform.ArticleListNumber.value;
					var RowHeight=document.myform.RowHeight.value;
					var TitleLen=document.myform.TitleLen.value;
					var ArticleSort='"'+document.myform.ArticleSort.value+'"';
					var ColNumber=document.myform.ColNumber.value;
					var Nav,NavType=document.myform.NavType.value;
					var MoreLink,MoreLinkType=document.myform.MoreLinkType.value;
					var SplitPic='"'+document.myform.SplitPic.value+'"';
					var DateRule=document.myform.DateRule.value;
					var DateAlign='"'+document.myform.DateAlign.value+'"';
					var TitleCss='"'+document.myform.TitleCss.value+'"';
					var DateCss='"'+document.myform.DateCss.value+'"';
					if (document.myform.IncludeSubClass.checked) IncludeSubClass=true;
					for (var i=0;i					 var KM = document.myform.ShowClassName[i];
					if (KM.checked==true)	   
						ShowClassName = KM.value
					}
					for (var i=0;i					 var KM = document.myform.ArticleProperty[i];
					if (KM.checked==true)	   
						ArticleProperty = KM.value
					}
					for (var i=0;i					 var KM = document.myform.ShowPicFlag[i];
					if (KM.checked==true)	   
						ShowPicFlag = KM.value
					}
					if  (ArticleListNumber=='')  ArticleListNumber=10;
					if (RowHeight=='') RowHeight=20
					if  (TitleLen=='') TitleLen=30;
					if  (ColNumber=='') ColNumber=1;
					if  (NavType==0) Nav='"'+document.myform.TxtNavi.value+'"'
					 else  Nav='"'+document.myform.NaviPic.value+'"';
					if  (MoreLinkType==0) MoreLink='"'+document.myform.MoreLinkWord.value+'"'
					else  MoreLink='"'+document.myform.MoreLinkPic.value+'"';
					document.myform.JSConfig.value=	'GetArticleList,"'+ClassList+'",'+IncludeSubClass+','+ShowClassName+','+OpenType+','+ArticleProperty+','+ArticleListNumber+','+RowHeight+','+TitleLen+','+ArticleSort+','+ColNumber+','+ShowPicFlag+','+NavType+','+Nav+','+MoreLinkType+','+MoreLink+','+SplitPic+','+DateRule+','+DateAlign+','+TitleCss+','+DateCss;
					document.myform.submit();
				}			

相关资源