开发者

Location Specific Content

开发者 https://www.devze.com 2023-01-06 13:29 出处:网络
I would like the content in my website to change depending from w开发者_如何学Chere the request is coming(location). Would it be a nice idea to do it based on the IP Address? Is there any other way to

I would like the content in my website to change depending from w开发者_如何学Chere the request is coming(location). Would it be a nice idea to do it based on the IP Address? Is there any other way to do it?

Thanks :)


There's a number of options available for the handling of location. There's the W3C Geo API(discussion of browser support here),there's an example here using the Google AJAX API,. An overview of a number of options and their relative benefits is here

0

精彩评论

暂无评论...
验证码 换一张
取 消