我的代码:
<script type="text/javascript">
// Load the Google Onscreen Keyboard API
google.load("elements", "1", {
packages: "keyboard"
});
function onLoad() {
var kbd = new google.elements.keyboard.Keyboard(
[google.elements.keyboard.LayoutCode.URDU],
['urd']);
}
function addOption(selectbox, text, value) {
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;
selectbox.options.add(optn);
}
google.setOnLoadCallback(onLoad);
</script>
<div class="form-group">Urdu
<div class="col-md-offset-2 col-md-10">
<textarea id="urd" style="width: 600px; height: 200px;"></textarea>
</div>
</div>
任何人都可以提供帮助,或者非常感谢任何参考。
答案 0 :(得分:1)
我觉得这很有用,认为这可能有帮助......
Important: The Google Virtual Keyboard API has been officially deprecated
as of May 26, 2011. It will continue to work as per our deprecation policy.