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

📄 index.asp

📁 一个用jsp 编写的个人主页网站哦。希望对大家有所帮助啊
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%on error resume next%> 
<!--#include file = "public.asp"-->
<%
on error resume next
if request("goto")<>"" then 
Set rs=server.createobject("ADODB.RECORDSET")
rs.open "select * from friend where id="&request("goto") ,Conn,3,3
rs("siteclick")=rs("siteclick")+1
rs.update
response.Redirect(rs("URL"))
end if
   text=request("text")
   option1=request("option")
   linktype=request("linktype")
   if linktype="全部" or linktype="" then 
   linktype=""
   linktype1=""  
   else
   linktype1=" and linktype='"&linktype&"'"
   end if
%> 

<%
Set rso=conn.Execute("select * from foption")
if rso("auto") then 
	mark=" and mark=true "
else
	mark=""
end if
Set rssort=conn.Execute("select * from sort")

select case option1
case 1
SQL="Select * From friend where SiteName like '%"&text&"%'"&linktype1&""&mark&" order by sitelevel desc,mydate desc"
case 2
SQL="Select * From friend where url like '%"&text&"%'"&linktype1&""&mark&" order by sitelevel desc,mydate desc"
case 3
SQL="Select * From friend where Description like '%"&text&"%'"&linktype1&""&mark&" order by sitelevel desc,mydate desc"
case else
if mark="" then
	if linktype="全部" or linktype="" then
		SQL="Select * From friend order by sitelevel desc,mydate desc"
	else 
		SQL="Select * From friend where linktype='"&linktype&"' order by sitelevel desc,mydate desc"
	end if
else
	if linktype="全部" or linktype="" then
		SQL="Select * From friend where mark=true order by sitelevel desc,mydate desc"
	else 
		SQL="Select * From friend where mark=true"&linktype1&" order by sitelevel desc,mydate desc"
	end if
end if
end select
   Set rs=server.createobject("ADODB.RECORDSET")
   rs.open sql,conn,1,1
if not rs.eof then 
     if rso("showmodal")=2 then rs.PageSize=rso("record")*rso("col") else rs.PageSize=rso("record")
	 PageNo=REQUEST("Page")
	 if PageNo="" or PageNo=0 then PageNo=1
	 RS.AbsolutePage=PageNo
	 TSum=rs.pagecount
	 RowCount=rs.PageSize
	   PageNo=PageNo+1
	   PageNo=PageNo-1
	 if CINT(PageNo)>1 then
	    if CINT(PageNo)>CINT(TSum) then
		  response.Write("对不起,没有您想找的页数")
          Response.End
	    end if
	 end if		    
     if PageNo<0 then
	    response.Write("没有此页!")
		Response.End
	 End if
end if
%>

