xml 延迟加载带有while循环的sfnt滑块
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml 延迟加载带有while循环的sfnt滑块相关的知识,希望对你有一定的参考价值。
<mvt:assign name="l.curr" value="1" />
<mvt:while expr="l.stop NE 1">
<mvt:assign name="l.settings:readytheme:loaded_slider" value="''" />
<mvt:assign name="l.curr" value="l.curr + 1" />
<mvt:assign name="g.slidername" value="'sfnt_slider_' $ l.curr" />
<mvt:item name="readytheme" param="load_image(g.slidername, l.settings:loaded_slider)" />
<mvt:if expr="l.settings:readytheme:loaded_slider">
<mvt:if expr="l.settings:readytheme:loaded_slider:active">
<mvt:do file="g.Module_Library_DB" name="l.settings:readytheme:image_slider2" value="Image_Load_ID( l.settings:readytheme:loaded_slider:image_id, l.settings:readytheme:loaded_slider_source )" />
<mvt:eval expr="glosub(miva_array_serialize(l.settings:readytheme:loaded_slider), ',', '<br />')" />
<mvt:if expr="l.settings:readytheme:loaded_slider:link_type">
<mvt:assign name="l.loaded_sliderlink:store_id" value="g.Store:id" />
<mvt:assign name="l.loaded_sliderlink:screen" value="''" />
<mvt:assign name="l.loaded_sliderlink:page_id" value="0" />
<mvt:assign name="l.loaded_sliderlink:cat_id" value="0" />
<mvt:assign name="l.loaded_sliderlink:product_id" value="0" />
<mvt:if expr="l.settings:readytheme:loaded_slider:link_type EQ 'P'">
<mvt:do name="l.settings:readytheme:loadprod" file="g.Module_Library_DB" value=" Product_Load_Code(l.settings:readytheme:loaded_slider:link_dest, l.settings:readytheme:product) " />
<mvt:assign name="l.loaded_sliderlink:product_id" value="l.settings:readytheme:product:id" />
<mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical( l.loaded_sliderlink, l.settings:canonical_uri )" />
<a href="&mvt:canonical_uri:uri;" target="&mvt:readytheme:loaded_slider:link_targ;">
<img data-lazy="&mvt:readytheme:loaded_slider_source:image;" alt="&mvt:readytheme:loaded_slider:image_alt;"/>
</a>
<mvt:elseif expr="l.settings:readytheme:loaded_slider:link_type EQ 'C'">
<mvt:do name="l.settings:readytheme:loadcat" file="g.Module_Library_DB" value=" Category_Load_Code(l.settings:readytheme:loaded_slider:link_dest, l.settings:readytheme:category) " />
<mvt:assign name="l.loaded_sliderlink:cat_id" value="l.settings:readytheme:category:id" />
<mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical( l.loaded_sliderlink, l.settings:canonical_uri )" />
<a href="&mvt:canonical_uri:uri;" target="&mvt:readytheme:loaded_slider:link_targ;">
<img data-lazy="&mvt:readytheme:loaded_slider_source:image;" alt="&mvt:readytheme:loaded_slider:image_alt;"/>
</a>
<mvt:elseif expr="l.settings:readytheme:loaded_slider:link_type EQ 'G'">
<mvt:do name="l.settings:readytheme:loadprod" file="g.Module_Feature_TUI_DB" value=" Page_Load_Code(l.settings:readytheme:loaded_slider:link_dest, l.settings:readytheme:page) " />
<mvt:assign name="l.loaded_sliderlink:page_id" value="l.settings:readytheme:page:id" />
<mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical( l.loaded_sliderlink, l.settings:canonical_uri )" />
<a href="&mvt:canonical_uri:uri;" target="&mvt:readytheme:loaded_slider:link_targ;">
<img data-lazy="&mvt:readytheme:loaded_slider_source:image;" alt="&mvt:readytheme:loaded_slider:image_alt;"/>
</a>
<mvt:elseif expr="l.settings:readytheme:loaded_slider:link_type EQ 'U'">
<a href="&mvt:readytheme:loaded_slider:link_dest;" target="&mvt:readytheme:loaded_slider:link_targ;">
<img data-lazy="&mvt:readytheme:loaded_slider_source:image;" alt="&mvt:readytheme:loaded_slider:image_alt;"/>
</a>
<mvt:else>
<img data-lazy="&mvt:readytheme:loaded_slider_source:image;" alt="&mvt:readytheme:loaded_slider:image_alt;"/>
</mvt:if>
</mvt:if>
</mvt:if>
<mvt:else>
<mvt:assign name="l.stop" value="1" />
</mvt:if>
</mvt:while>
以上是关于xml 延迟加载带有while循环的sfnt滑块的主要内容,如果未能解决你的问题,请参考以下文章
xml 加载Readytheme图像数组以添加到延迟加载滑块//用于Guy Harvey Jewelry。
xml 加载Readytheme图像数组以添加到延迟加载滑块//用于Guy Harvey Jewelry。