13 Languages for ur site

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

No replies · 559 views · started 16 years ago · 1 min read

riderz Lead · 975 posts #1

Paste this script into the <head> section of any document you wish to place the drop down menu in.

<SCRIPT TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</SCRIPT>

Copy and paste this into your favorite text editor (Example: Notepad), and use the replace function to place all instances of Example Web Page with your website address. Example: mywebsite.com OR mywebsite.co.cc WITHOUT http:// if your website is within a folder, example 404 - Not Found then use this symbol for the forward slash: %2F

<FORM METHOD=POST onSubmit="return dropdown(this.gourl)">
<SELECT NAME="gourl">
<OPTION VALUE="">Languages...
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Car&hl=en&ie=UTF-8">Arabic
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Czh-CN&hl=en&ie=UTF-8">Chinese (Simpified)
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Czh-CN&hl=en&ie=UTF-8">Chinese (Traditional)
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Cnl&hl=en&ie=UTF-8">Dutch
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Cfr&hl=en&ie=UTF-8">French
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Cde&hl=en&ie=UTF-8">German
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Cel&hl=en&ie=UTF-8">Greek
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Cit&hl=en&ie=UTF-8">Italian
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Cja&hl=en&ie=UTF-8">Japanese
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Cko&hl=en&ie=UTF-8">Korean
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Cpt&hl=en&ie=UTF-8">Portuguese
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Cru&hl=en&ie=UTF-8">Russian
<OPTION VALUE="http://translate.google.com/translate?u=http%3A%2F%2Fwww.example.com&langpair=en%7Ces&hl=en&ie=UTF-8">Spanish
</SELECT>
<p><INPUT TYPE=SUBMIT VALUE=" Translate "></p>
</FORM>

<p align="right">Translation By Google</p>

Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close