Your site for language and translation
This site in English Ce site en français Ver en español
Affiliate Program
Sample 1 - Sample 2 - Sample 3 - Sample 4 - Sample 5 - Sample 6
Code for sample 1   (See how it looks like)

Place the following code into a frame (feel free to change layout and style).

You need to:

  1. place a piece of JavaScript into the <head> section of the page
  2. add an on-load event into the <body> tag
  3. add the code of the translation form

 

1. JavaScript code

Place the following JavaScript code just before the </head> tag:


<head>

...

<script language="JavaScript" src="http://www.foreignword.com/tools/jv_dictsrch_aff_standard.js"></script>

</head>
 

2. Change body tag

Add the attribute "onload=FWOnLoad(code1,code2)" to the body tag of the HTML page.

The parameters specify the default source and target language combination. "BP" corresponds to English and "AA" to mono-lingual. Click here for a list of all available language codes.


<body onload="FWOnLoad('BP','AA')">
 

 

3. Add the translation form

The actual form is implemented by the HTML code printed below.

The results are sent to the lower frame, which we named "bottom" in our example.

<!-- ******* Foreignword translation form ********* -->
<form name="TSearch" method="get" action="http://www.foreignword.com/Tools/dictsrch_aff.asp" target=bottom>

<TABLE background="" border=0 cellPadding=0 cellSpacing=0>

<TR>
<TD><FONT color=yellow size=1 face=Arial>Select source</FONT></TD>
<TD><FONT color=yellow size=1 face=Arial>Target</FONT></TD>
<TD><FONT color=yellow size=1 face=Arial>Word</FONT></TD>
<TD></TD></TR>
<TR><TD>

<!-- source languages -->
<script language="JavaScript">FWSourceLangCombo()</script>
</TD>

<!-- target languages -->
<TD>
<script language="JavaScript">FWTargetLangCombo()</script>
</TD><TD>

<!-- text input field -->
<INPUT name=query size=10 maxlength=50></TD><TD>

<!-- translate button -->
<INPUT name=search type=submit value=Go></TD></TR>

<TR><TD colspan=4 align=middle><FONT size=1 color=white face=Arial>Powered by <A href="http://www.foreignword.com" target=_top>Foreignword.com</A></FONT></TD>
</TR></TABLE>
</form>

<!-- **************** -->

 



 
Home|Tools|Translators|Forum|Technology|Software
About us|Feedback|Disclaimer|Contact us

©2000-2002 Foreignword