Pathing/pictures problem (Full Version)

All Forums >> [Web Development] >> Dreamweaver Help



Message


wo0ow -> Pathing/pictures problem (4/30/2007 23:53:24)

Hi, im new here, so bare with me :)

I am trying to build a site from a dreamweaver template that i modified.
When i preview in explorer that page works fine, but when i click on one of the link buttons the page opens, but none of the pictures are showing (they all the the little red "x" like they dont exist).

From here the problem splits:
A. when i mouse over another link button (with no image) I see the target at the bottom of explorer is some thing like file:///c://about us.htm when it sould be something like file:///c://documents and settings/... ect. (the taget is fine on the first page that i preview)

B. when i click the IE back button the address bar shows C://documents... fine but the index.htm changes to some random letters like TMPp92u3hcfzo.htm ??

C. when i go to root folder and open the site it skips the first part of this message and goes straight to A.


I am obviously new to this so sorry if newbie question, but please help me out [8|]




mar0364 -> RE: Pathing/pictures problem (5/1/2007 21:17:19)

sounds like you may not have defined your site properly try this
http://www.dreamweaverlearning.com/create-site.htm




wo0ow -> RE: Pathing/pictures problem (5/2/2007 0:56:41)

i did everything in that video except i went to site/edit sites instead of new site, but still all the same, when i click on the link, the text shows up, but no pics, when i click on the next link, the page cannot be found... any other possibilities?? should i copy a part of my code to maybe get a better understanding for you?




mar0364 -> RE: Pathing/pictures problem (5/2/2007 11:03:59)

What extension do your pages have DWT or HTML/HTM. The paths your talkin about sounds alot like that paths as they are in the DWT. When you base a page on a DWT you need to make sure you save it as an html/htm.

Help any?




wo0ow -> RE: Pathing/pictures problem (5/3/2007 0:00:38)

all my page files such as index are in htm format, my code targets them as htm as well..
ive never seen this problem before... thanks for the help u guys.. any more possibilites?




sticks464 -> RE: Pathing/pictures problem (5/3/2007 10:10:19)

Check your link paths in the code, if they show C:/path then they need to be changed to indicate the path within the root folder of your site. The normal way is to create an image folder within the root folder of the site and have all images within that folder. A browser cannot access your files if they reside on your hard drive which is C:/. The path to the image should be either <img src="folder/image.jpg" /> or <img src="http://your site name/folder/image.jpg" />. If the path is <img src="C:\documents and settings\files/image.jpg" /> then the image is still on your hard drive and it will not be published with the site root folder to the host server.




wo0ow -> RE: Pathing/pictures problem (5/4/2007 22:48:25)

OMG[:D] thank you sooo much, this was bugging me for a month straight!

now that i know the solution, i am wondering what causes the problem in the code:
the code that was there <img src="/images/image.jpg"/>
what made is work is <img src="images/image.jpg"/>
now i understand why it works without the "/" but i dont understand why does dreamweaver put it in there.. all my link i made with the "find target" button (the crosshairs button) and it types <img src="/images/image.jpg"/> this.. any reason for that?

again thank you sooo much u'r a God-send (no offence to any readers plz)




sticks464 -> RE: Pathing/pictures problem (5/4/2007 23:32:31)

Another good reason to learn a little coding :)




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
6.347656E-02