Re: file cp
On Friday 15 April 2005 05:11, hja123 wrote:
> When I cp a html file from my Win xp FS to my Linux FS, I find that the
> images are not reproduced.
> Why?
> Running Debian Sarge, kernel2.6.8.
Yep, if you look at the code of an html file in a text editor, you'll see
"img" tags that tell the browser to load images from other files and display
them where the tag is. It might look like:
<img src="photos/photo1.jpg" width="300" height="200" (other attributes like
a description etc.) />
The "src" attribute here tells your browser how to find an image, *relative to
the html file* unless the src is a complete url like this:
<img src="http://www.mysite.org/photos/photo1.jpg" (other attributes) />
So, in the first case, without absolute urls in the src attribute, you either
need to copy the image files to the same relative position (a photos
directory in the same directory as your html file), or you need to make the
src attributes absolute so they always pull images from the same website, no
matter where the actual html file is.
Hope you followed that :)
--
Lee.
Reply to:
- References:
- file cp
- From: hja123 <hja123@singnet.com.sg>