???µ??N€?°?????»N??????µ ???·???±N€?°?¶?µ?????µ ?? N????»N?

?’ ?????µ?? ??N€???»???¶?µ?????? Shopify, ?????????° N? ???°?????????» ???µN€N…?????? ?»?µ??N‹?? N??????», N? ?????»N?N‡?°NZ N????µ?»??N‡?µ???????µ ???·???±N€?°?¶?µ?????µ N??»?µ??N?NZN‰?µ???? ???·???±N€?°?¶?µ????N? ?? N??µN€????. ???°N?N?N‚?°?±??N€?????°?????µ ??N?N‚?°?»N??????? N‡?°N?N‚?? ???·???±N€?°?¶?µ????N? N€?°?±??N‚?°?µN‚ ???°?? ???±N‹N‡????.

???·???±N€?°?¶?µ?????µ 1:
???·???±N€?°?¶?µ?????µ 1

var mySources = $('img').map(function() {
    return $(this).attr('src');
}).get();    

for(var j=0;j<mySources.length;j++){
    var img = new Image();
    img.src = mySources[j];
    img.style.position = "absolute";
    img.style.left = -9999;             // Image width must not exceed 9999 pixels
    img.style.visibility = "hidden";    // Maybe you can remove this
    //document.body.appendChild(img);
    var imgHeight = img.height;
    var imgWidth = img.width;


    var b= $("img")[j];

    $(b).attr("data-zoom-image", "https://img.gs/wrsxcbbsgt/" + imgWidth+ "x" 
        +imgHeight +",2x,fit,quality=high/"+ mySources[j]);


}

?’ ??N????????????? ?????? ?????»?¶?µ?? ?????»N?N‡??N‚N? ?????µ??N‚??N„?????°N‚??N€ ??N??µN… ???·???±N€?°?¶?µ?????? N? N??°??N‚?° ?? ???µ?·???µ, ??N????° ??N€??N…??????N‚ img-N‚N???. ?? ?????±?°???»N?NZ N??»?µ???µ??N‚ ???°N?N?N‚?°?±??N€?????°????N?.

?§N‚???±N‹ ??N€?????µN€??N‚N? N??°????N?N‚??N?N‚?µ?»N?????, ??N‹ ?????¶?µN‚?µ ?·?°??N‚?? ???° N??°??N‚: doro-chan.myshopify.com ?? ???°N€???»N?: zaecla

JavaScript, Shopify, изображение масштабирование, вне по-одному,

0

Ответов: 0

???µ??N€?°?????»N??????µ ???·???±N€?°?¶?µ?????µ ?? N????»N?

?’ ?????µ?? ??N€???»???¶?µ?????? Shopify, ?????????° N? ???°?????????» ???µN€N…?????? ?»?µ??N‹?? N??????», N? ?????»N?N‡?°NZ N????µ?»??N‡?µ???????µ ???·???±N€?°?¶?µ?????µ N??»?µ??N?NZN‰?µ???? ???·???±N€?°?¶?µ????N? ?? N??µN€????. ???°N?N?N‚?°?±??N€?????°?????µ ??N?N‚?°?»N??????? N‡?°N?N‚?? ???·???±N€?°?¶?µ????N? N€?°?±??N‚?°?µN‚ ???°?? ???±N‹N‡????.

???·???±N€?°?¶?µ?????µ 1:
???·???±N€?°?¶?µ?????µ 1

var mySources = $('img').map(function() {
    return $(this).attr('src');
}).get();    

for(var j=0;j<mySources.length;j++){
    var img = new Image();
    img.src = mySources[j];
    img.style.position = "absolute";
    img.style.left = -9999;             // Image width must not exceed 9999 pixels
    img.style.visibility = "hidden";    // Maybe you can remove this
    //document.body.appendChild(img);
    var imgHeight = img.height;
    var imgWidth = img.width;


    var b= $("img")[j];

    $(b).attr("data-zoom-image", "https://img.gs/wrsxcbbsgt/" + imgWidth+ "x" 
        +imgHeight +",2x,fit,quality=high/"+ mySources[j]);


}

?’ ??N????????????? ?????? ?????»?¶?µ?? ?????»N?N‡??N‚N? ?????µ??N‚??N„?????°N‚??N€ ??N??µN… ???·???±N€?°?¶?µ?????? N? N??°??N‚?° ?? ???µ?·???µ, ??N????° ??N€??N…??????N‚ img-N‚N???. ?? ?????±?°???»N?NZ N??»?µ???µ??N‚ ???°N?N?N‚?°?±??N€?????°????N?.

?§N‚???±N‹ ??N€?????µN€??N‚N? N??°????N?N‚??N?N‚?µ?»N?????, ??N‹ ?????¶?µN‚?µ ?·?°??N‚?? ???° N??°??N‚: doro-chan.myshopify.com ?? ???°N€???»N?: zaecla

00JavaScript, Shopify, ???·???±N€?°?¶?µ?????µ ???°N?N?N‚?°?±??N€?????°?????µ, ?????µ ????-??????????N?,
Похожие вопросы