how to change the source of images?

Question about saving images in NVU?

  • I have a template html file saved on my computer that has images on it. The source of the images is a URL to where I have the images saved on my host (for example, www.mywebsite.com/images/whatever.jpg). But everytime I save the template as a new page, the images change their source so that they are no longer being taken from the URL. They switch to just being "whatever.jpg" and have their source on my local drive. Why does it keep changing it from the URL location to a location on my local drive? In order to fix it, I have to go in and individually edit each image's properties, and then resave, or else my images on the website have X's instead of images.

  • Answer:

    The location should be relative to the web root, not relative to the internet. IOW, if you have a directory named images that's off the main directory (on the site), the link should read /images/whatever.jpg Since www.mysite.com/ isn't on your computer, it's not going to work on your computer. If you must do it that way (with the site name), use a plain text editor that doesn't check links - like Notepad++ (or even Notepad).

Heron By The Sea at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.