Taking Image from an external website and putting in a <div>

Asked

Viewed 41 times

0

Good afternoon, I’m still new in this business, but is there any way to get an image from an external site and put it on my page? i searched some functions like . load() ajax or php with file_get_contents() I could take the image through the direct link only that as the image changes, it wouldn’t work. This image belongs to a div maybe if I could bring this div to my html, I could only put the url: http://exemple.com and on this site take only that img with a specific id?

  • "I think" I can do this with an ajax call, but it sounds a lot like "gambiarra". You would have to display the answer by mapping elements 1 to 1 until you get to this image.

  • It does, but which site and which div is the image?

No answers

Browser other questions tagged

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