> In HTML, I would like the base tag...
<base href="http://myserver/dir1/">
...to affect an embedded image src property with a relative path..
<img src="dir2/myimage.jgp">
...such that the image would be fetched from...
"http://myserver/dir1/dir2/myimage.jpg"
Why doesn't the base tag work for this? Is there another tag that does?
How is it failing for you?
There is a nice gotcha with the base tag and images when using domain names
on basic hosting packages where frames are used for 'URL masking' (or
however they want to brand it). If you do "htttp://yourserver/yourpic.jpg"
the end result is a frameset document and not an image file. Fine if you
just want to view the image in its own window but of course useless for an
inline image as the browser wants an image file not HTML to be returned.
End result is a page full of broken images :-)