भारत की संस्कृति के लिए... भाषा की उन्नति के लिए... साहित्य के प्रसार के लिए
Changes
Kavita Kosh से
660 bytes removed,
09:35, 30 सितम्बर 2010
<html>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script>
/*
* How to setup a textarea that allows Transliteration from English to Hindi.
*/
google.load("elements", "1", {packages: "transliteration"});
function OnLoad() {
var content = document.getElementById('content'); // Create the HTML for our text area content.innerHTML = '<div>Type a word and hit space to get it in Hindi. ' + 'Click on a word to see more options.</div>' + '<textarea cols="100" rows="5" id="transliterateTextarea"></textarea>' + '<div>Type in (do not copy/paste): ' + '<b>namaste main yahan apke madad karane ke liye hun</b></div>'; var options = { sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH, destinationLanguage: [google.elements.transliteration.LanguageCode.HINDI], shortcutKey: 'ctrl+g', transliterationEnabled: true };
// Create an instance on TransliterationControl with the required // var options= {sourceLanguage:google.elements.transliteration.LanguageCode.ENGLISH,destinationLanguage:[google.elements.transliteration.LanguageCode.HINDI],shortcutKey: 'ctrl+g',transliterationEnabled: true}; var control = new google.elements.transliteration.TransliterationControl(options); // Enable transliteration in the textbox with id // 'transliterateTextarea'. control.makeTransliteratable(['transliterateTextarea']);
}
google.setOnLoadCallback(OnLoad);