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

源代码在线查看: getspecialarticlelist.js

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

相关代码

				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 SetLabelFlag(Obj)
				{
				 if (Obj.value=='-1')
				   {
				    document.myform.LabelFlag.value=1;
					document.all.MoreLinkArea.style.display="none";
				   }
				  else
				  { document.myform.LabelFlag.value=0; 
				   document.all.MoreLinkArea.style.display="";
				  }
				}
				function InsertScriptFun()
				{   if (document.myform.LabelName.value=='')
				     {
					  alert('请输入标签名称');
					  document.myform.LabelName.focus(); 
					  return false
					  }
					  //if (document.myform.SpecialList.value=='0')
				     //{
					//  alert('请选择一个专题');
					 // document.myform.SpecialList.focus(); 
					// return false
					//  }
				    var SpecialList=document.myform.SpecialList.value;
					var 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+'"';
					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.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.LabelContent.value=	'{$GetSpecialArticleList("'+SpecialList+'",'+ShowClassName+','+OpenType+','+ArticleListNumber+','+RowHeight+','+TitleLen+','+ArticleSort+','+ColNumber+','+ShowPicFlag+','+NavType+','+Nav+','+MoreLinkType+','+MoreLink+','+SplitPic+','+DateRule+','+DateAlign+','+TitleCss+','+DateCss+')}';
					document.myform.submit();
				}
							

相关资源