📄 index.xsl
字号:
</table>
<!--特别推荐代码结束-->
</td>
</tr>
</table>
<table class="center_tdbgall" cellSpacing="0" cellPadding="0" width="760" align="center" border="0">
<tr>
<td class="main_shadow"></td>
</tr>
</table>
<table class="center_tdbgall" cellSpacing="0" cellPadding="0" width="760" align="center" border="0">
<tr>
<td vAlign="top" width="100%">
<!--推荐聚合开始-->
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr onclick="new Element.toggle('eliteblog')">
<td class="main_title_760"> <B>推荐聚合</B></td>
</tr>
<tbody id="eliteblog">
<tr>
<td align="center"><div id="classelite"><xsl:apply-templates select="body/EliteBlog/Blogitem"/></div></td>
</tr>
</tbody>
<tr>
<td class="main_shadow"></td>
</tr>
</table>
</td>
</tr>
</table>
<table class="center_tdbgall" cellSpacing="0" cellPadding="0" width="760" align="center" border="0">
<tr>
<td vAlign="top" width="100%">
<!--聚合分类开始-->
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr onclick="new Element.toggle('blogclass')">
<td class="main_title_760"> <B>聚合分类列表</B></td>
</tr>
<tbody id="blogclass">
<tr>
<td><div id="classlist"><a href="index.asp">全部分类</a><xsl:text disable-output-escaping="yes">&nbsp;&nbsp;&nbsp;</xsl:text><xsl:apply-templates select="body/BlogClassList/item"/></div></td>
</tr>
</tbody>
<tr>
<td class="main_shadow"></td>
</tr>
</table>
</td>
</tr>
</table>
<table class="center_tdbgall" cellSpacing="0" cellPadding="0" width="760" align="center" border="0">
<tr>
<td class="main_shadow"></td>
</tr>
</table>
<!-- ********网页中部代码结束******** -->
<!-- ********网页底部代码开始******** -->
<table cellSpacing="0" cellPadding="0" width="778" align="center" border="0">
<tr>
<td class="menu_bottombg" align="middle">| <A class="Bottom" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('{body/Site/SiteUrl}');" style="cursor:hand;">设为首页</A> | <A class="Bottom" href="javascript:window.external.addFavorite('{body/Site/SiteUrl}','{body/Site/SiteName}');">加入收藏</A> | <a class="Bottom"><xsl:attribute name="href">mailto:<xsl:value-of select="body/Site/WebmasterEmail"/></xsl:attribute>联系站长</a> | <A class="Bottom" href="../FriendSite/Index.asp" target="_blank">友情链接</A> | <A class="Bottom" href="../Copyright.asp" target="_blank">版权申明</A> |
<xsl:choose>
<xsl:when test="body/Site/ShowAdminLogin = 'enable'">
<a class="Bottom" href="../{body/Site/AdminDir}/Admin_Index.asp" target="_blank">管理登录</a><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>|<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
</xsl:when>
</xsl:choose>
</td>
</tr>
<tr>
<td class="bottom_bg" height="80">
<table cellSpacing="0" cellPadding="0" width="90%" align="center" border="0">
<tr>
<td><IMG height="80" src="../Skin/Ocean/bottom_left.gif" width="9" /></td>
<td align="middle" width="80%"><xsl:value-of select="body/Site/Copyright" disable-output-escaping="yes"/> 站长:<a><xsl:attribute name="href">mailto:<xsl:value-of select="body/Site/WebmasterEmail"/></xsl:attribute><xsl:value-of select="body/Site/WebmasterName"/></a></td>
<td align="right"><IMG height="80" src="../Skin/Ocean/bottom_r.gif" width="9" /></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</xsl:element>
</xsl:template>
<xsl:template match="Blogitem">
<tr><td><a href="{link}">
<xsl:choose>
<xsl:when test="string-length(title) > 20" >
<xsl:value-of select="substring(title,1,20)" /><xsl:text>...</xsl:text>
</xsl:when>
<xsl:otherwise><xsl:value-of select="title" /></xsl:otherwise>
</xsl:choose>
</a></td><td width="100" align="right"><xsl:value-of select="BirthDay"/></td></tr>
</xsl:template>
<xsl:template match="body/AddBlog/Blogitem">
<tr><td width="150"><a href="{link}">
<xsl:choose>
<xsl:when test="string-length(title) > 10" >
<xsl:value-of select="substring(title,1,10)" /><xsl:text>...</xsl:text>
</xsl:when>
<xsl:otherwise><xsl:value-of select="title" /></xsl:otherwise>
</xsl:choose>
</a></td><td width="100" align="right"><xsl:value-of select="author"/></td></tr>
</xsl:template>
<xsl:template match="/body/EliteBlog/Blogitem">
<xsl:apply-templates select="Blogitem"/>
</xsl:template>
<xsl:template match="body/EliteBlog/Blogitem[position() mod 5 = 1]">
<a href="{link}">
<xsl:element name="img" namespace="http://www.w3.org/1999/xhtml">
<xsl:attribute name="src"><xsl:value-of select="Photo"/></xsl:attribute>
<xsl:attribute name="alt">名称:<xsl:value-of select="title"/>|日期:<xsl:value-of select="BirthDay"/></xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="hight">160</xsl:attribute>
<xsl:attribute name="width">120</xsl:attribute>
</xsl:element>
</a>
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;&nbsp;</xsl:text>
<a href="{following-sibling::Blogitem[1]/link}">
<xsl:element name="img" namespace="http://www.w3.org/1999/xhtml">
<xsl:attribute name="src"><xsl:value-of select="following-sibling::Blogitem[1]/Photo"/></xsl:attribute>
<xsl:attribute name="alt">名称:<xsl:value-of select="following-sibling::Blogitem[1]/title"/>|日期:<xsl:value-of select="following-sibling::Blogitem[1]/BirthDay"/></xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="hight">160</xsl:attribute>
<xsl:attribute name="width">120</xsl:attribute>
</xsl:element>
</a>
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;&nbsp;</xsl:text>
<a href="{following-sibling::Blogitem[2]/link}">
<xsl:element name="img" namespace="http://www.w3.org/1999/xhtml">
<xsl:attribute name="src"><xsl:value-of select="following-sibling::Blogitem[2]/Photo"/></xsl:attribute>
<xsl:attribute name="alt">名称:<xsl:value-of select="following-sibling::Blogitem[2]/title"/>|日期:<xsl:value-of select="following-sibling::Blogitem[2]/BirthDay"/></xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="hight">160</xsl:attribute>
<xsl:attribute name="width">120</xsl:attribute>
</xsl:element>
</a>
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;&nbsp;</xsl:text>
<a href="{following-sibling::Blogitem[3]/link}">
<xsl:element name="img" namespace="http://www.w3.org/1999/xhtml">
<xsl:attribute name="src"><xsl:value-of select="following-sibling::Blogitem[3]/Photo"/></xsl:attribute>
<xsl:attribute name="alt">名称:<xsl:value-of select="following-sibling::Blogitem[3]/title"/>|日期:<xsl:value-of select="following-sibling::Blogitem[3]/BirthDay"/></xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="hight">160</xsl:attribute>
<xsl:attribute name="width">120</xsl:attribute>
</xsl:element>
</a>
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;&nbsp;</xsl:text>
<a href="{following-sibling::Blogitem[4]/link}">
<xsl:element name="img" namespace="http://www.w3.org/1999/xhtml">
<xsl:attribute name="src"><xsl:value-of select="following-sibling::Blogitem[4]/Photo"/></xsl:attribute>
<xsl:attribute name="alt">名称:<xsl:value-of select="following-sibling::Blogitem[4]/title"/>|日期:<xsl:value-of select="following-sibling::Blogitem[4]/BirthDay"/></xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="hight">160</xsl:attribute>
<xsl:attribute name="width">120</xsl:attribute>
</xsl:element>
</a>
<br />
</xsl:template>
<xsl:template match="body/BlogClassList/item">
<a href="index.asp?TypeID={id}"><xsl:value-of select="title"/></a><xsl:text disable-output-escaping="yes">&nbsp;&nbsp;&nbsp;</xsl:text>
</xsl:template>
<xsl:template match="Channelitem">
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>|<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text><a href="{link}" class="channel"><xsl:value-of select="title"/></a>
</xsl:template>
<xsl:template match="Announceitem">
<a href="{link}"><xsl:value-of select="title"/></a><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text><xsl:value-of select="DateAndTime"/><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
</xsl:template>
</xsl:stylesheet>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -