如何在我的网站上获取用户的国家标志 [英] How can I get user's country flag on my site

查看:50
本文介绍了如何在我的网站上获取用户的国家标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的网站上显示用户/访客的国家/地区标记.

I wanna display user's/visitor's country flag on my site.

我正在使用不同的技术,例如php,jsp和简单的html.因此,我想要一个代码,该代码可以放置在我的网站上,从而使访问者可以看到并且该代码可以在所有平台上运行.

I am using different technologies like php,jsp and simple html. So I want a code which by placing on my site, visitors can see and it should run in all platform.

简而言之,我想要国家/地区检测API.如果有人可以帮助我,我将非常感激.

In short I want country detection API. If anybody can help me, I'll be very thankful.

推荐答案

来源:

http://www.shorter.in/#flag

<a href="http://www.shorter.in/#flag" target="_blank"><img src="http://shorter.in/flag.php"></a>

上面给出的代码示例.

忙碌的猫http://shorter.in/flag.php

我想这就是您要寻找的东西.

I guess this is what you are looking for.

这篇关于如何在我的网站上获取用户的国家标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