Link/Anchor Paths

liunx

Guest
I have a navigational script that I want to use unchanged across every page in my site. This means that with different files in different directories the relative path in an anchor/link will change.<br />
<br />
My question: Will I have to use a full url<br />
(i.e. <a href=http://www.htmlforums.com/archive/index.php/"http://www.mysite.com/index.htm">)<br />
<br />
or is there a syntax that points the link from a root directory?<br />
<br />
Perhaps it doesn't matter! Is there any disadvantage by writeing the full URL?<br />
<br />
Thanks in advance.<!--content-->theres no advantage or disadvantage. well there is one if you change servers you have to change the whole thing. but you could use base=www.site.com or something like that. then all you need to do is make sure you have the correct path to the folder. if base is <!-- w --><a class="postlink" href="http://www.site.com">www.site.com</a><!-- w --> and the file you want is under images then you type <br />
<img src=http://www.htmlforums.com/archive/index.php/"/images/file.jpg"> or somethign like that. the correct path will be then<br />
<br />
<!-- w --><a class="postlink" href="http://www.site.com/images/file.jpg">www.site.com/images/file.jpg</a><!-- w --><!--content-->I will go with the full url as the nav script won't allow for a base. Thanks for the time. <br />
<br />
P.S. Have 3 chapters down, work nights and bored.<br />
<br />
Thanks again.<!--content-->
 
Back
Top