<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" name="www.syx8622.cn" content="text/html; charset=gb2312">
<title>梦想小筑友情链接</title>
<link href="1.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css.css" type="text/css">
<SCRIPT language=JavaScript src="link.js" 
type=text/JavaScript></SCRIPT>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#787878">
<style>
BODY {
scrollbar-arrow-color: #999999;
scrollbar-highlight-color: #ffffff;
scrollbar-shadow-color: #cccccc;
scrollbar-face-color: #F7F7F7;
scrollbar-darkshadow-color: #ffffff;
scrollbar-3dlight-color: #ffffff;
scrollbar-track-color: #ffffff;
</style>
<font color="#ECE9D8"> 
<style type=text/css>
<!--
a {cursor:crosshair; height:1; filter:progid:dximagetransform.microsoft.gradientwipe(duration=1);text-decoration : none ; } 
a:link { color : #787878 ; }
a:visited { color : #787878 ; }
a:hover {color : #96CB39; background-color: #f7faff; }
a:active { color : #96CB39 ; }-->
</style>
<script language="javascript">
var rImg = "images/nobanner.gif";
function errorImg(X, Y) {
if (Y == null) {
X.src = rImg;
}
else {
X.src = Y;
}
}
</script>
</font> 
<style type="text/css">
A:hover { position: relative; left:1px; top:1px; }
</style>
<script>   
  var   currentpos,timer;     
  function   initialize()     
  {     
  timer=setInterval('scrollwindow()',10);   
  }     
  function   sc(){   
  clearInterval(timer);   
  }   
  function   scrollwindow()     
  {     
  currentpos=document.body.scrollTop;     
  window.scroll(0,++currentpos);     
  if   (currentpos   !=   document.body.scrollTop)     
  sc();   
  }     
  document.onmousedown=sc;   
  document.ondblclick=initialize;   
    </script> 
<table width="430" border="0" align="center" cellspacing="0" cellpadding="0">
    <tr> 
      <td> 
        <table border="0" align="center" class="table002" cellspacing="1" cellpadding="0" width="100%">
          <tr> 
            <td width="47%"><font color="#999999"><marquee height=16 scrollamount=2 scrolldelay=10 align="middle"> 
              </font> 
              <table width="17" border="0" cellspacing="0" cellpadding="0" height="1">
                <tr> 
                  <td></td>
                </tr>
              </table>
              <font color="#999999"><%=rso("title")%></font></td>
            <td width="47%">&nbsp;</td>
          </tr>
          <tr> 
            <td width="53%"> <span class="new">  Welcome to simplelife's link...</span></td>
            <td width="47%"> 
              <table border="0" cellspacing="0" cellpadding="0" width="164" height="17" align="right">
                <tr> 
                  <td colspan="3" height="5"></td>
                </tr>
                <tr> 
                  <td> 
                    <div align="right"><a href="Join.asp"><img src="images/g3.gif" width="9" height="9" border=0> 加入站点</a></div>
                  </td>
                  <td> 
                    <div align="right"></div>
                  </td>
                  <td> 
                    <div align="right"><a href="logo.htm"><img src="images/g5.gif" width="9" height="9" border=0> 本站信息</a></div>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  
  <table width="232" border="0" cellspacing="0" cellpadding="0" height="7" align="center">
    <tr> 
      <td></td>
    </tr>
  </table>
  <table border="0" cellpadding="0" cellspacing="0" align="center">
    <tr> 
      <td width="25"><img src="images/nav_bg_l.gif" alt="" width="25" height="40"></td>
      <td valign="top" id="navigator" background="images/nav_bg.gif"> 
        <table border="0" align="center" cellspacing="0" height="8" width="100%">
          <tr> 
            <td class="9point" height="11"></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
          <tbody> 
          <%q=false
	Set rso=conn.Execute("select * from foption")
	Set rssort=conn.Execute("select * from sort")%>
          <%Do while not rssort.eof%>
          <tr align= "center"> 
            <%for i=0 to rso("sortcol")  
        if not rssort.eof then%>
            <%if q=false then%>
            <%q=true%>
            <%else%>
            <td height="100%"><a href="index.asp?linktype=<%=rssort("sort")%>"><img src="images/g1.gif" width="9" height="9" border="0">&nbsp;<%=rssort("sort")%> 
              <%rssort.movenext%>
              &nbsp; </a></td>
            <%end  if%>
            <%end  if%>
            <%next%>
          </tr>
          <%loop%>
          </tbody> 
        </table>
      </td>
      <td width="10"><img src="images/nav_bg_r.gif" alt="" width="25" height="40"></td>
    </tr>
  </table>
<table border="0" align="center" cellpadding="0" cellspacing="0" style="margin-bottom: 0" width="437">
  <tr> 
    <td width="100%" height="147" colspan="4"> 
      <% if rso("showmodal")=2 then%>
      <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" >
        <% iPage = 1 %>
        <%do while iPage<rs.PageSize %>
        <tr > 
          <%for i=1 to rso("col")%>
          <%if not rs.eof then%>
          <td align="center" class="table002"> 

⌨️ 快捷键说明

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