Disappearing gifs
-
Disappearing gifs
Hi,
I'm hopelessly confused/angry, and i'm hoping that someone can help. I've been put in charge of updating my company's website, despite having little to no knowledge of how to do so. Surprisingly, i've figured it out pretty well.
I figured out how to work with html pretty well, but my problem right now is that i am trying to add a new page/link to the site. The link works, but the gifs which containing links to other parts of the sight will not appear. They work, and i can navigate the site, but there's just no image (beyond the outline of the gif).
My self-taught ( and terribly ugly-but-improving) coding seems to be ok, as everytime i test it (via notepad), the page comes up looking exactly as it should. It's only after uploading it that the problem arises. My ISP (who provided the ftp program) has been less than forthcoming with help. Any ideas of possible causes?
-
Well... The SRC attribute has to point to where the image file is located relative to where the html file is located. Maybe on your local machine you had the gifs located to a different spot to where they are on the uploaded machine, or maybe you even forgot to upload the gifs all together. Just keep in mid if you do <img src="image.gif"> the image.gif file MUST be located in the same directory as the html file for it to load. Just like if you have <img src="folder/image.gif">, the image.gif must be in a directory called folder (case sensitive) that is located in the same dir as the html image.
-
Also make sure that the file names are the same as in the code. It often happnes that <img src="test.gif"> will display TEST.GIF properly when loaded from local machine, but won't display properly on the website! So just treat the code and filenames case-sensitive and it should work fine (assuming the coding is really right!)