PDA

View Full Version : host sniff & alternate layouts


aioun
09-14-2001, 02:13 PM
i am a total novice w/javascript and desperately need someone's help!

i need to create 3 different layouts based on what hostname the user is coming from. for example, i have 3 web sites:

my.internet.com
my.intranet.com
my.compnay.com

for each of these web sites i have 3 different look and feels.

i was wondering if there was a way in javascript to say:

if the hostname = my.internet.com then display this html code.

if the hostname = my.intranet.com then display this html code

else display this html code.

can someone help me???

scoutt
09-17-2001, 12:06 PM
I don't think you are going to accomplish what you want with javascript. I tried to search around for hostname detection on javascript sites and I found nothing.