带有Smarty模板的jQuery LazyLoad

时间:2013-07-18 10:16:05

标签: jquery smarty lazy-loading

我在我的网站上使用Smarty 2,我也想使用jQuery LazyLoad。

我使用html_thumb生成thumbinail,我该如何调整

{html_thumb 
      src=$appconfig.image.product.app.path|cat:$item.id|cat:$smarty.const.DS|cat:$item.NAME_OF_PICTURE_IN_BASE 
      error_image_path=$appconfig.image.product.thumb.web.error 
      save_path=$appconfig.image.product.thumb.app.path|cat:$item.id|cat:$smarty.const.DS 
      display_path=$appconfig.image.product.thumb.web.path|cat:$item.id|cat:"/" 
      alt=$item.name 
      w=119 
      h=102 
      zc=0 
      far=1 
      bgcolor='FFFFFF' 
      q=100} 

要使用LazyLoad,例如:

<img data-original="img/example.jpg" src="img/grey.gif" width="640" height="480">

谢谢。

0 个答案:

没有答案