Forums
This topic is locked
BASE tags
Posted 05 Jan 2007 21:39:12
1
has voted
05 Jan 2007 21:39:12 chris shiba posted:
Im a complete newbie with no web development experience and had a web editing job dumped on me. <pre id=code><font face=courier size=2 id=code>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<BASE href="www.day-lee.com">
<META name="GENERATOR" content="Microsoft FrontPage 4.0">
</font id=code></pre id=code>
Using dreamweaver Im trying to edit a website originally created in Frontpage. The site uses a base tag which seems to be giving me some problems when trying to change the images.
<pre id=code><font face=courier size=2 id=code>
<tr>
<td width="407"><img src="/images/river_picture.jpg" width="406" height="150"></td>
<td width="250"> </td>
<td width="343"><img src="/images/TitleBanner.jpg" width="426" height="155"></td>
</tr>
</font id=code></pre id=code>
I saved a newly edited image TitleBanner.jpg in the same place as an original image river_picture.jpg but when i preview the site in DW the image TitleBanner.jpg doesnt show up. Even if I delete the river_picture.jpg image it still shows up in the preview. I just want to change some of images and preview/test the changes in IE without having to change the files on the web server. So did I not set up the site in DW correctly? do I have to upload the new images to the webserver in order to preview it?
Edited by - chshiba on 05 Jan 2007 21:41:31
Replies
Replied 05 Jan 2007 21:54:35
05 Jan 2007 21:54:35 Alan C replied:
img src="/images/river_picture.jpg"
is an absolute path to the image on the server, it means 'starting from the root level on the server get river_picture.jpg out of the folder called images'
it will only work after you have uploaded it
if you want to preview it then you could change it to a relative path, that will not have the / at the start, DW will work it out, either should work.
You tell DW which to use in the site definition, advanced mode, Local info, about 1/2 way down there is a radio button to select which to use, you can also change it for the image when you are inserting it, there's a dropdown box.
is an absolute path to the image on the server, it means 'starting from the root level on the server get river_picture.jpg out of the folder called images'
it will only work after you have uploaded it
if you want to preview it then you could change it to a relative path, that will not have the / at the start, DW will work it out, either should work.
You tell DW which to use in the site definition, advanced mode, Local info, about 1/2 way down there is a radio button to select which to use, you can also change it for the image when you are inserting it, there's a dropdown box.