📄 admin_code_ls.asp
字号:
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 栏目的ID,一般不用改动它。如果lm2=0,那么显示所有栏目的新闻。<br>
hot=0 是否按新闻的点击数量排序,热点新闻。0为普通排序,1为按点击次数排序。<br>
tj=0 显示推荐新闻,0不显示,1为显示推荐新闻。<br>
t=0 是否在标题后面显示新闻的添加修改时间,如果等于0不显示,1/2/3/4种模式显示<br>
week=0 是否在标题后面显示新闻的添加星期.0不显示,1显示。<br>
font=9 设置标题的字号,默认是9,可以设置为10.5或者12。<br>
line=12 设置标题的行间距,默认是12,可以自行设置,数字越大,行距越大。<br> (注意: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">
如果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<>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"><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></font></p>
<p><font color="#FF0000"><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=<%=request("hit")%>&open=<%=request("open")%>&t=<%=request("t")%>&week=<%=request("week")%>&line=<%=request("line")%>&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></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> </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"><script TYPE="text/javascript" language=" javascript"src="<%=finddir(request.servervariables("URL"))%>newscodejs.asp?lm2=<%=lm2%>&list=<%=request("list")%>&icon=<%=icon%>&tj=<%=request("tj")%>&font=<%=request("font")%>&hot=<%=request("hot")%>&new=<%=request("new")%>&line=<%=line-10%>&open=<%=request("open")%>&n=<%=request("n")%>&more=<%=request("more")%>&lmname=<%=request("lmname")%>&hit=<%=request("hit")%>&zzly=0&pls=0&t=<%=request("t")%>&week=<%=request("week")%>"> </script><br>
</font>"zzly":表示是否显示作者"0"为不显示,"1"为显示<font color="#FF0000"><br>
</font>"pls":表示是否显示评论数"0"为不显示,"1"为显示<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"><script TYPE="text/javascript" language=" javascript"src="<%=finddir(request.servervariables("URL"))%>js_news_textroll.asp?lm=<%=lm2%>&n=<%=request("n")%>&open=<%=request("open")%>&sp=2400&he=18&fontsize=10 "> </script></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>
<script TYPE="text/javascript" language="javascript" src="<%=finddir(request.servervariables("URL"))%>newscode-news.asp?id=</font><font color="#0000FF">ID号</font></font><span class="style2">(&lm2=<font color="#FF0000"><%=lm2%></font>&list=<font color="#FF0000"><%=request("list")%></font>)<font color="#FF0000"><font color="#FF0000">&font=9&nr=0&nrtop=150&nrcolor=999999&titleface=黑体&titlesize=16&titlen=30&titlebold=700&titlecolor=FF0000"></script></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"> </td>
</tr>
<tr>
<td bgcolor="#ffffFF">
新闻专题JS调用:<br>
<font color="#FF0000"><script TYPE="text/javascript" language="javascript" src="<%=finddir(request.servervariables("URL"))%>newscodeztjs.asp?ztid=</font><font color="#0000FF">ID</font><font color="#FF0000">&list=<%=request("list")%>&icon=1&tj=0&font=<%=request("font")%>&hot=0&new=1&line=2&lmname=0&open=1&n=<%=request("n")%>&more=1&t=0&week=0&zzly=0&hit=0&pls=0"></script>
<HR size="1" color="#9933FF">
<br>
新闻专题标题JS调用:<br>
<font color="#FF0000"><script TYPE="text/javascript" language="javascript" src="<%=finddir(request.servervariables("URL"))%>js-zt.asp?list=<%=request("list")%>&n=<%=request("n")%>&font=9&line=20&color=000000"></script></font>
</td>
</tr>
<tr>
<td bgcolor="#ffffFF"> </td>
</tr>
<tr>
<td bgcolor="#F5F5F5"><center><FONT SIZE="3" COLOR="#6600FF">图片调用公用参数说明:</FONT></center>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -