Code for sample 2
(See how it looks like)
Place the following code into a frame (feel free to change layout and style).
Click here to see how to display results inside a frame of your web site.
<!-- ******* Foreignword translation form ********* --> <form method="get" action="http://www.foreignword.com/Tools/dictsrch_aff.asp" target="_blank" id="FORM1" name="FORM1">
<!-- remove the following field and the Foreignword menu is not displayed --> <!-- remove the following field and the Foreignword menu is not displayed --> <input type="hidden" name="menu" value="Y">
<table border="1" cellPadding="1" cellSpacing="0" align="center" bgColor="black" background=""> <tr><td align="left"> <table background ="" bgcolor=gainsboro border="0" cellPadding="3" cellSpacing="0" width="300"> <tr><td><strong><font size="1">Translate English to Greek</font></strong></td> <td> </td></tr><tr> <td>
<!-- text input field --> <input name="query" size="25"> </td><td align="middle">
<!-- translate button --> <input name="search" type="submit" value="Translate"> </td></tr><tr><td>
<!-- some English to Greek dictionaries --> <select name="site">
<option selected value="26a">Euterpe <option value="10a"> Eurodicautom <option value="16a">TIS <option value="03b">English/Greek <option value="94a">Cypros-Net <option value="28a">Ectaco Bilingual <option value="03c">Glossa (technical) <option value="27i">Merc Computer Dict.
</select> </td><td align="middle"><font color="white" size="1"><A href="http://www.foreignword.com" target=_top>Powered by Foreignword.com</A></font> </td></tr></table>
<!-- the source language (English) as a hidden field --> <input name="src" type="hidden" value="BP">
<!-- the target language is Greek --> <input name="trg" type="hidden" value="CP">
</td></tr></table></FORM> <!-- *************************** -->
|
Instructions
By analysing this code you will remark that source and target languages are attributed a 2-letter code. If you want to support a different source/target combination, then you need to know these 2-letter codes. Click
here for the list of languages.
All dictionaries you include must support your language combination. To find out available dictionaries proceed as follows:
-
Goto the
DictSearch page, select your languages and note down the names of those dictionaries that you would like to include
-
Look-up the corresponding dictionary identifiers (a number plus a letter) from
this page.
-
Look-up your source and target language codes at
this page.