How to change data-zoom-image value

前端 未结 7 2257
旧时难觅i
旧时难觅i 2021-01-04 11:03

I\'m using elevate zoom effects for zooming facility of image, my image tag is:



        
相关标签:
7条回答
  • 2021-01-04 11:50

    Include the following code in js and it may solve your problem In variable smallImage give the url of the new small image and in largeImage give the url of new large image. Hope this solves your problem without reintializing your elevate zoom.

    var ez = $("#zoom_01").data("elevateZoom");
    ez.swaptheimage(smallImage, largeImage);
    
    0 讨论(0)
提交回复
热议问题