Forum Moderators: open

Message Too Old, No Replies

How can you make each link point to files in the root directory..

         

vaxop

4:58 am on Jun 29, 2003 (gmt 0)

10+ Year Member



no matter where the links are located?

say youre at [site.com...]

if u use <a href="a/b.html">, the link will point to [site.com...]

how can i point all links to the main directory, ie: point to [site.com...]

putting [site.com...] for each link will slow my page considerably.. considering i have 1000 or so links in there and the server is a visual basic home made server on a slow connection :)

anyone know how to do this?

dhtml is preferred.. if not possible then javascript =).

thanks!

takagi

5:13 am on Jun 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Change
<a href="a/b.html">
into
<a href="/a/b.html">

jdMorgan

5:13 am on Jun 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



vaxop,

Just add a leading slash - use <a href="/a/b.html">

Jim