📄 nindex.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>
<!--css-->
<STYLE type=text/css>
body {margin:10px; MARGINHEIGHT:0; MARGINWIDTH:0;font-family: verdana, Tahoma; font-size: 0.8em;}
A { TEXT-DECORATION: none; Color: #333333 }
A:hover { TEXT-DECORATION: underline;Color: #000000 }
DIV{padding:0px;margin:0px;}
ol{padding:0px;margin:0px;}
.tdtitle { border-top: 2px solid green;font-weight: bold;background-color: #F4FCF3;TEXT-ALIGN: center;height:16px;margin-bottom :2px;padding:5px 2px 2px 2px; }
.list {padding:2px 10px 2px 10px;}
#logo {position :absolute;left:10px;top:10px;width:120px;height:60px;float :left;}
#footer {position :absolute;bottom:5px;left:254px;width:280px;height:15px;z-index:5;}
#main {position:absolute; top:90px;left:140px; width:500px; height:280px;}
#nav {position :absolute;bottom:90px;right:140px;width:200px;height:80px;}
</STYLE>
</head>
<DIV id="logo">
<a href="http://cnc.qinzd.com/">
<img src="static/logo.gif" alt="<%=SiteName%>" width="120" height="38" border="0"></a>
<BR />
<a href="nUser/index.asp" >所有博客</a>
<a href="nUser/Login.asp" >博客登录</a>
</DIV>
<DIV id="main">
<DIV class="tdtitle">博客分类</DIV>
<DIV class="list">
<%set rs=server.createobject("adodb.recordset")
sql = "Select * FROM kheu_nType where nType=1 Order By id asc"
rs.open sql,conn,1,1
n=0
nn=rs.recordcount
do while not rs.eof
n=n+1
%>
<A href="nType/nType_<%=rs("id")%>.asp"><%=rs("title")%></A>
<%rs.movenext
loop
rs.close%>
</DIV>
<DIV class="tdtitle">最新日志</DIV>
<DIV class="list">
<ol>
<%set rs=server.createobject("adodb.recordset")
sql="select top 10 * from kheu_nPost where first_flag=true order By date desc"
rs.open sql,conn,1,1
do while not rs.eof
%>
<li><A href="nPost/nPost_<%=rs("id")%>.asp"><%=rs("title")%></A>
( 作者:<%
sql="select top 1 user_email from kheu_nUser where user_id="&rs("nUser")&""
set rs1=server.createobject("ADODB.Recordset")
rs1.open sql,conn,1,1
if not rs1.eof then%>
<A href="nUser/nUser.asp?id=<%=rs("nUser")%>"><%=rs1("user_email")%></A> )
<%
end if
rs1.Close()
%></li>
<%rs.movenext
loop
rs.close%>
</ol>
</DIV>
</DIV>
<DIV id="nav">
<DIV class="tdtitle">推荐博客</DIV>
<DIV class="list">
<ol>
<%
sql="select top 3 * from kheu_nUser order by user_id"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
do while not rs.eof
%>
<li><A href="nUser/nUser.asp?id=<%=rs("user_id")%>"><%=rs("user_email")%></A></li>
<%rs.movenext
loop
rs.close%>
</ol>
</DIV>
</DIV>
<DIV id="footer">
<a target="_blank" href="http://www.qinzd.com/">Power by
<img border="0" src="static/link.gif" width="80" height="15">
V2.3版</a>
</div>
<!--#include file="../static/footer.htm" -->
<STYLE type=text/css>
#left {position :absolute;top :380px;left:10px;width:610px; height:150px;padding:10px;background-color:#F4FCF3; border:2px solid green;z-index:6;}
#right {position :absolute;top :90px;right:140px;width:210px;height:350px;border:1px solid;z-index:3;}
#top {position :absolute;top :10px;left:140px;width:220px;height:60px;border:1px solid;z-index:3;}
#down {position :absolute;right:10px;top :285px;width:120px;height:150px;border:1px solid;z-index:3;}
.red{color:red}
</STYLE>
<DIV id="left">
<script language="JavaScript" src="js/adword.js"></script>
<a href="javascript:closeAD()"><span class="red">关闭广告</span></a>
</DIV>
<DIV id="right">
<a target="_blank" href="http://www.qinzd.com/">
<img border="0" src="static/QinZD.jpg" width="210" height="350"></a></DIV>
<DIV id="top">
<a target="_blank" href="http://www.99mill.com/">
<img border="0" src="static/99mill.gif" width="220" height="60"></a></DIV>
<DIV id="down">
<a target="_blank" href="http://class.vifv.cn/">
<img border="0" src="static/vifv.gif" width="120" height="150"></a>
</DIV>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -