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

📄 admin_code_ls.asp

📁 Art2008 CMS是一款具有强大的功能的基于ASP语言的网站管理软件
💻 ASP
📖 第 1 页 / 共 4 页
字号:
else
     array_D1=split(D1,"&")
     if ubound(array_D1)=0 then 
	          lm_string=array_D1(0)
           '取出lm的值 
	       if left(lm_string,3)="lm="  then
		       lm=right(lm_string,len(lm_string)-3)
			   lm2=lm
		   end if
           '取出lm2的值 
	       if left(lm_string,3)="lm2"  then 
		       lm2=right(lm_string,len(lm_string)-4)
			   lm=lm2
		   end if
	 end if     '结束ubound(array_D1)=0 then 
      '当有两个值时,
	 if ubound(array_D1)=1 then 
	          lm_string=array_D1(0)
	          lm2_string=array_D1(1)
			  lm=right(lm_string,len(lm_string)-3)
			  lm2=right(lm2_string,len(lm2_string)-4)
	 end if   '结束ubound(array_D1)=1
 
 end if     '结束D1="0"

%>

<!-- 显示代码 -->
<% if request("D1")<>"" then  '如果D1为空时,不显示代码。一般是在第一次进入时会出现这种情况。

	 
	 '设定一些默认值:
	 '小图标
	 if request("icon")="0" then 
	    icon=trim(request("picurl"))
	 else
	    icon=trim(request("icon"))
	 end if
    '

%>

<div align="center">
 <br>
	<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolordark="#FFFFFF" bordercolorlight="#658BD8"  bgcolor="#FFFFFF">
		<tr>
			<td bgcolor="#F5F5F5"><center><FONT SIZE="3" COLOR="#6600FF">新闻调用公用参数说明:</FONT></center>	
			  newscode.asp?lm=<%=lm2%>&hot=<%=request("hot")%>&tj=<%=request("tj")%>&t=<%=request("t")%>&week=<%=request("week")%>&font=<%=request("font")%>&line=<%=request("line")%>&lmname=<%=request("lmname")%>&n=<%=request("n")%>&list=<%=request("list")%>&more=<%=request("more")%>&hit=<%=request("hit")%>&open=<%=request("open")%>&icon=<%=icon%>&new=<%=request("new")%>&bg=<%=request("bg")%>  </p>
			  <p>
			lm2&nbsp;&nbsp;&nbsp;&nbsp;   栏目的ID,一般不用改动它。如果lm2=0,那么显示所有栏目的新闻。<br>
			hot=0    是否按新闻的点击数量排序,热点新闻。0为普通排序,1为按点击次数排序。<br>
			tj=0     显示推荐新闻,0不显示,1为显示推荐新闻。<br>
			t=0     是否在标题后面显示新闻的添加修改时间,如果等于0不显示,1/2/3/4种模式显示<br>
			week=0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 是否在标题后面显示新闻的添加星期.0不显示,1显示。<br>
			font=9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 设置标题的字号,默认是9,可以设置为10.5或者12。<br>
			line=12&nbsp;&nbsp;&nbsp;&nbsp; 设置标题的行间距,默认是12,可以自行设置,数字越大,行距越大。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(注意:JS调用的行距应为line=(line-10),与框架不同。否则行距太大。)<br>
			lmname=0  是否显示栏目名称 0不显示 1为显示<br>
			n=30    每个标题显示的字数。默认是30个字符,(1个汉字是2个字符)<br>
			list=10   显示多少条标题,默认是10条标题<br>
			more=1   是否显示“更多内容”,0不显示 1为显示 2为在框内显示分页。<br>
			hit=0    是否在标题后显示点击数,0不显示 有hit=1和hit=2两种模式<br>
			open=1   是否新开窗口浏览新闻内容,0不新开 1为新开<br>
			icon=1   自定义在标题前显示图标,0不显示 1显示默认(<font face="Wingdings">1</font>) 
			可自定义图片(如:icon=/images/123.gif)<br>
			new=0    当天的最新新闻是否显示一个动画图片 <img border="0" src="../images/new.gif" width="28" height="11">&nbsp; 
			如果new=1 就显示。new=0就不显示。<br>
			bg=ffffff  新闻调用窗口的背景颜色,默认是白色(ffffff),切记不要加#。<br>
