📄 js.asp
字号:
<!--#include file="inc/config.asp"-->
<!--#include file="mdb.asp"-->
<!--#include file="inc/inc.asp"-->
<!--#include file="inc/format.asp"-->
<%
start="网页特效"
dim founderr
founderr=false
if request.querystring("jscat_id")<>"" then
if not isInteger(request.querystring("jscat_id")) then
founderr=true
Response.Write "<script language=javascript>alert('参数非法');javascript:history.back();</script>"
end if
end if
if request("page")<>"" then
if not isInteger(request("page")) then
founderr=true
Response.Write "<script language=javascript>alert('参数非法');javascript:history.back();</script>"
end if
end if
if request("keyword")<>"" then
if instr(request("keyword"),"'")>0 then
founderr=true
Response.Write "<script language=javascript>alert('搜索参数非法');javascript:history.back();</script>"
end if
end if
call head()
call menu()
sql="select jscat_id,jscat_name from jscat"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
response.write "<TABLE id=navsub cellSpacing=0 cellPadding=0 align=center><TBODY><TR><TD class=l></TD>" & vbCrLf
response.write "<TD height=""23"" align=""right"">"
do while not rs.eof
if request("jscat_id")=cstr(rs("jscat_id")) then
response.write "<font class=""title"">·"&rs("jscat_name")&"</font> "
else
response.write "<a href='?jscat_id="&rs("jscat_id")&"'>·"&rs("jscat_name")&"</a> "
end if
rs.movenext
loop
if rs.bof and rs.eof then
response.write "当前没有分类 "
rs.close
end if%>
</TD><TD class=r></TD></TR></TBODY></TABLE>
<TABLE id=middle cellSpacing=0 cellPadding=0 align=center boder="0" height=300>
<TBODY>
<TR vAlign=top align=left>
<TD width=200>
<DIV class=member>
<SCRIPT type=text/javascript>lanyutabletop("总 量 排 行","ml");</SCRIPT>
<UL class=nl>
<%
sql="SELECT top "&topjsnum&" js_id,js_name,js_count,js_date FROM js where js_id ORDER by js_count DESC"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof
%><LI><a href='showjs.asp?js_id=<%=rs("js_id")%>' target='_blank' Title='特效名称:<%=rs("js_name")%>
查看次数:<%=rs("js_count")%>
上传时间:<%=rs("js_date")%>'><%=left(rs("js_name"),14)%></a></LI>
<%rs.movenext
loop
if rs.eof and rs.bof then%><div align=center><br>当前还没有特效<br><br></div>
<%
rs.close
end if%>
</UL>
<SCRIPT type=text/javascript>lanyutablebottom("mr");</SCRIPT>
<SCRIPT type=text/javascript>lanyutabletop("站 长 推 荐","ml");</SCRIPT>
<UL class=nl>
<%
sql="SELECT top "&bestjs&" js_id,js_name,js_count,js_date FROM js where isbest = 1 order by js_id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof%><LI><a href='showjs.asp?js_id=<%=rs("js_id")%>' target='_blank' Title='特效名称:<%=rs("js_name")%>
查看次数:<%=rs("js_count")%>
上传时间:<%=rs("js_date")%>'><%=left(rs("js_name"),14)%></a></LI>
<%rs.movenext
loop
if rs.eof and rs.bof then%><div align=center><br>当前还没有特效<br><br></div>
<%rs.close
end if%>
</UL><SCRIPT type=text/javascript>lanyutablebottom("mr");</SCRIPT>
<SCRIPT type=text/javascript>lanyutabletop("特 效 查 找","ml");</SCRIPT>
<form name="form2" method="post" action="js.asp"><div align=center><input type='radio' name='select' value='js_name' checked>名称 <input type='radio' name='select' value='js_desc'>内容 <input type='radio' name='select' value='review'>评论<br><input type='text' name='keyword' size='15' value='搜索关键字' maxlength='50' onFocus='this.select();' class="lanyu"> <input type='submit' name='search' value='搜索' onmouseover="this.className='boton'" onmouseout="this.className='botoff'" class="botoff">
</div></form>
<SCRIPT type=text/javascript>lanyutablebottom("mr");</SCRIPT>
<SCRIPT type=text/javascript>lanyutabletop("本 站 声 明","ml");</SCRIPT>
<div style="LINE-HEIGHT: 180%"> 本站部分特效来自网络,版权归原作者所有!如有版权问题敬请<a href='mailto:<%=webmail%>' Title='给站长写信'><font color=green>联系我们</font></a>,我们将马上进行整理,谢谢。!
<SCRIPT type=text/javascript>lanyutablebottom("mr");</SCRIPT>
<%
dim totalcs,Currentpage,totalpages,i
sql="select js_id,js_name,js_count,js_date,js_desc,review,reviewcount from js order by js_id DESC"
if request.querystring("jscat_id")<>"" then
sql="select js_id,js_name,js_count,js_date,js_desc,review,reviewcount from js where jscat_id="&request.querystring("jscat_id")&" order by js_id DESC"
elseif request("keyword")<>"" then
sql="select js_id,js_name,js_count,js_date,js_desc,review,reviewcount from js where "&request("select")&" like '%"&request("keyword")&"%'order by js_id DESC"
end if
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
totalcs=rs.recordcount
%>
</TD><TD><DIV class=mframe>
<SCRIPT type=text/javascript>lanyutable("<%if request("jscat_id")<> "" then%>本分类共有<%elseif request("keyword")<>"" then%>共搜索到<%else%>当前共有<%end if%><span><%=totalcs%></span>个特效</SPAN>");</SCRIPT>
<table width="100%" border="1" align="center" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF" bordercolor="#f0f0f0" style="border-collapse: collapse" frame=lhs>
<%
if not rs.eof then
rs.movefirst
rs.pagesize=jsperpage
if trim(request("page"))<>"" then
currentpage=clng(request("page"))
if currentpage>rs.pagecount then
currentpage=rs.pagecount
end if
else
currentpage=1
end if
if currentpage<>1 then
if (currentpage-1)*jsperpage<totalcs then
rs.move(currentpage-1)*jsperpage
dim bookmark
bookmark=rs.bookmark
end if
end if
if (totalcs mod jsperpage)=0 then
totalpages=totalcs\jsperpage
else
totalpages=totalcs\jsperpage+1
end if
i=0
do while not rs.eof and i<jsperpage
%><TR bgColor=#FFFFFF><TD width="63%"><UL class=nl><LI class=lanyu><a href='showjs.asp?js_id=<%=rs("js_id")%>' target='_blank' Title='特效名称:<%=rs("js_name")%>
查看次数:<%=rs("js_count")%>
上传时间:<%=rs("js_date")%>'><%=rs("js_name")%></a></li></UL></TD><TD width="10%" align=Center><%=rs("js_count")%></TD><TD align="center"><%=rs("js_date")%></TD></TR>
<%
i=i+1
rs.movenext
loop
else
if rs.eof and rs.bof then%><tr><td align=middle height="60" colSpan=4><%if request("jscat_id")<> "" then%>该分类暂时没有特效<%elseif request("keyword")<>"" then%>没有找到包含[<b><font color=red><%=request("keyword")%></font></b>]的特效!<%else%>没有任何特效,请管理员到后台添加!<%end if%></td></td></tr>
<%end if
end if
%>
<form name="form1" method="post" action="js.asp?select=<%=request("select")%>&keyword=<%=request("keyword")%>&jscat_id=<%=request.querystring("jscat_id")%>">
<tr>
<td align="right" colspan="4">
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<TR>
<TD align=middle width="35%" height=25><IMG height=14 src="img/so.gif" width=14 align=absMiddle> 共[<font color="#FF6666"><%=totalcs%></font>]个特效 分[<font color="#FF6666"><%=totalpages%></font>]页</TD>
<TD width="40%" align=middle><IMG height=11 src="img/lt.gif" width=11 align=absMiddle>
<%
if CurrentPage<2 then
response.write "<font color='999966'>首页 上一页</font> "
else
response.write "<a href=js.asp?select="&request("select")&"&keyword="&request("keyword")&"&page=1&jscat_id="&request.querystring("jscat_id")&">首页</a> "
response.write "<a href=js.asp?select="&request("select")&"&keyword="&request("keyword")&"&page="&CurrentPage-1&"&jscat_id="&request.querystring("jscat_id")&">上一页</a> "
end if
if totalpages-currentpage<1 then
response.write "<font color='999966'>下一页 尾页</font>"
else
response.write "<a href=js.asp?select="&request("select")&"&keyword="&request("keyword")&"&page="&CurrentPage+1&"&jscat_id="&request.querystring("jscat_id")
response.write ">下一页</a> <a href=js.asp?select="&request("select")&"&keyword="&request("keyword")&"&page="&totalpages&"&jscat_id="&request.querystring("jscat_id")&">尾页</a>"
end if
%> <IMG height=11 src="img/rt.gif" width=11 align=absMiddle></TD>
<TD align=middle width="25%">
<select name="page" class="lanyu">
<%
i=1
for i=1 to totalpages
if i=currentpage then
%>
<option value=<%=i%> selected>第<%=i%>页</option>
<%else%>
<option value=<%=i%>>第<%=i%>页</option>
<%end if
next%>
</select><input type="submit" name="Submit2" value="转向" onmouseover="this.className='boton'" onmouseout="this.className='botoff'" class="botoff"> </TD>
</TR>
</FORM>
</TABLE> </td></tr>
<tr align="center"><td height="1" colspan="3"></td></tr></table><br>
</DIV></TD></TR>
</TBODY></TABLE>
<%
rs.close
set rs=nothing
call footer()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -