Forums

This topic is locked

image disappears once link is changed from local to site

Posted 15 years ago
1
has voted
15 years ago Jennifer Bublitz posted:
I have an image in my HTML document. It is linked to my local folder. If I upload this image to the webserver and then come back and change my link from local root to a site link (i.e. from /images/xyz.jpg to www.website.com/images/xyz.jpg), the image appears just fine. However, if I do this in reverse order, meaning I change the name of the link first, then upload the image, my image disappears, replaced by an image placeholder. And I cannot for the life of me get this image to reappear. What am I doing wrong?

Replies

Replied 15 years ago
15 years ago Patrick Julicher replied:
Hi Jennifer,

Could you post the link to your page, so we can have a look at it?

Kind regards, Patrick
Replied 15 years ago
15 years ago Jennifer Bublitz replied:
Here is the URL: sipec-events.com/files/sorry_thank_you_rev1.html. So when I view this in Dreamweaver, the styles don't show up and the logo doesn't show up.
Replied 15 years ago
15 years ago Patrick Julicher replied:
Hi Jennifer,

I cannot picture what you are trying to do. Why not just use relative links instead of absolute ones.

Try changing your links from
<img src="http://www.sipec-events.com/files/artwork/sii_internet_keyvisual.jpg" alt="" width="144" height="144" />

into
<img src="artwork/sii_internet_keyvisual.jpg" alt="" width="144" height="144" />


This should work both locally as well as on your server. Because all your files are located in the files folder, that is your startingpoint and from thereon you start linking to folders and files.

Kind regards, Patrick
Replied 15 years ago
15 years ago Jennifer Bublitz replied:
Because this page won't be under the same domain as the images. I just put it there now so you could see what I am working on. When you pull down my code onto your computer, do all the images show up, and do the styles appear to be working?
Replied 15 years ago
15 years ago Patrick Julicher replied:
Hi Jennifer,

When I copy the source code from your page and paste it in a new DW CS4 page, all of the images appear. Must be something with your local settings, although I cannot imagine what.

Kind regards, Patrick

Reply to this topic