hit=0    在新闻标题后面显示此条新闻的阅读数。hit=1时显示。<br>
pls=0    在新闻标题后面显示此条新闻的评论数。pls=1时显示。<br>
zzpl<font color="#FF0000">    </font>新闻标题后面不显示来源作者,zz=1显示。<br>
<font color="#FF0000"><br> 
id     头条调用新闻有效,id&lt;&gt;0时,调用单条新闻,id=0时,调用所有新闻<br>
lm2     头条调用新闻有效,且id=0有效,栏目<br> 
list    头条调用新闻有效,且id=0有效,显示新闻条数 
<br>
</font>nr=0 头条调用新闻有效,是否显示内容,nr=1时显示。<br>
nrtop=150  头条调用新闻有效,内容显示的字数<br>
nrcolor  
头条调用新闻有效,内容字体颜色<br>
titleface  头条调用新闻有效,标题的字体,titleface=黑体<br>
titlesize  头条调用新闻有效,标题的字型大小,titlesize=16,即16pt。<br>
titlen   头条调用新闻有效,标题显示字数。<br>
titlebold  头条调用新闻有效,标题是否加粗,titlebold=700加粗,titlebold=100不加粗。<br>
titlecolor 头条调用新闻有效,标题的颜色。
		  </td>
		</tr>
		<tr>
			<td bgcolor="#FFFFFF"> </td>
		</tr>
        <tr>
		  <td ><p><b>新闻列表调用代码:</b><BR>
	        <br>
			框架的JS代码:<br>
	 	    <font color="#FF0000">&lt;iframe name=&quot;news<%=lm%>&quot; src=&quot;<%=finddir(request.servervariables("URL"))%>newscode.asp?lm=<%=lm2%>&amp;hot=<%=request("hot")%>&amp;tj=<%=request("tj")%>&amp;t=<%=request("t")%>&amp;week=<%=request("week")%>&amp;font=<%=request("font")%>&amp;line=<%=request("line")%>&lmname=<%=request("lmname")%>&amp;n=<%=request("n")%>&amp;list=<%=request("list")%>&amp;more=<%=request("more")%>&amp;hit=<%=request("hit")%>&amp;open=<%=request("open")%>&amp;icon=<%=icon%>&amp;new=<%=request("new")%>&amp;bg=<%=request("bg")%>&quot; 
			marginwidth=&quot;<%=frm_M_width%>&quot; marginheight=&quot;<%=frm_M_height%>&quot; width=&quot;<%=frm_width%>&quot; height=&quot;<%=frm_height%>&quot; scrolling=&quot;no&quot; 
			border=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</font></p>
		    <p><font color="#FF0000">&lt;iframe name=&quot;news<%=lm%>&quot; src=&quot;<%=finddir(request.servervariables("URL"))%>newscode_xy.asp?lm=<%=lm2%>&amp;n=10&amp;x=2&amp;y=5&amp;icon=<%=icon%>&amp;lmname=0&amp;more=2&amp;tj=<%=request("tj")%>&amp;hit=<%=request("hit")%>&amp;open=<%=request("open")%>&amp;t=<%=request("t")%>&amp;week=<%=request("week")%>&amp;line=<%=request("line")%>&amp;new=<%=request("new")%>&amp;bg=<%=request("bg")%>&quot; marginwidth=&quot;<%=frm_M_width%>&quot; marginheight=&quot;<%=frm_M_height%>&quot; width=&quot;<%=frm_width%>&quot; height=&quot;<%=frm_height%>&quot; scrolling=&quot;no&quot;border=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</font>
		      
	          <!-- 效果显示 -->
	        </p>
		    <p>x为每行显示新闻的条数<br>
	        y为显示的行数<br>
		    more=2时显示分页</p>
		    <HR size="1" color="#9933FF">
			<table align="center" cellpadding="0" cellspacing="5" >
			  <tr><td>
            <center><FONT SIZE="2" COLOR="#6600FF">框架的JS调用效果图示:<br>&nbsp;</FONT></center>			
            <table  cellspacing="0" cellpadding="5" style="border: 1px solid #F98568;" bordercolor="#FF9999" align="center"><tr><td>
			<iframe name="news<%=lm%>" src="<%=finddir(request.servervariables("URL"))%>newscode.asp?lm=<%=lm2%>&hot=<%=request("hot")%>&tj=<%=request("tj")%>&t=<%=request("t")%>&week=<%=request("week")%>&font=<%=request("font")%>&line=<%=request("line")%>&lmname=<%=request("lmname")%>&n=<%=request("n")%>&list=<%=request("list")%>&more=<%=request("more")%>&hit=<%=request("hit")%>&open=<%=request("open")%>&icon=<%=icon%>&new=<%=request("new")%>&bg=<%=request("bg")%>" 
			marginwidth="<%=frm_M_width%>" marginheight="<%=frm_M_height%>" width="<%=frm_width%>" height="<%=frm_height%>" scrolling="no" 
			border="0" frameborder="0"></iframe>
		    </td></tr></table></td>
            
            <td>
            <center><FONT SIZE="2" COLOR="#6600FF">并排显示新闻,可按需选择行数(x)和列数(y)<br>调用效果图示:</FONT></center>	
            <table  cellspacing="0" cellpadding="5" style="border: 1px solid #F98568;" bordercolor="#FF9999" align="center"><tr><td>
			<iframe name="news<%=lm%>" src="<%=finddir(request.servervariables("URL"))%>newscode_xy.asp?lm=<%=lm2%>&n=10&x=2&y=5&icon=<%=icon%>&lmname=0&more=2&tj=<%=request("tj")%>&hit=0&open=<%=request("open")%>&t=<%=request("t")%>&week=<%=request("week")%>&line=12&new=<%=request("new")%>&bg=<%=request("bg")%>" 
            marginwidth="<%=frm_M_width%>" marginheight="<%=frm_M_height%>" width="<%=frm_width%>" height="<%=frm_height%>" scrolling="no" 
			border="0" frameborder="0"></iframe>
		    </td></tr></table>
            
            </td>
            </tr>
            </table>
            
            
		   <HR size="1" color="#9933FF">
			<!-- 结束效果显示 -->
			<br>
			JS脚本调用:<br>
			<font color="#FF0000">&lt;script TYPE=&quot;text/javascript&quot; language=&quot; javascript&quot;src=&quot;<%=finddir(request.servervariables("URL"))%>newscodejs.asp?lm2=<%=lm2%>&amp;list=<%=request("list")%>&amp;icon=<%=icon%>&amp;tj=<%=request("tj")%>&amp;font=<%=request("font")%>&amp;hot=<%=request("hot")%>&amp;new=<%=request("new")%>&amp;line=<%=line-10%>&amp;open=<%=request("open")%>&amp;n=<%=request("n")%>&amp;more=<%=request("more")%>&lmname=<%=request("lmname")%>&amp;hit=<%=request("hit")%>&amp;zzly=0&amp;pls=0&amp;t=<%=request("t")%>&amp;week=<%=request("week")%>&quot;&gt; &lt;/script&gt;<br>
			</font>&quot;zzly&quot;:表示是否显示作者&quot;0&quot;为不显示,&quot;1&quot;为显示<font color="#FF0000"><br>
			</font>&quot;pls&quot;:表示是否显示评论数&quot;0&quot;为不显示,&quot;1&quot;为显示<font color="#FF0000"><br>
			<br>
            <!-- 效果显示 -->

			<HR size="1" color="#9933FF">
			<center>
			<FONT SIZE="" COLOR="#6600FF">JS脚本调用效果图示:</FONT>
			</center>
			<table  cellspacing="0" cellpadding="5" style="border: 1px solid #F98568;" bordercolor="#FF9999" align="center">
			<tr><td>
			
		   <script TYPE="text/javascript" language="javascript" src="<%=finddir(request.servervariables("URL"))%>newscodejs.asp?lm2=<%=lm2%>&list=<%=request("list")%>&icon=<%if request("icon")=0 or request("icon")="" then%><%="../"&picurl%><%else%><%=icon%><%end if%>&tj=<%=request("tj")%>&font=<%=request("font")%>&hot=<%=request("hot")%>&new=<%=request("new")%>&line=<%=line-10%>&open=<%=request("open")%>&n=<%=request("n")%>&more=<%=request("more")%>&hit=<%=request("hit")%>&zzly=0&pls=0&t=<%=request("t")%>&week=<%=request("week")%>"></script>
		    
			</td></tr>
			</table>
			<HR size="1" color="#9933FF">
			<!-- 结束效果显示 -->

            <br>
			最新十条文章向上滚动调用:<br>			
			<font color="#FF0000">&lt;script TYPE=&quot;text/javascript&quot; language=&quot; javascript&quot;src=&quot;<%=finddir(request.servervariables("URL"))%>js_news_textroll.asp?lm=<%=lm2%>&amp;n=<%=request("n")%>&amp;open=<%=request("open")%>&amp;sp=2400&amp;he=18&amp;fontsize=10 &quot;&gt; &lt;/script&gt;</font><br>	
			n 字符长度,默认30<br>
			lm,lm2 所属栏目id<br>
			open 是否新窗口打开,默认打开<br>
			sp 滚动速度,数值越小越快。默认为1200秒<br>
			he 滚动字体的高度,默认为18<br>
			fontsize 字体大小,默认为 10<br>
            <!-- 效果显示 -->
			<HR size="1" color="#9933FF">
			<center>
			<FONT SIZE="" COLOR="#6600FF">最新十条文章向上滚动效果图示:</FONT>
			</center>
			<table  cellspacing="0" cellpadding="5" style="border: 1px solid #F98568;" bordercolor="#FF9999" align="center">
			<tr><td>			
		    <script language="JavaScript" src="<%=finddir(request.servervariables("URL"))%>js_news_textroll.asp?n=12&lm=<%=lm2%>&open=<%=request("open")%>&sp=2400&he=18&fontsize=10" type="text/javascript"></script>
			</td></tr>
			</table>
			<HR size="1" color="#9933FF">
			<!-- 结束效果显示 -->

			单条新闻调用<font color="#FF0000"><br>
