动易标签内容使用切图函数。
第一种用法:
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="DefaultPicUrl != ''">
<xsl:value-of select="pe:ConvertAbsolutePath(pe:GetAnySizePic(DefaultPicUrl,230,173))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="Title" />
</xsl:attribute>
</xsl:element>
第二种用法:
<img src="{pe:GetSiteConfigInfo('uploaddir')}{pe:GetAnySizePic(DefaultPicUrl,$imageWidth,$imageHeight)}" />
网友评论