You are here: Re: Showing script based on the country « HTML « IT news, forums, messages
Re: Showing script based on the country

Posted by jojo on 07/06/06 12:06

Jukka K. Korpela schrieb:
> jojo <jojo.hafner@gmx.de> scripsit:
>
>> Nospam schrieb:
>>> I have a few javascripts. I would like to show a certain script
>>> based on the country ip of the viewer, how would I achieve this? is
>>> there html I could use to run the javascript based on the country ip?
>>
>> Another solution would be to write everything in one script but call
>> different functions according to the language.
>
> Solution to what? Surely not to the question that was asked, though
> perhaps to the question that the OP _meant_ to ask. It's probably still
> the wrong question.
>
>> The advantage would be
>> that you can use JS to get the language selected in the browser:
>
> No, it is a definite _disadvantage_, since now you would not even try to
> select the user's preferred language but the language of the browser's
> interface. This language is very often English even though the user
> knows just a little English and prefers quite other languages. The
> simple reason is that many browsers (especially new versions) are
> available as English versions only.
>
ASFAIK the JS-properties I suggested provide the language the user set
as his preferred language. In most browsers (IE, Firefox, Netscape,
Opera, ...) there is an option to select your preferred languages (_any_
language you like to, no matter in which language the browsers interface
is).
So it is even better using this properties than the IP because if, lets
say a German, is in the USA he has got an American IP. But perhaps he
still wants to view the websites in German...

 

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

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