I am working with my site and tried to do a <!--#INCLUDE FILE=forum/default.asp--> the page comes up but the graphic links are all broken and so are all the links. since all the links in the snitz forums uses just like <A HREF=file.asp> it uses the current dir(in this case the root dir). So was thinking about maybe putting an option in like 'Append virtual path' or something so that on all HREF's and IMG SRC='s it appends the virtual path or the full url to it. what do you think?
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> I am working with my site and tried to do a <!--#INCLUDE FILE=forum/default.asp--> the page comes up but the graphic links are all broken and so are all the links. since all the links in the snitz forums uses just like <A HREF=file.asp> it uses the current dir(in this case the root dir). So was thinking about maybe putting an option in like 'Append virtual path' or something so that on all HREF's and IMG SRC='s it appends the virtual path or the full url to it. what do you think?
I include a new file on the top of my page just above inc_top.asp. See my page for a look. To keep all my links and images the same without having to redo all my links and such, I include a line in the config.asp that says:
strRelurl = "../"
Then when I want to link out to my images dir, I type <pre id=code><font face=courier size=2 id=code> img src="<%=strRelurl %>images/image.gif"> </font id=code></pre id=code>
You can also use this in links. This makes it so that you can include the same file any number of directories deep and not have to rewrite the file everytime.
in inc_top.asp would also fix this because it translates all the relative urls.
<b>Pierre Gorissen </b><img src="http://www.homepages.hetnet.nl/~pgoris01/burnout.gif" border=0> <font color=purple><font size=1>A fool learns from experience... a wise man learns from others...</font id=size1></font id=purple>