如何在新窗口打開點(diǎn)擊圖片_動易Cms教程
問題:如何在新窗口打開點(diǎn)擊圖片
解決方法:修改顯示圖片的標(biāo)簽,給<a>增加一條在新窗口打開的屬性_blank。
以默認(rèn)商城首頁“最新商品”為例,查模板,找到調(diào)用的標(biāo)簽是
{PE.Label id="最新商品子欄目一列式列表循環(huán)" shownum="8" parentid="@RequestInt_id" /}
標(biāo)簽管理中,查找“最新商品子欄目一列式列表循環(huán)”找到
{PE.Label id="顯示分類商品一列式列表循環(huán)" parentid="<xsl:value-of select="$parentid" />" shownum="<xsl:value-of select="$shownum" />" title="最新商品" titlelen="<xsl:value-of select="$titlelen" />" arraynodeid="<xsl:value-of select="arrchildid"/>" isnew="convert(int,isnew) desc," /}
查找“顯示分類商品一列式列表循環(huán)”,修改其內(nèi)容
<a>
<xsl:attribute name="href">
<xsl:value-of disable-output-escaping="yes" select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle)"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<!--顯示圖片-->
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="string-length(ProductThumb)=0">
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:ConvertAbsolutePath(ProductThumb)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<!--顯示圖片結(jié)束-->
添加紅色的代碼,即可。
說明:
1、上面的方法也就是給<a>增加一條在新窗口打開的屬性target=_blank
2、其它鏈接也可以類似這樣修改。
- MAC錯誤的解決方法
- 如何屏蔽動易后臺導(dǎo)航里的某個功能菜單?
- 動易.NET版本留言自動選定欄目方法
- 動易SiteFactoty整合Discuz!NT3.0
- 在任意位置獲取根節(jié)點(diǎn)ID標(biāo)簽
- 如何開啟SiteWeaver6.8的支持,反對功能
- Windows 2008安裝動易.NET系統(tǒng)之四----動易系統(tǒng)安裝篇
- Windows 2008安裝動易.NET系統(tǒng)之三----數(shù)據(jù)庫篇
- Windows 2008安裝動易.NET系統(tǒng)之二----IIS、目錄環(huán)境配置篇
- 數(shù)據(jù)庫修復(fù),SQL Server 2005內(nèi)部操作不一致的處理
- 如何安裝動易.net程序權(quán)限配置
- 為什么提示對Windows系統(tǒng)文件夾下的Temp目錄沒有訪問權(quán)限?
- 相關(guān)鏈接:
- 教程說明:
動易Cms教程-如何在新窗口打開點(diǎn)擊圖片
。