This page uses the Paul Dutton Advanced Editor method. THE CONTENTS APPLY ONLY TO PAGEBUILDER
The url for this web page is:
http://community.webtv.net/mikan71/using_base/
But the following images are all stored on http://community-2.webtv.net/kuroboshi/images/ which, with scrapbookFiles/ added to it, I have included in the <head> of this page as the base href - this allows me to link (display) the images simply by using the name and extension in the <img src> tag:
<img src="importD9.gif">
<img src="importD10.gif">
<img src="importD11.gif">
<img src="importD12.gif">
But I also want to add more images to this page that are located elsewhere in Pagebuilder and also in my Dream Server account --- can I just add some more base href url's? --- no, sorry about that, only one base href per page allowed.
Will I have to use absolute url's for all the other images added to this page --- Well, no that's not true either. I can still use relative url,s for images located in my Pagebuilder user accounts other than the one used in the base href and absolute url's will only be necessary for images located outside of Pagebuilder. I won't get as much "savings" in reduced coding but I will still benefit to some extent.
So, how to do this "mix and match" of url's? Well, I will use the same images I did it in the examples on the page cited below though the usage changes a bit --- specifically the change is that I must start ALL the relative url's with a / and the user name --- if I don't the url's will be trying to match up with the name in the base href ( kuroboshi ) and I will simply get a popup telling no such image can be found:
http://community-2.webtv.net/mikan71/pgb_rel_lnk/
<a href="/mikan71/flag/scrapbookFiles/importD8.jpg"> Large U.S. Flag</a>
<img src="/mikan71/flag/scrapbookFiles/importD11.jpg">
will produce the correct images:
Large U.S. Flag
<a href="/chakay307776/earthrise/scrapbookFiles/importD36.jpg"> chakay scrapbook image</a>
<img src="/chakay307776/photos/scrapbookFiles/importD10.jpg">
chakay scrapbook image

As you can see they all work --- so to this point we have used a base href that allowed us to use just an image name and extension for several images --- and we have also added several other images using another form of relative url --- all displaying just fine.
Now, if we wanted to link to any more images that just happened to be at another host server, such as the zone, we would add them by the absolute or full url--- like this:
<a href="http://www.charkay.com/ds_banners/9b_yell.gif"> Small Banner </a>
Small Banner
<a href=" http://www.charkay.com/seamless/start.jpg"> What Did You Say? </a>
What Did You Say?
So what does it all mean --- I guess it means that you can combine base href url's, other relative url's, and absolute url's on the same page with a little effort. How to determine which to select for the base url? -- I guess the one having the greatest share of the images to be added to the web page would be a logical choice.
But I think that it also tells us how important it is to group our images on Pagebuilder "storage" pages in arrays that will fit the pages we want to make. In fact, I would not hesitate to rearrange my storage to facilitate my ability to make maximum use of base href whenever possible ( take care though not to disrupt the landscape with changing images you already have on published pages being used by your community --- folks get upset when they draw a blank when clicking on a image )
Mikan71 --- 12/17/01
|
|
| |
|
|
||
|
|
||
|
|
||