parked domain puzzle

They have: 93 posts

Joined: Dec 2001

Hello,
I don't know the right place to post this so......
I have domain, lets call it aaaa.com I have another domain parked on top called bbbb.com
SO when a user goes to bbbb.com they see the content of aaaa.com
is it possible to have some script that detects if the user is visiting aaaa.com or bbbb.com & then displays a different logo ? as the logo is the only thing that need to change as the rest of the site content is OK.

Thanks

Mika

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

I'm not quite sure what you mean, but I guess something like this should work:

if (document.url=="http://www.aaa.com")
ShowTheLogoA
else
ShowTheLogoB

make two layers, one for logoA and one for logoB and toggle visibilty having document.url.

Shakespeare: onclick || !(onclick)

They have: 93 posts

Joined: Dec 2001

Hi,
That sounds like exactly what I need,
I just do not understand how to get it to work,
Could you explain more please ?

Thanks

Mika

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Try this:

<html>
<head>
<title>Untitled</title>
&lt;script language="javascript"&gt;
function ToggleLogo()
{
if (document.location=="http://www.aaaa.com")
{
LogoA.style.visibility = "visible";
LogoB.style.visibility = "hidden";
}

if (document.location=="http://www.bbbb.com")
{
LogoA.style.visibility = "hidden";
LogoB.style.visibility = "visible";
}
}


&lt;/script&gt;

</head>

<body onload="ToggleLogo()">
<span id="LogoA" style="visibility: hidden; background-color:silver;">LogoA</span>
<span id="LogoB" style="visibility: hidden; background-color:yellow;">LogoB</span>

</body>
</html>
'

Shakespeare: onclick || !(onclick)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.