TechSapphire Sunday, 2018-11-18, 10:37 AM
Site menu
Login form
News
Play Games
  • Deep Freeze
  • Ice Slide
  • Gyroball
  • Fat Fish
  • Bush Royal Rampage
  • Main » 2014 » March » 9 » elevatezoom How to change data-zoom-image value ?
    2:20 AM
    elevatezoom How to change data-zoom-image value ?
    For fixing this issue just follow simple steps below:
    1. Open jquery.elevatezoom.js file in notepad.
    2. Now you will see code below:
    (function( $, window, document, undefined ) {
        var ElevateZoom = {
                init: function( options, elem ) {
                    var self = this;

                    self.elem = elem;
                    self.$elem = $( elem );

                    self.imageSrc = self.$elem.data("zoom-image") ? self.$elem.data("zoom-image") : self.$elem.attr("src");

    Just replace highlighted code with code below:

                    self.imageSrc = self.$elem.attr("src");

    And you will get what you want.
    Category: Programming | Views: 29816 | Added by: Admin | Tags: data-zoom-image, elevatezoom, Value, change | Rating: 5.0/1
    Total comments: 0
    Only registered users can add comments.
    [ Registration | Login ]
    Categories
    Programming [27]
    Tips for programming
    Security [2]
    Security Tips
    Google [1]
    Use google faster then ever you use
    Project [14]
    HTML [2]
    Electronics [0]
    Data Structure [0]
    Database [16]
    SQL SERVER
    SSRS [1]
    Sql Server Reporting Services
    Copyright MyCorp © 2018