Hello I got a javascript code i want to load each time the user is NOT chinese i got a predefine javascript code to load it This is the code for example What should i put to make it load only when the visitor is not chinese? or at least 90% of the times not chinese? <JAVASCRIPT> Please let me know regards
i believe its not possible to do it simply by javascript, you have to use some other things such php for remote IP checking and then generate the javascript code based on it. You can use maxmind free geolocator to get user country and then do what ever you need. $country = "CN";// CN will be generated from the geolocator script if ($country!="CN") { ?> <script type="text/javascript">....</script> <? } Code (markup):