Click to See Complete Forum and Search --> : Redirection using this code?


neenach2002
07-24-2003, 10:48 PM
How do i use the follwoing code?

<!-- ONE STEP TO INSTALL REFERRER REDIRECT:

1. Copy the coding into the HEAD of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Ronnie T. Moore, Editor -->
<!-- Web Site: http://javascriptsource.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var refarray = new Array();
refarray['excite.com'] = "page.html?from=excite";
refarray['yahoo.com'] = "page.html?from=yahoo";
refarray['lycos.com'] = "page.html?from=lycos";
refarray['infoseek.com'] = "page.html?from=infoseek";
for (var i in refarray) {
if (document.referrer.indexOf(i) != -1) window.location.replace(refarray[i]);
}
// End -->
</script>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 0.84 KB -->

neenach2002
07-25-2003, 01:22 AM
nevermind about the re-direction mumbo-jumbo, instead, I want to create a cookie, and have another page refer to that cookie, if the specified cookie is not present, I would like to have it re-direct to the site that will create the cookie...i hope all of this made sense...:D