Misafi
asked on
Dynamic Include Navigation with ASP
I see that NAVECHA has answered a query on this one but I got a little lost.
I have a simple navigation include file - ET2Nav.asp
Quote
<A href="et2Ware.asp">Warehou sing & Storage </A>:
<A href="et2vip.asp">VIP customers : </A>
<A href="et2trans.asp">Transp ort Broking:</A>
<A href="et2contact.asp">cont act us</A>
Unquote
and what I am trying to do is ensure that when the Warehousing & Storage page - et2Ware.asp - opens up, the link to Warehousing and Storage does not show onthe nav bar.
Is that possible, or can it be highlighted?
kind regards
Misafi
I have a simple navigation include file - ET2Nav.asp
Quote
<A href="et2Ware.asp">Warehou
<A href="et2vip.asp">VIP customers : </A>
<A href="et2trans.asp">Transp
<A href="et2contact.asp">cont
Unquote
and what I am trying to do is ensure that when the Warehousing & Storage page - et2Ware.asp - opens up, the link to Warehousing and Storage does not show onthe nav bar.
Is that possible, or can it be highlighted?
kind regards
Misafi
ASKER
Thanks dukestaTAI
The links work but they still all show up - so ther is no difference from the original script.
rgds
Misafi
The links work but they still all show up - so ther is no difference from the original script.
rgds
Misafi
Run this page and tell me what it says for URL: on the page.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<%
Function adjMenu(strLink)
If strLink = request.servervariables("u rl") Then
response.write("style='vis ibility: hidden;'")
End If
End Function
%>
</head>
<body >
<h1>URL:</h1><%=request.se rvervariab les("url") %>
<A href="et2Ware.asp" <%adjMenu("/et2Ware.asp")% >>Warehous ing & Storage </A>:
<A href="et2vip.asp" <%adjMenu("/et2vip.asp")%> >VIP customers : </A>
<A href="et2trans.asp" <%adjMenu("/et2trans.asp") %>>Transpo rt Broking:</A>
<A href="et2contact.asp" <%adjMenu("/et2contact.asp ")%>>conta ct us</A>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<%
Function adjMenu(strLink)
If strLink = request.servervariables("u
response.write("style='vis
End If
End Function
%>
</head>
<body >
<h1>URL:</h1><%=request.se
<A href="et2Ware.asp" <%adjMenu("/et2Ware.asp")%
<A href="et2vip.asp" <%adjMenu("/et2vip.asp")%>
<A href="et2trans.asp" <%adjMenu("/et2trans.asp")
<A href="et2contact.asp" <%adjMenu("/et2contact.asp
</body>
</html>
ASKER
This is what it came up with - Ensign is the project name
URL:
/Ensign/url.asp Warehousing & Storage : VIP customers : Transport Broking: contact us
rgds
Misafi
URL:
/Ensign/url.asp Warehousing & Storage : VIP customers : Transport Broking: contact us
rgds
Misafi
ASKER
What happens now? I am not sure whether this question has been abandoned on not.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect ! - thank you very much
Regards
Misafi
Regards
Misafi
Glad to help. Good luck!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<%
Function adjMenu(strLink)
If strLink = request.servervariables("u
response.write("style='vis
End If
End Function
%>
</head>
<body >
<A href="et2Ware.asp" <%adjMenu("/et2Ware.asp")%
<A href="et2vip.asp" <%adjMenu("/et2vip.asp")%>
<A href="et2trans.asp" <%adjMenu("/et2trans.asp")
<A href="et2contact.asp" <%adjMenu("/et2contact.asp
</body>
</html>