»Ë»Ñ Æ÷·³
°³¹ßÀÚÆ÷·³ ÀÔ´Ï´Ù.
  • ºÏ¸¶Å© ¾ÆÀÌÄÜ

óÀ½ Á¢¼ÓÇÒ ¶§¸¸ ½ÇÇàµÇ´Â JS?2

  • [* ºñȸ¿ø *]
  • µî·ÏÀÏ 2017-09-20 11:52
  • Á¶È¸¼ö 669
<script language="Javascript" src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>

<script language="Javascript"> 
document.write("Welcome to our visitors from "+geoplugin_city()+", "+geoplugin_countryName()); 
var city = geoplugin_city();
var countryName = geoplugin_countryName();
var countryCode = geoplugin_countryCode();
alert("±¹°¡ÄÚµå" + countryCode);
if(countryCode == "KR"){
location.href="www.naver.com";
}else if(countryCode == "JP"){
location.href="www.jp.naver.com";
}else{
location.href="www.en.naver.com";
}
</script>
 
»óȲÀº È«º¸ url ÇÑ°³,
 
www.naver.com À̶ó°í Ä¡¸é

geopluginÀ» ÀÌ¿ëÇØ Á¢¼Ó±¹°¡Äڵ带 »Ì¾Æ À§ ¼Ò½ºÃ³·³ ó¸®ÇÏ°í ½Í½À´Ï´Ù.
 
±×·±µ¥ ±¹°¡Äڵ尡 KR ÀÎ °æ¿ì ¹«ÇÑÀ¸·Î »õ·Î°íħÀÌ µÇÁö ¾Ê³ª ÇÏ´Â »ý°¢ÀÌ µå´Âµ¥
 
¾î¶»°Ô ÇØ°áÇÒ ¼ö ÀÖÀ»±î¿ä?
 
Ãß°¡ ++
 
ÄíÅ°³ª ¼¼¼ÇÀ¸·Î ÇØ°áÇؾßÇÒ °Í °°Àºµ¥ ÇÁ·ÐÆ®
 
À§ °°Àº »óȲ ÄíÅ°/¼¼¼ÇÀ» ÀÌ¿ëÇؼ­ ÇØ°áÇÏ´Â »ùÇà url À̳ª Á¤º¸¾Æ½Ã´ÂºÐ °è½Ã¸é µµ¿ò ºÎŹµå¸³´Ï´Ù¤Ì¤Ì
 
(js¾È¿¡¼­ ó¸®ÇؾßÇÕ´Ï´Ù!!)

0
ÃßõÇϱ⠴ٸ¥ÀÇ°ß 0
|
°øÀ¯¹öÆ°

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 Lllux

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 [* ºñȸ¿ø *]
  • ¾Ë¸² ¿å¼³, »óó ÁÙ ¼ö ÀÖ´Â ¾ÇÇÃÀº »ï°¡ÁÖ¼¼¿ä.
©¹æ »çÁø  
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û ¸ñ·Ïº¸±â