Forums
This topic is locked
Brower preview image issues... better solution?
Posted 12 Sep 2005 18:56:08
1
has voted
12 Sep 2005 18:56:08 nancy rector posted:
I was have the problem of my images not showing up on my linked pages when I previewed my web site in my browser locally. (didnt always do this.. not sure what happend) After doing some research I found an answer on Macromedias site. However it requires going into the source of EVERY image and changing the "relative to" from Document to Site.Is there a master setting for this somewhere so it automatically does this? AND is there a quick was I can now change this on all my pages I have created without going into each image seperatly? I pasted the info from Macromedias site below.
Thanks so much!
Nancy
----------------------------------
Issue
When I press F12 to preview my page, my images do not show up. However, the images show up in Dreamweaver, and in my page when it is live on the server
Reason
It is likely that you are using Site Root Relative paths for your images. Browsers cannot understand site-root relative links when a document is previewed locally on the hard disk.
Solution
Change the Src attribute for each image from Site Root Relative to Document Relative. Unfortunately, you will have to manually change the source of each image on your page to Document Relative.
Follow these steps to change the "Relative to..." setting to "Relative to Document":
1 Place the mouse cursor on the image that is not showing up.
2 In the Property Inspector, click on the folder next to the Src field. (On Macintosh the folder will be blue, on Windows it will be yellow).
3 Change the "Relative to..." setting to "Document" from "Site." This setting can be found at the bottom of the Dialogue box.
4 Re-browse the path to your image.
5 Repeat steps 1 to 4 as needed for each image on your page.
Replies
Replied 13 Sep 2005 19:41:44
13 Sep 2005 19:41:44 Dave Thomas replied:
just checked mine actually, as i've nevr had to change this and found it was set to document-relative.
what i did notice was the way it changed the path, once i set it to site-relative, it removed all the path info and replaced it with a single / which would indeed indicate a root folder.
so on your page, say u have an image called 'fish.jpg', and this is stored in a folder called 'images', the path should be src="/images/fish.jpg", what does yours say on the source when you preview it?
as you may just be able to do a 'Find & Replace on the paths, and this will do them all on a page at once. save a little time at least.
regards
Dave Thomas
<b>DMX Zone Manager</b>
what i did notice was the way it changed the path, once i set it to site-relative, it removed all the path info and replaced it with a single / which would indeed indicate a root folder.
so on your page, say u have an image called 'fish.jpg', and this is stored in a folder called 'images', the path should be src="/images/fish.jpg", what does yours say on the source when you preview it?
as you may just be able to do a 'Find & Replace on the paths, and this will do them all on a page at once. save a little time at least.
regards
Dave Thomas
<b>DMX Zone Manager</b>
Replied 13 Sep 2005 19:53:58
13 Sep 2005 19:53:58 nancy rector replied:
Dave,
I found the answer to the issue last night on another board.
This little extension does the trick.. .can use it on the entire site.. What a time saver!
Relativity Extension: www.microwaved.plus.com/dw/
Thanks for your input. I was told that that setting is "sticky" and I must have changed one at some point and it just stayed that way. Though I dont remember doing it.
Thanks again!
Nancy
I found the answer to the issue last night on another board.
This little extension does the trick.. .can use it on the entire site.. What a time saver!
Relativity Extension: www.microwaved.plus.com/dw/
Thanks for your input. I was told that that setting is "sticky" and I must have changed one at some point and it just stayed that way. Though I dont remember doing it.
Thanks again!
Nancy