A cloaked page is a page that is held under one URL but the text is from
another URL.
Example: Someone has a URL of 'http://www.freepages.com/johnspage' on a
free Web page service.
John has registered the domain name: 'http://www.john.com' and wants the
content from the former URL to appear under his new domain's URL.
Either he can set up his own server (very expensive), get a hosting
provider (spend more money, b ut not terribly expensive), or he can cloak
his old page if his registrar or DNS provider will allow it. It involves
the use of frames.
As an example: User pulls up 'http://www.john.com'. In the Address:
field of IE, it now shows 'http://www.john.com'. It is actually a frame in
which the sub-page is: http://www.freepages.com/johnspage. That should
explain what cloaking is.
John can put the following Javascript in the header of his free page:
<SCRIPT TYPE="text/javascript">
<!--
if (parent.location.href == self.location.href) {
if (window.location.replace)
window.location.replace('http://www.john.com');
else
// causes problems with back button, but works
window.location.href = 'http://www.john.com';
}
// -->
</SCRIPT>
Now, John wants to join my Webring. As those who sign up for my page
will probably be cloaking (due to the nature of the ring), I want to add
this customied Javascript code in the 'Add Page' message so he can just copy
and paste the text into the header of his free page.
What I want to know is if there is a variable that will put his URL into
the text of the message.
Example:
[ringtitle] Ring title
[cgiURL] URL to folder with CGI files (next.pl etc.)
[siteid] Site ID
[sitetitle] Site title
[wmname] The site's webmaster name.
Is there a variable that will past the site URL into the text.
[siteurl] Site URL
If the previous tag (which I made up) is included in the text of the
message, it will display 'http://www.john.com' just like [sitetitle] will
yield 'John's Page' written into the 'Add Page' letter.
If the previous tag is valid, this is what it would look like:
<SCRIPT TYPE="text/javascript">
<!--
if (parent.location.href == self.location.href) {
if (window.location.replace)
window.location.replace('[siteurl]');
else
// causes problems with back button, but works
window.location.href = '[siteurl]';
}
// -->
</SCRIPT>
It would yield the former javascript (with John's domain URL) text in
the 'Add Page' letter that John receives when he signs up for the ring.
As an alternative, is there a way I can code [siteurl] to add it to the
list of variables (a self mod)?
This may be as clear as mud to some of you, but this is the best I can
explain what I want to know (do).
Thanks for any help you can provide.
Fred