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

📄 index.asp

📁 结合了某度和AH的个人主页 功能比较完整
💻 ASP
字号:
<%@ ENABLESESSIONSTATE = FALSE %>
<!--#include file="config.asp" -->
<!--#include file="mdb/conn.asp" -->

<html>
<head>
<title><%=title%> >> <%=desktoptitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
a {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <%=fontcolor%>; text-decoration: none}
a:hover {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <%=fontcolor%>; text-decoration: underline}
td {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <%=fontcolor%>}
br {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <%=fontcolor%>}
.bk { font-size: 9pt; border: 5px<%=xcolor%> solid}
body {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none}
.an {  font-family: "宋体"; font-size: 9pt; background-color: <%=bgcolor%>; border: 1px <%=xcolor%> solid; color: <%=fontcolor%>}
.xzy {  border: <%=xcolor%> solid; border-width: 0px 1px 1px}
.zx {  border: <%=xcolor%> solid; border-width: 0px 0px 1px 1px}
.sxz {  border: <%=xcolor%> solid; border-width: 1px 0px 1px 1px}
.s {  border: <%=xcolor%>; border-style: solid; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px}
.y {  border: <%=xcolor%>; border-style: solid; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 0px; border-left-width: 0px}
.font {  font-family: "Arial Black"; font-size: 14pt; color: <%=fontcolor%>}
.x {  border: <%=xcolor%>; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px}
.z {  border: <%=xcolor%>; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 1px}
.sx {  border: <%=xcolor%>; border-style: solid; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px}
.bk1 {
	BORDER-BOTTOM: #86540c 1px dashed; BORDER-LEFT: #86540c 1px dashed; BORDER-RIGHT: #86540c 1px dashed; BORDER-TOP: #86540c 1px dashed
.bg {
}
.bg {
	width: 74px;
}
-->
</style>
</head>


<body text="#471b0a" vlink="#ffffff" link="#ffffff" bgcolor="#67331f" background="../img/dnacebg2.jpg" topmargin="0">

<div align="center">
  <center>
  <table width="614" height="436" border="0" cellpadding="0" cellspacing="10" bgcolor="#E4C59A">
    <tbody>
      <tr>
        <td width="634" height="436" valign="center" bgcolor="#E4C59A">
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="600" border="0" height="178" bgcolor="#E4C59A">
              <tbody>
                <tr>
                  <td width="600" height="99">
                    <p align="center">
      <img border="0" src="../img/bgtop.jpg" width="580" height="100"></p>
                  </td>
                </tr>
              <center></center>
                <center>
                <tr>
                  <td width="600" height="37">
                    <table border="0" width="100%" cellspacing="0" cellpadding="0">
                      <tr class="bg">
                        <td width="12%" align="center"><a href="../index.asp"><img border="0" src="../img/index.gif" align="absmiddle" width="50" height="20"></a></td>
                        <td width="12%" align="center"><a href="../diary/index.asp"><img border="0" src="../img/rj.gif" align="absmiddle" width="50" height="20"></a></td>
                        <td width="12%" align="center"><a href="index.asp"><img border="0" src="../img/xc.gif" align="absmiddle" width="50" height="20"></a></td>
                        <td width="13%" align="center"><a href="../music/index.asp"><img border="0" src="../img/y.gif" align="absmiddle" width="50" height="20"></a></td>
                        <td width="13%" align="center"><a href="../new/index.asp"><img src="../img/wen.jpg" width="50" height="20" border="0"></a></td>
                        <td width="12%" align="center"><a href="../down/index.asp"><img src="../img/xia.jpg" width="50" height="20" border="0"></a></td>
                        <td width="13%" align="center"><a href="../guestbook/index.asp"><img border="0" src="../img/gb.gif" align="absmiddle" width="50" height="20"></a></td>
                        <td width="13%" align="center"><a href="../link/index.asp" class="bg"><img border="0" src="../img/link.gif" align="absmiddle" width="50" height="20"></a></td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr>
                  <td width="600" height="21">
                    <table border="0" width="100%" cellspacing="0" cellpadding="0">
                      <tr>
          <td width="603" bgcolor="#e4c59a">

<table width="581" border="0" cellspacing="0" cellpadding="3" align="center" class="xzy" height="25" style="border-top: 1 solid #cea772">
  <tr> 
    <td bgcolor="#e4c59a" width="561"> 站内导航:<a href="/pic/index.asp">返回首页</a><%
sql = "SELECT * FROM type ORDER BY id DESC" 
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,0,1
if rs.eof and rs.bof then
Response.Write"还没有分类"
else
do while not rs.eof
Response.Write"| <a href='type.asp?typeid="&rs("id")&"'>"&rs("name")&"</a>"
rs.movenext
loop
end if
rs.close
Set rs=Nothing
%>
    </td>
 </tr>
</table>
<table width="581" border="0" cellspacing="0" cellpadding="5" align="center" class="xzy" height="400" bgcolor="#FFFFFF">
  <tr> 
    <td width='561' valign='top' bgcolor="#e4c59a"> 
      <%
sql = "SELECT minipic,ck,name,id FROM desktop ORDER BY id DESC" 
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,1,1
Response.Write"<table width='100%' border='0' cellspacing='0' cellpadding='3' class='x'><tr><td>最新更新情况,截止到"&now()&"共有 "&rs.RecordCount&" 个文件</td></tr></table>"
Response.Write"<table width='100%' border='0' cellspacing='0' cellpadding='5'>"
top=1
if rs.bof and rs.eof then 
response.write "<tr><td align='center'>没有任何文件</tr></td>" 
else 
do while not rs.eof
Response.Write"<tr align='center'>"
Response.Write"<td width='33%'>"
if not rs.eof then
Response.Write"<table align=center bgcolor='#cea772' border=0 cellpadding=5 cellspacing=0 class='bk1'><tbody><td><a href='display.asp?id="&rs("id")&"' target='_blank'><img src='"&rs("minipic")&"' border='0' width=141 height=141></a></td></tbody></table><br><a href='display.asp?id="&rs("id")&"' target='_blank'>"&rs("name")&"</a> | 察看:"&rs("ck")&"</td>"
top=top+1
rs.movenext 
end if

Response.Write"<td width='33%'>"
if not rs.eof then
Response.Write"<table align=center bgcolor='#cea772' border=0 cellpadding=5 cellspacing=0 class='bk1'><tbody><td><a href='display.asp?id="&rs("id")&"' target='_blank'><img src='"&rs("minipic")&"' border='0' width=141 height=141 class='bk1'></a></td></tbody></table><br><a href='display.asp?id="&rs("id")&"' target='_blank'>"&rs("name")&"</a> | 察看:"&rs("ck")&"</td>"
top=top+1
rs.movenext 
end if

Response.Write"<td width='33%'>"
if not rs.eof then
Response.Write"<table align=center bgcolor='#cea772' border=0 cellpadding=5 cellspacing=0 class='bk1'><tbody><td><a href='display.asp?id="&rs("id")&"' target='_blank'><img src='"&rs("minipic")&"' border='0' width=141 height=141 class='bk1'></a></td></tbody></table><br><a href='display.asp?id="&rs("id")&"' target='_blank'>"&rs("name")&"</a> | 察看:"&rs("ck")&"</td>"
top=top+1
rs.movenext 
end if

Response.Write"</tr>"
if top>9 then exit do
loop
end if
rs.Close
set rs=nothing
Response.Write"</table>"
%>
    </td>
 </tr>
</table>
<table width="581" border="0" cellspacing="0" cellpadding="3" align="center" class="xzy" height="25">
  <tr> 
  <td bgcolor="#e4c59a" align="center" width="571">&nbsp;</td>
 </tr>
</table>
          </td>
                      </tr>
                      <tr>
                        <td width="100%">
                          <p align="center"></td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr>
                  <td width="600" height="21">
                    <table border="0" width="100%" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="100%" align="center">&nbsp;</td>
                      </tr>
                      <tr>
                        <td width="100%" align="center"></td>
                      </tr>
                      <tr>
                        <td width="100%" align="center"></td>
                      </tr>
                    </table>
                  </td>
                </tr>
                </tbody>
            </table>
          </div>
        </center></td>
      </tr>
    </tbody>
  </table>
  </center>
</div>

</body>

</html>

⌨️ 快捷键说明

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