<div id="city"></div>
<script>function infothisuser([Login_Username]){var info=document.getElementById('city'),xhttp=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP'),address='/info/user/'+city;info.innerHTML='<center style="margin-top:15px;">در حال بررسی موقعیت شما ...</center>';xhttp.onreadystatechange=function(){if(xhttp.readyState==4 && xhttp.status==200){var res=document.createElement('div');res.innerHTML=xhttp.responseText;var city=res.getElementsByTagName('city')[0].innerHTML;city='192.168.1.1';info.innerHTML='<center><img src="http://maps.google.com/maps/api/staticmap?center='+city+'&zoom=14&size=400x100&maptype=roadmap&markers=size:large|color:#000|'+city+'&sensor=true" style="width: 90% !important;"></center>';}}xhttp.open('GET',address,true);xhttp.send();}</script>