Rick Cogley's w3Place


 2002.12.21

 === 5:58:25 PM     === 
Are you a multilingual webmaster?

If you have a multilingual website, here's a very simple Javascript to switch languages on your site. Assume I have two websites with the same structure, same filenames and so on, but the paths are either /en/ or /jp/ - for English or Japanese respectively. I want a button on the page that switches languages, to the other equivalent page.

Here is one way - the code below between the HTML p tags is all on one line. Ugly but it works. I imagine there is a better way to write the regexp since this one makes assumptions that there is only one "-en" substring in the URL. This code would be placed on the English site, and could be used to switch to Japanese.

<p>Change to <a href="javascript:var thisurl = unescape(document.URL);var targurl = thisurl.replace(/-en/gi,'-jp');location.href=targurl;">Japanese</a></p>


- See Also:  javascript multilingual webmaster 

Google Topic or see

 === 4:44:48 PM     === 
Paul Rennick's UNT Drumline Wins Again The University of North Texas has a consistently cooking drumline instructed by Paul Rennick - a buddy I marched with in 27th Lancers a long time ago. They were world champions again 2002, and here's a gallery of them from PASIC. Go UNT!
- See Also:  Paul Rennick University of North Texas drumline Drum and Bugle Corps rudimental drumming 

Google Topic or see