Good morning y'all..
What i am trying to achieve with this exit page is to verify the url before going to the exit page.
Meaning on our site there are external and internal links we have a policy now to have a disclaimer page for all external links I have that part working fine the exit.asp is working nice but what I am trying to achieve is somehow when clicking on the link on our site somehow it will grab that URL verify it and if it's a external link it will follow with the disclaimer and if it is a internal link then it will go to that link bypassing the disclaimer.
I have no clue how to achieve this could someone please help me with this please, here is the code for the exit page that is woking nice but we just need to modify it to achieve what I want it to do.
Example of internal sites: www.cadets.ca, www.canada.gc.ca, www.forces.gc.ca
This is the exit_e.asp:
Code:
<%@ Language=VBScript %>
<%
If Request.Querystring("url") <> "" Then
xsite= Request.Querystring("url")
Else
'specify a default page to redirect to
xsite="index.asp"
End If
%>
<html>
<!-- #INCLUDE VIRTUAL="/cadet-incl/detect.asp" -->
<head>
<title>You are now leaving the Cadet's Website.</title>
<meta http-equiv="refresh" content="20; Url=<%=xsite%>">
</head>
<body>
<!-- #include virtual="/incl/exit.asp" -->
</body>
</html>
This is the exit.asp include:
Code:
<% if strLang="e" then %>
<table width="100%" height="100%" valign="middle">
<tbody>
<tr>
<td class="splash">
<div align="center" valign="middle">
<table width="510" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="/cadet-images/spl-top-en_cadet.gif" alt="DND logo" width="510" height="53" border="0"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="60"> </td>
<td><hr></td>
</tr>
<tr>
<td width="60"> </td>
<td width="444"><h3>You are now
leaving the Cadet site.</h3>
<p>We not responsible for the quality, accuracy, reliability
or currency of the information contained on external sites.</p>
<p align="left"><a href="<%=xsite%>">Visit this web site now</a> or <a href="javascript:history.go(-1)">go
back to the Cadet site</a>.</p>
<div align="left">You will automatically be redirected in 20 seconds or you may
click on one of the links above.</div>
</p></td>
</tr>
<tr>
<td width="60"> </td>
<td> </td>
</tr>
<tr>
<td width="60"> </td>
<td><img src="http://www.cadets.ca/cadet-images/canada1_b.gif" alt="Canada logo" width="99" height="36" border="0" align="right"></td>
</tr>
</table>
</td>
</tr>
</table>
</div></td></tr></tbody>
</table>
<% Else %>
'
<% End If%>
Thanks alot for all your help..
Last edited by netcrawler; 03-18-2005 at 10:27 AM..
|