![]() |
|
![]() ![]() ![]() ![]() ![]() You may aware there is a welcome sign displayed on the top of this paragraph. Depending on what is your current IP address and where are you coming from, the welcome sign will be displayed in different languages (Chinese, English, French, Japanese, and Spanish). How this can be done? Actually, it's quite easy to do it without any coding efforts. Here are the sample code fragment and a simple complete example (simple3.html). <div class="glFilter" group="Sign" country="JP"><img src="welcomeJP.gif"></div> <div class="glFilter" group="Sign" country="CN,HK,TW"><img src="welcomeCN.gif"></div> <div class="glFilter" group="Sign" country="AD,AR,BO,BZ,CL,CO,CR,CU,DM,EC,ES,GT,HN,MX,NI,PA,PE,PR,PY,SV,UY,VE"><img src="welcomeES.gif"></div> <div class="glFilter" group="Sign" country="BE,BF,BI,BJ,CD,CF,CM,DJ,FR,GA,HT,KM,MC,MG,ML,NE,RW,SC,SN,TD,TG,VU"><img src="welcomeFR.gif"></div> <div class="glFilter" group="Sign"><img src="welcomeUS.gif"></div> The logic of the above code fragment is following :
Please continue to GeoLocal :: Filter - Part II.
© 2010 ToGo Software. All rights reserved.
|