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

📄 getdownloadlist.js

📁 科汛网站管理系统(KeSion CMS) v2.2 是科汛网络基于ASP技术开发的网站管理系统
💻 JS
字号:
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 SetLabelFlag(Obj)
{
 if (Obj.value=='-1')
  document.myform.LabelFlag.value=1;
  else
  document.myform.LabelFlag.value=0; 
}
function InsertScriptFun()
{   if (document.myform.LabelName.value=='')
     {
	  alert('请输入标签名称');
	  document.myform.LabelName.focus(); 
	  return false
	  }
	 // if (document.myform.ClassList.value=='0')
    // {
	//  alert('请选择下载栏目');
	 // document.myform.ClassList.focus(); 
	 // return false
	//  }
    var ClassList=document.myform.ClassList.value;
	var IncludeSubClass=false,NavType=1;
	var ShowClassName,DownLoadProperty;
	var ShowStyle=document.all.ShowStyle.value;
	var OpenType=document.all.OpenType.value;
	var DownLoadListNumber=document.myform.DownLoadListNumber.value;
	var RowHeight=document.myform.RowHeight.value;
	var TitleLen=document.myform.TitleLen.value;
	var DownLoadSort='"'+document.myform.DownLoadSort.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<document.myform.ShowClassName.length;i++){
	 var KM = document.myform.ShowClassName[i];
	if (KM.checked==true)	   
		ShowClassName = KM.value
	}
	for (var i=0;i<document.myform.DownLoadProperty.length;i++){
	 var KM = document.myform.DownLoadProperty[i];
	if (KM.checked==true)	   
		DownLoadProperty = KM.value
	}
	if  (DownLoadListNumber=='')  DownLoadListNumber=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=	'{$GetDownLoadList("'+ClassList+'",'+IncludeSubClass+','+ShowClassName+','+OpenType+','+DownLoadProperty+','+DownLoadListNumber+','+RowHeight+','+TitleLen+','+DownLoadSort+','+ColNumber+','+ShowStyle+','+NavType+','+Nav+','+MoreLinkType+','+MoreLink+','+SplitPic+','+DateRule+','+DateAlign+','+TitleCss+','+DateCss+')}';
	document.myform.submit();
}

⌨️ 快捷键说明

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