📄 showpic.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="sub/config.asp"-->
<!--#include file="sub/conn.asp"-->
<!--#include file="sub/inc.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=Sitename%>-设计作品展示</title>
<link href="index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--#include file="top.asp"-->
<script language="JavaScript">
<!--
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function bbimg(o)
{var zoom=parseInt(o.style.zoom, 10)||100;
zoom+=event.wheelDelta/12;
if (zoom>0) o.style.zoom=zoom+'%';
return false;}
function resizepic(thispic)
{if(thispic.width>576) thispic.width=576;}
//-->
</script>
<SCRIPT language=vbscript event=onLoad for=window>
image1.filters.item(0).apply()
image1.filters.item(0).transition = 23
image1.Style.visibility = ""
image1.filters(0).play(2.0)
</SCRIPT>
<table width="780" height="4" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td background="images/index_11.gif"></td>
</tr>
</table><table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" rowspan="2"><img src="images/Lv2/lv2worksclass.gif" width="200" height="30" /></td>
<td height="29" colspan="3" align="center">
<marquee behavior=alternate onmouseover=stop() onmouseout=start() scrollamount="1" scrolldelay="10">
<font class="top"><%=ad1%></font>
</marquee></td>
<td rowspan="2"></td>
</tr>
<tr>
<td height="1" colspan="3" align="center" bgcolor="#FF9900"></td>
</tr>
<tr>
<td rowspan="2" align="center" valign="top">
<table width="175" border="0" cellspacing="0" cellpadding="0" >
<%
dim i
i = 1
Set RS = Server.CreateObject("ADODB.Recordset")
SQL = "Select * from picclass"
RS.Open SQL, cn, 1,1,1
Do while not RS.EOF
if i mod 2 <> 0 then
%>
<tr>
<td width="90" height="20"><img src="images/indexdddd.gif" width="6" height="6" /> <a href="pic.asp?class=<%=RS("class")%>"><%=RS("classname")%></a></td>
<% i = i + 1
else
%>
<td width="97" height="20"><img src="images/indexdddd.gif" width="6" height="6" /> <a href="pic.asp?class=<%=RS("class")%>"><%=RS("classname")%></a></td>
</tr>
<% i = i + 1
end if
RS.movenext
Loop
set RS = nothing
if i mod 2 = 0 then
%>
<%
end if
%>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><img src="images/websearch.gif" width="200" height="30" /></td>
</tr>
<tr>
<td align="center">
<% '调用全站搜索表单
'翱翔designz.cn制作
call websearch()%> </td>
</tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/Lv2/lv2dj.gif" width="200" height="30" /></td>
</tr>
<tr>
<td align="left">
<%Set rs = Server.CreateObject("ADODB.Recordset")
SQL = "Select top 10 * from pic order by click desc"
rs.Open SQL, cn, 1,1
do while not rs.eof
Response.Write "<br/>"
Response.Write " <img src='images/indexddd.gif' /> <a href='showpic.asp?id="&rs("id")&"'>"&left(rs("title"),15)&"...</a>"
rs.movenext
loop
rs.close
set rs=nothing%>
</td>
</tr>
</table>
</td>
<td width="580" valign="top" align="center">
<%
if Request.QueryString("id")<>"" then
Set rs = Server.CreateObject("ADODB.Recordset")
SQL = "Select * from pic where id=" & Request.QueryString("id")
rs.Open SQL, cn, 1,2
%>
<b><%=rs("title")%></b><BR/>上传时间:<%=rs("date")%>
</td>
</tr>
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0" style="word-break:break-all;table-layout:fixed;line-height:150%;"><tr><td>
<a href="<%=rs("pic")%>" target="_blank"><img src="<%=rs("pic")%>" border="0" onmousewheel="return bbimg(this)" onload=javascript:resizepic(this) id=image1 style="FILTER: revealTrans(Duration=4.0, Transition=23);VISIBILITY: hidden " alt='<%=rs("user")%>---<%=rs("title")%>'/></a>
<%rs("click")=rs("click")+1
rs.update
rs.close
set rs=nothing
else
response.Write "<script language=javascript>{window.alert('此页面非法,请返回作品展区');window.location.href='pic.asp';}</script>"
end if%></td></tr></table>
</td>
</tr>
</table>
<!--#include file="bottom.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -