放大镜只放大一张图片

2016-07-07 15:11 来源:www.chinab4c.com 作者:ecshop专家

我按照网上弄了放大镜
发现商品切换大图的时候放大镜始终只放大第一张图片,就是后台商品上传的图片
商品相册里面上传的图片放大的都是第一张
http://yipinyn.com/goods.php?id=31

参考代码:
<div class="goods-big-pic">
<script type="text/javascript" src="themes/mb5_com_cn/js/mzp-packed.js"></script>
<div class="thumb">
<a href="{$goods.original_img}" "id="zoom1" class="MagicZoom MagicThumb" >
<img src="{$goods.goods_img}" alt="{$goods.goods_name|escape:html}" width="550px;" height="550px" name="goods_img"/>
</a>
</div>
<div class="blank5"></div>
<div class="goods-small-pic clearfix">
<ul id="imglist">
<!-- {foreach from=$pictures item=picture}-->
<li class="onbg" lang="{$picture.img_url}">
<ahref="{$picture.img_url}"
rel="zoom1"
rev="{$picture.img_url}"
title="{$picture.img_desc|escape:html}">
<img src="{$picture.img_url}" alt="{$goods.goods_name}" class="onbg" /></a>
</li>

<!--{/foreach}-->
</ul>

求解???????

回答:
恩恩,不错