How to send the selected image with javascript?

Asked

Viewed 39 times

1

I’m adapting my blog to be responsive. However, by hiding the banner, it’s still there and always loaded access to the page. I would like to know if it is possible to upload images according to the resolution of viewport. I don’t know if it’s possible, but my goal is to find the width of the viewport through javascript and for that resolution send the appropriate image link, without using jQuery.

1 answer

1


I don’t know if that’s what you need, but take a look at this http://adaptive-images.com

It has been around for some time, basically, the browser communicates with PHP through a COOKIE, which is created in the first use and in the next iterations with the site PHP will create images for the specified sizes.

  • So the problem is that the platform I’m using is Blogger and I don’t know if it supports PHP.

  • 1

    I have never used Blogger, I think it will not be possible so much customization..

Browser other questions tagged

You are not signed in. Login or sign up in order to post.