You can inspect the IP address of the visitor to determine the country (search the forum for some examples), but you can’t guarantee what “country the page is visited from” as there are issues such as VPNs, and other networking issues. You can guess based on IP, and let the user change the country if they feel that your guess is incorrect.
For the text box, you can use setTimeout() , and then hide() the text box with the fade option.