|
Posted by snorkerz on 02/17/06 13:33
No, I've no idea why either....
I have offered to build some websites for people so that I can expand
my knowledge of HTML etc, and this is one of the ones I've put
together.
I have seen a javascript which will redirect depending on referrer -
just not sure if I could use it to refer all enquiries to the home page
without including every single page on the site in the script? (also, I
think .htaccess will be tidier). So far as reliability is concerned -
I'm not too worried, as the site neither holds 'confidential' stuff and
nor will it generate huge traffic.
The script is:
<script language="javascript">
//by www.a1javascripts.com/
<!--
var name = (""+ document.referrer +"" )
if (name ==
"http://www.a1javascripts.com/redirection_scripts/index.html") {
url=(""+ document.referrer +"");
}
else if (name ==
"http://a1javascripts.com/redirection_scripts/index.html") {
url=(""+ document.referrer +"");
}
else if (name == "http://www.a1javascripts.com/redirection_scripts/") {
url=(""+ document.referrer +"");
}
else if (name == "http://a1javascripts.com/redirection_scripts/") {
url=(""+ document.referrer +"");
}
else {
url=("http://www.a1javascripts.com/");
}
document.write('<A HREF="' + url + '">This Link</A>');
//-->
</script>
Navigation:
[Reply to this message]
|