Difference between revisions of "Buttons"
Jump to navigation
Jump to search
(New page: <div style="padding: 1em;border: 1px dashed #2f6fab;color: black;background-color: #f9f9f9;line-height: 1.1em; font-size: 85%"> <source lang="javascript"> <div class="c1"> <script type="te...) |
|||
Line 1: | Line 1: | ||
A button like this may be embedded in a webpage to offer its translation via Apertium. |
|||
The code is written so that the button does not appear in the translation. |
|||
<div style="padding: 1em;border: 1px dashed #2f6fab;color: black;background-color: #f9f9f9;line-height: 1.1em; font-size: 85%"> |
<div style="padding: 1em;border: 1px dashed #2f6fab;color: black;background-color: #f9f9f9;line-height: 1.1em; font-size: 85%"> |
||
<source lang="javascript"> |
<source lang="javascript"> |
||
Line 18: | Line 22: | ||
</source> |
</source> |
||
</div> |
</div> |
||
Perhaps it would be possible to have a pull-down menu with available target languages... any ideas? |
Latest revision as of 18:59, 6 October 2008
A button like this may be embedded in a webpage to offer its translation via Apertium.
The code is written so that the button does not appear in the translation.
<div class="c1">
<script type="text/javascript">
//<![CDATA[
<!--
var aquest="";
aquest=document.URL;
if (aquest.indexOf("apertium.org") == -1) {
document.write('<a href="http://www.apertium.org/common/tradurl.php?mark=&dir=ca-fr&inurl='+aquest+'">');
document.write('En français avec Apertium<img alt="Apertium logo" border="0" ');
document.write('src="http://wiki.apertium.org/w/images/thumb/1/14/Apertium_open_box_logo_768.png/300px-Apertium_open_box_logo_768.png" ');
document.write('/>'+'<'+'/a>');
}
-->
//]]>
</script></div>
Perhaps it would be possible to have a pull-down menu with available target languages... any ideas?