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

📄 pic_news_js.asp

📁 功能最强大的ASP网站
💻 ASP
字号:
<!--#include file="conn.asp"-->

document.write("<head><meta http-equiv='Content-Language' content='zh-cn'><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><meta name='robots' content='none'></head>");
document.write("<table border=0 cellpadding=<%=line%> cellspacing=0 width=100%>");

<%
n=request("n")
news=trim(request.QueryString("news"))
font=trim(request.QueryString("font"))
tag=trim(request.QueryString("tag"))
xiangguan=trim(request.QueryString("xiangguan"))
action=trim(request.QueryString("action"))

if n="" then
n=10
end if


if news<>"" and tag="" and xiangguan="" then
sql="select * from NEWS where infor='"&news&"' order by bh desc"
set rs=conn.execute(sql)
end if


if news<>"" and tag="" and xiangguan<>"" then
sql="select * from NEWS where infor='"&news&"' and xiangguan='"&xiangguan&"'order by bh desc"
set rs=conn.execute(sql)
end if

if news<>"" and tag<>"" and xiangguan<>"" then
sql="select * from NEWS where infor='"&news&"' and tag='"&tag&"' and xiangguan='"&xiangguan&"' order by bh desc"
set rs=conn.execute(sql)
end if

if action="pic" then
news="图片"
sql="select * from NEWS where infor='"&news&"'"
set rs=conn.execute(sql)
%>
document.write("<table border=0 cellpadding=<%=line%> cellspacing=0 width=100%>");
<% 
if rs.eof and rs.bof then
%>
document.write("没有相关新闻")
<%else%>
<%
do while not rs.eof
if rs("url")<>"" then
url=rs("url")
else
url="files/"&rs("bh")&".html"
end if
title=rs("title")
path="images/page_plugin.png"

%>
document.write("<tr><td width=1 align=left align=center></td><td>");
document.write("</td><td align=left><a href=<%=url%> target=_blank><img src=<%=rs("smallclassname")%>></a>");
document.write("</td>");
<%
 n=n-1
 if n<1 then exit do

 rs.movenext
 loop
%>
<%
end if
%>
document.write("</table>");

<%else%>

document.write("<table border=0 cellpadding=<%=line%> cellspacing=0 width=100%>");
<% 
if rs.eof and rs.bof then
%>
document.write("没有相关新闻")
<%else%>
<%
do while not rs.eof
if rs("url")<>"" then
url=rs("url")
else
url="files/"&rs("bh")&".html"
end if
title=rs("title")
path="images/page_plugin.png"

%>
document.write("<tr><td width=1 align=left align=center></td><td>");
document.write("</td><td align=left><img src=<%=path%>>");
document.write("<a href=<%=url%> target=_blank><font color=#666666 style='font-size:<%=font%>pt'><%=title%></font></a>&nbsp;");
document.write("</td>");
<%
 n=n-1
 if n<1 then exit do

 rs.movenext
 loop
%>
<%
end if
end if
%>
document.write("</table>");

⌨️ 快捷键说明

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