8种醒目标志的修改 for 7.1 SP1

把z_HighlightTopic文件夹放到 inc目录下

修改如下:

分页模板page_post,在template.html(6)中找到

<select name="topicximoo"><option value="0">标题醒目</option><option value="1">HTML支持</option><option value="2">红色醒目</option><option value="3">蓝色醒目</option><option value="4">绿色醒目</option></select>

替换:

<select name="topicximoo"><option value="0">标题醒目</option><option value="1">HTML支持</option><option value="2">红色醒目</option><option value="3">蓝色醒目</option><option value="4">绿色醒目</option><option value=5>紫框醒目</option><option value=6>绿框醒目</option><option value=7>红框醒目</option><option value=8>蓝框醒目</option><option value=9>霓虹醒目</option><option value=10>跳跃醒目</option><option value=11>突出醒目</option><option value=12>彩色醒目</option></select>


Page_Index分页模板,在template.html(1)中找到

<xsl:when test="@topicmode='4'">
<font color="green"><xsl:choose>
  <xsl:when test="string-length(@title) &gt; 30 "><xsl:value-of select="concat(substring(@title,0,20),'....',substring(@title,(string-length(@title)- 10 ),string-length(@title)))" disable-output-escaping="yes"/>[长]</xsl:when>
  <xsl:otherwise><xsl:value-of select="@title" disable-output-escaping="yes"/></xsl:otherwise>
</xsl:choose></font>
</xsl:when>

在下面加入

<xsl:when test="@topicmode='5'">
<span style="border:solid 1px #DD2292;border-left-width:5px;border-left-color:#DD2292;background:#ffffff;padding:1px 6px 2px 6px;font-size: 8pt"><xsl:choose>
  <xsl:when test="string-length(@title) &gt; 30 "><xsl:value-of select="concat(substring(@title,0,20),'....',substring(@title,(string-length(@title)- 10 ),string-length(@title)))" disable-output-escaping="yes"/>[长]</xsl:when>
  <xsl:otherwise><xsl:value-of select="@title" disable-output-escaping="yes"/></xsl:otherwise>
</xsl:choose></span>
</xsl:when>
<xsl:when test="@topicmode='6'">
  <span style="border:solid 1px #55AA55;border-left-width:5px;border-left-color:#55AA55;background:#ffffff;padding:1px 6px 2px 6px;font-size: 8pt"><xsl:choose>
  <xsl:when test="string-length(@title) &gt; 30 "><xsl:value-of select="concat(substring(@title,0,20),'....',substring(@title,(string-length(@title)- 10 ),string-length(@title)))" disable-output-escaping="yes"/>[长]</xsl:when>
  <xsl:otherwise><xsl:value-of select="@title" disable-output-escaping="yes"/></xsl:otherwise>
</xsl:choose></span>
</xsl:when>
<xsl:when test="@topicmode='7'">
<span style="border:solid 1px #cc0000;border-left-width:5px;border-left-color:#cc0000;background:#ffffff;padding:1px 6px 2px 6px;font-size: 8pt"><xsl:choose>
  <xsl:when test="string-length(@title) &gt; 30 "><xsl:value-of select="concat(substring(@title,0,20),'....',substring(@title,(string-length(@title)- 10 ),string-length(@title)))" disable-output-escaping="yes"/>[长]</xsl:when>
  <xsl:otherwise><xsl:value-of select="@title" disable-output-escaping="yes"/></xsl:otherwise>
</xsl:choose></span>
</xsl:when>
<xsl:when test="@topicmode='8'">
<span style="border:solid 1px #0000cc;border-left-width:5px;border-left-color:#0000cc;background:#ffffff;padding:1px 6px 2px 6px;font-size: 8pt"><xsl:choose>
  <xsl:when test="string-length(@title) &gt; 30 "><xsl:value-of select="concat(substring(@title,0,20),'....',substring(@title,(string-length(@title)- 10 ),string-length(@title)))" disable-output-escaping="yes"/>[长]</xsl:when>
  <xsl:otherwise><xsl:value-of select="@title" disable-output-escaping="yes"/></xsl:otherwise>
</xsl:choose></span>
</xsl:when>
<xsl:when test="@topicmode='9'">
<font textcolor1="#FFFF00" textbkcolor1="transparent" textcolor2="#FFCC99" textbkcolor2="transparent" speed="100" letters1="1" letters2="1" pause="500" style="behavior:url(inc/z_HighlightTopic/z_FlashText.htc);color:#c000c0;background-color:transparent"><xsl:choose>
  <xsl:when test="string-length(@title) &gt; 30 "><xsl:value-of select="concat(substring(@title,0,20),'....',substring(@title,(string-length(@title)- 10 ),string-length(@title)))" disable-output-escaping="yes"/>[长]</xsl:when>
  <xsl:otherwise><xsl:value-of select="@title" disable-output-escaping="yes"/></xsl:otherwise>
</xsl:choose></font>
</xsl:when>
<xsl:when test="@topicmode='10'">
<font textoffset1="-4" textoffset2="-2" speed="100" letters1="1" letters2="1" pause="1000" style="behavior:url(inc/z_HighlightTopic/z_WaveText.htc);color:#FF6600;background-color:transparent"><xsl:choose>
  <xsl:when test="string-length(@title) &gt; 30 "><xsl:value-of select="concat(substring(@title,0,20),'....',substring(@title,(string-length(@title)- 10 ),string-length(@title)))" disable-output-escaping="yes"/>[长]</xsl:when>
  <xsl:otherwise><xsl:value-of select="@title" disable-output-escaping="yes"/></xsl:otherwise>
</xsl:choose></font>
</xsl:when>
<xsl:when test="@topicmode='11'">
<font textcolor="#ff0000" basesize="12" textsize1="16" textsize2="14" speed="100" letters1="1" letters2="1" pause="500" style="behavior:url(inc/z_HighlightTopic/z_ResizeText.htc);color:#993300;background-color:transparent;"><xsl:choose>
  <xsl:when test="string-length(@title) &gt; 30 "><xsl:value-of select="concat(substring(@title,0,20),'....',substring(@title,(string-length(@title)- 10 ),string-length(@title)))" disable-output-escaping="yes"/>[长]</xsl:when>
  <xsl:otherwise><xsl:value-of select="@title" disable-output-escaping="yes"/></xsl:otherwise>
</xsl:choose></font>
</xsl:when>
<xsl:when test="@topicmode='12'">
<font textoffset1="-4" textoffset2="-2" speed="100" letters1="1" letters2="1" pause="1000" style="behavior:url(inc/z_HighlightTopic/font.htc);color:#FF6600;background-color:transparent"><xsl:choose>
  <xsl:when test="string-length(@title) &gt; 30 "><xsl:value-of select="concat(substring(@title,0,20),'....',substring(@title,(string-length(@title)- 10 ),string-length(@title)))" disable-output-escaping="yes"/>[长]</xsl:when>
  <xsl:otherwise><xsl:value-of select="@title" disable-output-escaping="yes"/></xsl:otherwise>
</xsl:choose></font>
</xsl:when>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值