You are here: Re: Hotlinking to Html pages « HTML « IT news, forums, messages
Re: Hotlinking to Html pages

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация