Author |
Topic  |
|
StockholmStudent
Junior Member
 
Sweden
329 Posts |
Posted - 15 March 2001 : 15:19:39
|
Hi all!
I have a problem. I have many different pages with my homepage on, on different free html servers, so that if one of them is down, there is another. Called "mirror-pages". 
The problem is, that my menu is done in asp, and I now have it on 121host.net. Go to http://bjorkelund.snoop.dk/ to take a look at my full homepage. It's the menu on the left that is in asp located on 121host.net. Now, the pages that this menu links to, is often in html, and therefor on the different html-servers. Now I dont want to do different menus for every html-server. The problem is:
when I link to another server from the asp-menu, I want the browser to know on which server to locate this. If the user is on bjorkelund.snoop.dk, the menu should write: "< a h r e f = "http://bjorkelund.snoop.dk/xxx.html" > ag < / a >"
If it's on the server http://www,diskuterapolitik.f2s.com, it should write: "< a h r e f = "http://www.diskuterapolitik.f2s.com/xxx.html" > ag < / a >" on all the links
and if the users is browsing it through my third sserver, kyd.net/politik, it should rename all the links to: "< a h r e f = "http://www.kyd.net/politik/xxx.html" > ag < / a >"
How to manage this!? Is there a way!?
cheers and thx for all help! /CHEETAH
Moved to Code Support ASP by Gor |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 15 March 2001 : 15:43:02
|
Use something similar to this:
Response.Write "<a href=""" & Request.ServerVariables("Path_Info") & "/xxx.html"""> title</a>"
That should do it for you, but I'm not 100% certain (never tried it ...)
Dave Maxwell -------------- Proud to be a "World Class" Knucklehead |
 |
|
StockholmStudent
Junior Member
 
Sweden
329 Posts |
Posted - 16 March 2001 : 02:34:27
|
I can't get this look correctly:
<TR><TD CLASS="table" background="http://bjorkelund.snoop.dk/bilder/menyn/colorstripe.gif"> <A HREF="
<% Response.Write "<a href=""" & Request.ServerVariables("Path_Info") & "/xxx.html"""> title</a> end if %>
TARGET="Text" OnMouseOver="swtch('1','a'); window.status='Hem'; return true" OnMouseOut="swtch('0','a'); window.status=''; return true" OnClick="swtch('2','a')"> <IMG SRC="XXXXXXXXXXXXXX/bilder/menyn/lank1.0.gif" NAME="a" WIDTH="10" HEIGHT="10" BORDER="0"> Hem</A> </TD></TR>
I gotta get it inside this table.. how to!? I want it on the other places where it says "XXXXXXXXXXXXXX"!
|
 |
|
StockholmStudent
Junior Member
 
Sweden
329 Posts |
Posted - 16 March 2001 : 06:45:08
|
please!?
|
 |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 16 March 2001 : 06:45:15
|
Do you mean something like this??
Response.Write "<img src=""" & Request.ServerVariables("Path_Info") & "/bilder/menyn/lank1.0.gif""> NAME=""a"" WIDTH=""10"" HEIGHT=""10"" BORDER=""0""> Hem</A>"
Dave Maxwell -------------- Proud to be a "World Class" Knucklehead |
 |
|
StockholmStudent
Junior Member
 