&lt;script TYPE=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;<%=finddir(request.servervariables("URL"))%>newscode-news.asp?id=</font><font color="#0000FF">ID号</font></font><span class="style2">(&amp;lm2=<font color="#FF0000"><%=lm2%></font>&amp;list=<font color="#FF0000"><%=request("list")%></font>)<font color="#FF0000"><font color="#FF0000">&amp;font=9&amp;nr=0&amp;nrtop=150&amp;nrcolor=999999&amp;titleface=黑体&amp;titlesize=16&amp;titlen=30&amp;titlebold=700&amp;titlecolor=FF0000&quot;&gt;&lt;/script&gt;</font></font></td>
		</tr>
		<tr>
		  <td bgcolor="#F5F5F5"><center>
			<FONT SIZE="" COLOR="#6600FF">JS脚本调用效果图示:</FONT>
			</center>
			<table  width="400" cellspacing="0" cellpadding="5" style="border: 1px solid #F98568;" bordercolor="#FF9999" align="center">
			<tr><td>
			<script TYPE="text/javascript" language="javascript" src="<%=finddir(request.servervariables("URL"))%>newscode-news.asp?id=0&lm2=<%=lm2%>&list=<%=request("list")%>&font=<%=request("font")%>&nr=1&nrtop=150&nrcolor=999999&titleface=黑体&titlesize=16&titlen=30&titlebold=700&titlecolor=FF0000"></script>
		    
			</td></tr>
		  </table></td>
		</tr>
		<tr>
		  <td bgcolor="#ffffFF">&nbsp;</td>
		</tr>
        <tr>
		  <td bgcolor="#ffffFF">         
       
	新闻专题JS调用:<br>
			<font color="#FF0000">&lt;script TYPE=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;<%=finddir(request.servervariables("URL"))%>newscodeztjs.asp?ztid=</font><font color="#0000FF">ID</font><font color="#FF0000">&amp;list=<%=request("list")%>&amp;icon=1&amp;tj=0&amp;font=<%=request("font")%>&amp;hot=0&amp;new=1&amp;line=2&amp;lmname=0&amp;open=1&amp;n=<%=request("n")%>&amp;more=1&amp;t=0&amp;week=0&amp;zzly=0&amp;hit=0&amp;pls=0&quot;&gt;&lt;/script&gt;
		
<HR size="1" color="#9933FF">
<br>

	新闻专题标题JS调用:<br>
			<font color="#FF0000">&lt;script TYPE=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;<%=finddir(request.servervariables("URL"))%>js-zt.asp?list=<%=request("list")%>&amp;n=<%=request("n")%>&amp;font=9&amp;line=20&amp;color=000000&quot;&gt;&lt;/script&gt;</font>
</td>
		</tr>
        <tr>
		  <td bgcolor="#ffffFF">&nbsp;</td>
		</tr>
		<tr>
			<td bgcolor="#F5F5F5"><center><FONT SIZE="3" COLOR="#6600FF">图片调用公用参数说明:</FONT></center>	

⌨️ 快捷键说明

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