|
Re: قوقل تمكنك من كتابة عربي مستخدما لوحة مفاتيح غير عربية (Re: نصار)
|
<script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript"> // Load the Google Transliteration API google.load("elements", "1", {packages: "transliteration"});
function onLoad() { var options = { sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH, destinationLanguage: [google.elements.transliteration.LanguageCode.ARABIC], shortcutKey: 'ctrl+g', transliterationEnabled: true }; // Create an instance on TransliterationControl with the required options. var control = new google.elements.transliteration.TransliterationControl(options);
// Enable transliteration in the textfields with the given ids. You can add multiple ids separated by ',' var ids = [ "transl1" ]; control.makeTransliteratable(ids);
// Show the transliteration control which can be used to toggle between English and Arabic. control.showControl('translControl'); } google.setOnLoadCallback(onLoad); </script> دا الكود لو في زول عاوز يخته في موقعه او مدونته
| |
|
|
|
|