0
Creating image slider with my own photos but photos are broken. How to fix?
I used the exact same code that is in the exercise for creating and image slider but I used my own photos. so the only thing I changed is the images in the array to my photos but they all come out broken when I go next or previous. i want to fix this.
3 odpowiedzi
+ 12
If you want to insert an image that is in your local storage you have to write the exact file path of that specific image. Such as...
<img src="file:///sdcard/Download/image.jpg">
and unless everyone has the same file, linking using file:/// means only you will see them.
otherwise you may use image hosting sites, just post a image to https://postimages.org or https://imgbb.com
and get a unique link for your image. then copy and paste the image URL.
0
Going to have to show your code. Check for correct source to images.
0
the error was in my source location. I used the exact file path but the images were in the same folder so I just had to change to the name.jpg.
Thank you