mercredi 13 juin 2018

HTML Swapping Images Hosted from Google Drive/Dropbox?

I'm currently working with a client who wants to see if they can host their photos on either Google Drive or Dropbox and wants to be able to swap them out by renaming the file name and have that update on the live site.

Is this at all a possibility? By having a "1.jpg" hosted on Drive be replaced by a different image by the same name change the image on the website?

This is what I have so far, and swapping out the images on Drive doesn't change the image either.

<img src="https://drive.google.com/uc?id=17wf9f-u270Xh_2aSfHqMwanNpUylS0fW"/>

I had to swap out the open? to uc? to have the image displayed. But swapping out the image with the same filename doesn't change the image.

Is there a better way of accomplishing this without a CMS or iFrame?

Thanks!




Aucun commentaire:

Enregistrer un commentaire