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

📄 default.asp

📁 免费实用家教网整站程序(奥运特别版) v1.5
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css.css"  type="text/css">
<style type="text/css">
td{font-size:12px;}
.STYLE4 {color: #006666}
.STYLE5 {color: #CC0099}
.STYLE6 {
	color: #FF0000;
	font-weight: bold;
}
.STYLE7 {color: #0099FF}
.STYLE8 {color: #009AFF}
.STYLE9 {font-size: 12px}
</style>

<script>
function checkform1(){

if(form1.linkname.value=="")
{

alert("链接名称不能为空!");
form1.linkname.focus();
return false;
}
if(form1.linkurl.value=="")
{

alert("链接路径不能为空!");
form1.linkurl.focus();
return false;
}

}


function checkform2()
{
if(form2.linkname.value=="")
{

alert("链接名称不能为空!");
form2.linkname.focus();
return false;
}
if(form2.linkurl.value=="")
{

alert("链接路径不能为空!");
form2.linkurl.focus();
return false;
}

if(form2.imgpath.value=="")
{

alert("图片路径不能为空!");
form2.imgpath.focus();
return false;
}



}
</script>

<title>友情链接 中华家教网-友情链接,自助链接,申请链接,审核链接,交换链接,链接,交流</title></head>

<body topmargin="10">

<!--#include file="top.asp"-->
<TABLE width=811 border=0 align="center" cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF" style="border:#dddddd 1px solid;">
  <!--DWLayoutTable-->
  <TBODY>
    <TR> 
      <TD width="22" height="18">&nbsp;</TD>
      <TD width="13">&nbsp;</TD>
      <TD width="320">&nbsp;</TD>
      <TD width="15">&nbsp;</TD>
      <TD width="320">&nbsp;</TD>
      <TD width="19">&nbsp;</TD>
      <TD width="17">&nbsp;</TD>
    </TR>
    <TR> 
      <TD height="22"></TD>
      <TD></TD>
      <TD colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr> 
            <td width="655" height="22" valign="middle" style="border-bottom:#009090 2px solid;">
              <p>·文字链接区</p>
            </td>
          </tr>
        </table></TD>
      <TD></TD>
      <TD></TD>
    </TR>
    <TR> 
      <TD height="10"></TD>
      <TD></TD>
      <TD></TD>
      <TD></TD>
      <TD></TD>
      <TD></TD>
      <TD></TD>
    </TR>
    <TR> 
      <TD height="28"></TD>
      <TD></TD>
      <TD colspan="3" valign="top"><table border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <%
	i=1
	StarNodes=0

	strSourceFile = Server.MapPath("Word.xml")
   Set objXML = Server.CreateObject("Microsoft.XMLDOM")
	objXML.load(strSourceFile)
	Set objRootsite = objXML.documentElement.selectSingleNode("guestbook")

	'每页显示*条留言
	
	AllNodesNum = objRootsite.childNodes.length - 1
		

	
	response.write "<tr>"
	
	
	while StarNodes =< AllNodesNum

		id=objRootsite.childNodes.item(StarNodes).childNodes.item(0).text	
		liketype=objRootsite.childNodes.item(StarNodes).childNodes.item(1).text
		linkname=objRootsite.childNodes.item(StarNodes).childNodes.item(2).text		
		linkurl=objRootsite.childNodes.item(StarNodes).childNodes.item(3).text
		imgpath=objRootsite.childNodes.item(StarNodes).childNodes.item(4).text
		addtime=objRootsite.childNodes.item(StarNodes).childNodes.item(5).text
		ischeck=objRootsite.childNodes.item(StarNodes).childNodes.item(6).text
		
		if liketype="1" and ischeck="1" then
		
		
	response.write "<td height='25' width='105' align='center' valign='middle' bgcolor='#ffffff' style='padding:5px;'><a href='http://"&replace(linkurl,"http://","")&"' target='_blank' class='a4'>"&linkname&"</a></td>"	  
		  

	%>
          <% 

if i mod 7=0 then response.write "</tr><tr>" 

i=i+1

end if


StarNodes = StarNodes + 1
wend 

set objXML = nothing 
	
%>
        </table></TD>
      <TD></TD>
      <TD></TD>
    </TR>
    <TR> 
      <TD height="27"></TD>
      <TD></TD>
      <TD>&nbsp;</TD>
      <TD>&nbsp;</TD>
      <TD>&nbsp;</TD>
      <TD></TD>
      <TD></TD>
    </TR>
    <TR> 
      <TD height="22"></TD>
      <TD></TD>
      <TD colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr> 
            <td width="655" height="22" valign="middle" style="border-bottom:#009090 2px solid;">·图片链接区</td>
          </tr>
        </table></TD>
      <TD></TD>
      <TD></TD>
    </TR>
    <TR> 
      <TD height="10"></TD>
      <TD></TD>
      <TD></TD>
      <TD></TD>
      <TD></TD>
      <TD></TD>
      <TD></TD>
    </TR>
    <TR> 
      <TD height="50"></TD>
      <TD></TD>
      <TD colspan="3" valign="top"><table border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <%
	j=1
	StarNodes=0

	strSourceFile = Server.MapPath("Word.xml")
   Set objXML = Server.CreateObject("Microsoft.XMLDOM")
	objXML.load(strSourceFile)
	Set objRootsite = objXML.documentElement.selectSingleNode("guestbook")

	
	
	'获取子节点数据(因为是从节点数从0开始的所最大子节点数要减1)
	AllNodesNum = objRootsite.childNodes.length - 1
	

	
	response.write "<tr>"
	
	
while StarNodes =< AllNodesNum

		id=objRootsite.childNodes.item(StarNodes).childNodes.item(0).text	
		liketype=objRootsite.childNodes.item(StarNodes).childNodes.item(1).text
		linkname=objRootsite.childNodes.item(StarNodes).childNodes.item(2).text		
		linkurl=objRootsite.childNodes.item(StarNodes).childNodes.item(3).text
		imgpath=objRootsite.childNodes.item(StarNodes).childNodes.item(4).text
		addtime=objRootsite.childNodes.item(StarNodes).childNodes.item(5).text
		ischeck=objRootsite.childNodes.item(StarNodes).childNodes.item(6).text

		if liketype="2" and ischeck="1" then
		
		
	response.write "<td height='28' align='center' valign='middle' bgcolor='#ffffff' style='padding:5px;'><a href='http://"&replace(linkurl,"http://","")&"' target='_blank' title='"&linkname&"'><img src='http://"&replace(imgpath,"http://","")&"' border=0 height=31 width=88></a></td>"	  
		  

	%>
          <% 

if j mod 7=0 then response.write "</tr><tr>" 

j=j+1

end if


StarNodes = StarNodes + 1
wend 

set objXML = nothing 
	
%>
        </table></TD>
      <TD></TD>
      <TD></TD>
    </TR>
    <TR> 
      <TD height="27"></TD>
      <TD></TD>
      <TD>&nbsp;</TD>
      <TD>&nbsp;</TD>
      <TD>&nbsp;</TD>
      <TD></TD>
      <TD></TD>
    </TR>
    <TR> 
      <TD height="22"></TD>

⌨️ 快捷键说明

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