I have an html page. All the images in my "pages and images" folder when the page is in this folder, the images are displayed, and when I moved the page to the "Mathematics" folder, the pictures did not cease to appear.

Please, help!

  • And again you are asking questions again ... <br> If you want absolute images to be displayed regardless of the page’s location, use absolute paths to them. Those. if you had <img src="../images/img"> example, look everything <img src="/images/img"> <br> PS: learn mate -.- - Zowie
  • Since you wrote I did, but the images are not displayed. <script type="text/javascript" src="/pages and images/jscookmenu.js"></script> <link rel="stylesheet" href="/pages and images/ThemeRibbon/theme.css" type="text/css"> <script type="text/javascript" src="/pages and images/ThemeRibbon/theme.js"></script> - Karlos Derga
  • And what relation do src javascript'a and src images have that are not displayed to you? ^^ - Zowie
  • I have a menu on the page, when I put the page in the mathematics folder, it is displayed, but not with pictures, but with text - Karlos Derga

2 answers 2

Try writing paths to pictures from the root, for example:

  <img src="/images/someimage.jpg"/> 
  • Tried not plowing! - Karlos Derga pm
  • 3
    Instead of waiting for you to slip the fully correct answer, I would follow my advice and start learning the materiel ... <br> - Zowie
  • 2
    Sorry, but it does not work for me! - Karlos Derga 4:14 pm
  • Of course, it will not work, because the HTML page should be copied along with the images and pages folders. Or, in src again, register hard paths of the type: file://localhost/C:/images/someimage , but in this case everything will be lost again when transferred to another computer ...) - DL_

Your problem is that you do not understand the point. src javascript'a includes the script file. Pictures in the menu can be linked using css. But if you are still using img, then there may be several problems: first, Russian characters in the url, and second, the space character in the url. All this needs to be encoded. For example, the space code is% 20, if I'm not mistaken. Conclusion - if possible, do not use the space character in the folder name and use English in the name. And your first situation is related to the fact that the browser, when having problems with the address, "searches" the object in the directory where the page is located. So the pictures were displayed.

  • 2
    The author of the question has a lot of problems, with the wording in particular. - Sh4dow