السلام عليكم
عرض وإخفاء لوحة المفاتيح العربية لمن لا يمتلك جهاز معرب
استبدال هذا الرمز؟
http://code.google.com/apis/ajax/pla...#two_keyboardsكود:<!-- copyright (c) 2009 Google inc. You are free to copy and use this sample. License can be found here: http://code.google.com/apis/ajaxsearch/faq/#license --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google AJAX Search API Sample</title> <script src="http://www.google.com/jsapi?key=AIzaSyA5m1Nc8ws2BbmPRwKu5gFradvD_hgq6G0" type="text/javascript"></script> <script type="text/javascript"> /* * How to show and hide the Virtual Keyboard in your javascript code. */ google.load("elements", "1", {packages: "keyboard"}); var kbd; function onLoad() { var content = document.getElementById('content'); // Create the HTML for out text area content.innerHTML = '<div><i>(Scroll down)</i> ' + 'You can click the Show/Hide button enable/disable' + ' the Virtual Keyboard.</div>' + '<input type="button" onclick="toggleVisible()" ' + 'id="btVisible" value="Hide"></input><br/>' + '<textarea id="t1" cols="100" rows="5"></textarea>'; kbd = new google.elements.keyboard.Keyboard( [google.elements.keyboard.LayoutCode.UIGHUR], ['t1']); } // If the keyboard is visible, hide it. // If the keyboard is invisible, show it. function toggleVisible() { var button = document.getElementById('btVisible'); if (kbd.isVisible()) { kbd.setVisible(false); document.getElementById('btVisible').value = 'Show'; } else { kbd.setVisible(true); document.getElementById('btVisible').value = 'Hide'; } } google.setOnLoadCallback(onLoad); </script> </head> <body style="font-family: Arial;border: 0 none;"> <div id="content">Loading...</div> </body> </html>



رد مع اقتباس


مواقع النشر (المفضلة)