Sweden
329 Posts |
Posted - 16 March 2001 : 08:56:39
|
I mean: how to insert it in an asp-page!? I cant write asp! This is how the asp-page look slike:
quote:
<TABLE BORDER="0" width="100%">
<TR><TD CLASS="table" background="http://bjorkelund.snoop.dk/bilder/menyn/colorstripe.gif"> <A HREF="http://bjorkelund.snoop.dk/text.html" TARGET="Text" OnMouseOver="swtch('1','a'); window.status='Hem'; return true" OnMouseOut="swtch('0','a'); window.status=''; return true" OnClick="swtch('2','a')"> <IMG SRC="http://bjorkelund.snoop.dk/bilder/menyn/lank1.0.gif" NAME="a" WIDTH="10" HEIGHT="10" BORDER="0"> Hem</A> </TD></TR>
<TD></TD></TR>
<TR><TD CLASS="table" background="http://bjorkelund.snoop.dk/bilder/menyn/colorstripe.gif"> <A HREF="javascript:chat()" OnMouseOver="swtch('1','chat'); window.status='Sponsorer'; return true" OnMouseOut="swtch('0','chat'); window.status=''; return true" OnClick="swtch('2','chat')"> <IMG SRC="http://bjorkelund.snoop.dk/bilder/menyn/lank1.0.gif" NAME="chat" WIDTH="10" HEIGHT="10" BORDER="0"> Chatta</A> </TD></TR>
<TD></TD></TR>
<TR> <TD CLASS="table" background="http://bjorkelund.snoop.dk/bilder/menyn/colorstripe.gif"> <A HREF="aaloginmenulankar.asp" TARGET="Meny" OnMouseOver="swtch('1','b'); window.status='Lankar'; return true" OnMouseOut="swtch('0','b'); window.status=''; return true" OnClick="swtch('2','b')"> <IMG SRC="http://bjorkelund.snoop.dk/bilder/menyn/lank1.0.gif" NAME="b" WIDTH="10" HEIGHT="10" BORDER="0"> Länkar</A> </TD> </TR>
<TD></TD></TR>
<TR> <TD CLASS="table" background="http://bjorkelund.snoop.dk/bilder/menyn/colorstripe.gif"> <A HREF="aaloginmenufakta.asp" TARGET="Meny" OnMouseOver="swtch('1','d'); window.status='Fakta'; return true" OnMouseOut="swtch('0','d'); window.status=''; return true" OnClick="swtch('2','d')"> <IMG SRC="http://bjorkelund.snoop.dk/bilder/menyn/lank1.0.gif" NAME="d" WIDTH="10" HEIGHT="10" BORDER="0"> Fakta</A> </TD> </TR>
<TR> <TD CLASS="table2"> <A HREF="http://bjorkelund.snoop.dk/arbeten/politiskaarbeten.html" TARGET="Text" OnMouseOver="swtch('4','f'); window.status='Politiska arbeten'; return true" OnMouseOut="swtch('3','f'); window.status=''; return true" OnClick="swtch('5','f')"> <IMG SRC="http://bjorkelund.snoop.dk/bilder/menyn/lankliten1.0.gif" NAME="f" WIDTH="10" HEIGHT="10" BORDER="0"> Politiska arbeten</font></A> </TD> </TR>
<TR> <TD CLASS="table2"> <A HREF="http://bjorkelund.snoop.dk/arbeten/skickaindittarbete.html" TARGET="Text" OnMouseOver="swtch('4','g'); window.status='Skicka in ditt arbete'; return true" OnMouseOut="swtch('3','g'); window.status=''; return true" OnClick="swtch('5','g')"> <IMG SRC="http://bjorkelund.snoop.dk/bilder/menyn/lankliten1.0.gif" NAME="g" WIDTH="10" HEIGHT="10" BORDER="0"> Skicka in arbete</font></A> </TD> </TR>
<TD></TD></TR>
<TR> <TD CLASS="table" background="http://bjorkelund.snoop.dk/bilder/menyn/colorstripe.gif"> <A HREF="aaloginmenukontakta.asp" TARGET="Meny" OnMouseOver="swtch('1','h'); window.status='Kontakta/Info'; return true" OnMouseOut="swtch('0','h'); window.status=''; return true" OnClick="swtch('2','h')"> <IMG SRC="http://bjorkelund.snoop.dk/bilder/menyn/lank1.0.gif" NAME="h" WIDTH="10" HEIGHT="10" BORDER="0"> Kontakta/Info</A> </TD> </TR>
<TD></TD></TR>
<TR> <TD CLASS="table" background="http://bjorkelund.snoop.dk/bilder/menyn/colorstripe.gif"> <A HREF="http://pub.alxnet.se/guestbook?id=2000794" TARGET="Text" OnMouseOver="swtch('1','i'); window.status='Gästbok'; return true" OnMouseOut="swtch('0','i'); window.status=''; return true" OnClick="swtch('2','i')"> <IMG SRC="http://bjorkelund.snoop.dk/bilder/menyn/lank1.0.gif" NAME="i" WIDTH="10" HEIGHT="10" BORDER="0"> Gästbok</A> </TD> </TR>
<TD></TD></TR>
<TR> <TD CLASS="table" background="http://bjorkelund.snoop.dk/bilder/menyn/colorstripe.gif"> <A HREF="http://bjorkelund.snoop.dk/sponsorer.html" TARGET="Text" OnMouseOver="swtch('1','z'); window.status='Sponsorer'; return true" OnMouseOut="swtch('0','z'); window.status=''; return true" OnClick="swtch('2','z')"> <IMG SRC="http://bjorkelund.snoop.dk/bilder/menyn/lank1.0.gif" NAME="z" WIDTH="10" HEIGHT="10" BORDER="0"> Sponsorer</A> </TD></TR>
<TD></TD></TR>
<TR><TD CLASS="table" background="http://bjorkelund.snoop.dk/bilder/menyn/colorstripe.gif"> <A HREF="aaloginmenuforum.asp" TARGET="Meny" OnMouseOver="swtch('1','c'); window.status='Forum'; return true" OnMouseOut="swtch('0','c'); window.status=''; return true" OnClick="swtch('2','c')"> <IMG SRC="http://bjorkelund.snoop.dk/bilder/menyn/lank1.0.gif" NAME="c" WIDTH="10" HEIGHT="10" BORDER="0"> Forum</A> </TD></TR></TABLE>
How to insert it!?
|
 |
|
|
Topic  |
|
|
|