Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript src attribute of some images

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #237608
    triplebit
    Participant

    Here is my site
    https://market.marmelada.co.il/products/273919
    Please refer to the lower most images at the bottom, above the footer.
    I believe that some of it is built with javascript
    I need to get as a single string, constructed as comma separated sub-strings of the urls of the most lower images. Actually its the src attribute value, something like
    “/photos/170×134/1294252.jpg,/photos/170×134/1294252.jpg,/photos/170×134/1294252.jpg”
    Can someone help please?
    Thx

    #237609
    Shikkediel
    Participant

    a single string, constructed as comma separated sub-strings

    Not sure what that means… replacing the slashes with commas perhaps?

    Anyway, the site’s using jQuery so this should get the basic data – under the condition that the ads aren’t loaded asynchronously after window onload :

    $(window).on('load', function() {
    
    var urls = [];
    
    $('.box_content img').each(function() {
    
        urls.push(this.src);
    });
    
    console.log(urls);
    });
    

    By the way, a blocking popup and more than a dozen scripts from different sites… that pretty horrible.

    :-/

    #237615
    triplebit
    Participant

    Thx
    It worked

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.