Я вставил скрипт для увлечение картинка на страница товара, но например когда выбираю вторую или третью картинку, все равно зум подгружает первую
вот как я вставил
<style type="text/css">
.thumbnail{
position: relative;
z-index: 0;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: #3d3d3d;
padding: 5px;
left: -1000px;
border: 1px solid white;
visibility: hidden;
color: Yellow;
text-decoration: none;
border-radius: 4px 4px 4px 4px;
-moz-border-radius: 4px 4px 4px 4px;
-webkit-border-radius: 4px 4px 4px 4px;
}
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 1420;
left: 200px; /*position where enlarged image should offset horizontally */
}
</style>
<a class="thumbnail" href="$PHOTO$"><img style="width: 190px; "
src="$PHOTO$"width="190" class="gphoto" onclick="_bldCont1($ID$, this.getAttribute('idx'));" id="ipreview" idx="0"><span>$ENTRY_TITLE$<img style="width: 554px; height: 500px;" src="$PHOTO$"></span></a>