Usage examples:

 |
| Smart Link Corporation |
| 18401 Von Karman Ave., Ste. 450, Irvine, CA 92612, USA |
| Phone: |
(800) 256 4814
(949) 552 1599
|
| FAX: |
(949) 552 1699 |
|
|
|
Support
Including Virtual Keyboard in web pages
On Microsoft Windows platform, use the VK
Forms Wizard to embed Virk in your HTML files. Its
step-by step interface will guide you through all the necessary
steps.
Sometimes, for better control, or on other platforms, like
Mac or Unix, you may want to manually include virtual keyboard
code in your HTML. You should follow these simple steps
then:
Step 1
|
Embedding the Virtual Keyboard applet
|
|
Include the following code anywhere
in your page to embed the Virtual Keyboard
applet.
<!-- Virk begin -->
<SCRIPT LANGUAGE="javascript" src="kbd.js">
<SCRIPT LANGUAGE="javascript" src="virk.js">
<SCRIPT LANGUAGE="javascript" >
sSkin="gr";
sX="300";
sY="350";
sReg="";
sMode="auto";
sLayouts="00000409,00020409,00000425,00000405,00000408,00040419,0000041F,00020422,0000040D,00010409,00000401";
var sBrver;
initVirk();
</SCRIPT>
<A HREF="javascript: showVirk();"><IMG SRC="btn-kbd.gif" ID="imgvk" WIDTH="18" HEIGHT="18" ALT="Show Virtual Keyboard" ALIGN="absmiddle" BORDER="0">
<!-- Virk end -->
|
|
Step 2
|
Defining options
|
|
Use Virk script variables to
change Virtual Keyboard appearance and options.
sSkin is used to define
keyboard color. It may be "gr" for
gray or "or" for orange. Other options
are available on order
sX and sY are
the coordinates of floating keyboard, when it
first pops up. The coordinates are in pixels
and relative to the top-left corner of the screen.
sMode may be "auto"
or "ns". In auto mode Virk will adjust
itself according to the browser used. In "ns"
the keyboard will always run in Netscape-compatibility
mode. This may be used for improving interface
consistency on your site, though "auto"
mode is recommended for most uses.
sLayouts is a list of
keyboard layout codes. These layouts will be
available in the Virtual Keyboard. The codes
are defined as follows:
| Layout |
Code |
| Arabic |
00000401 |
| Baltic |
00000425 |
| Central European |
00000405 |
| Greek |
00000408 |
| Hebrew |
0000040D |
| Russian |
00000419 |
| Russian transliterated |
00040419 |
| Ukrainian |
00000422 |
| Ukrainian transliterated |
00020422 |
| US |
00000409 |
| US Dvorak |
00010409 |
| Turkish |
0000041F |
| Western |
00020409 |
Also notice the <IMG>
tag at the end of the code. Though not beeing
directly a Virk parameter, this is an image
used to show up the virtual keyboard. You may
want to change the image source for it.
|
|
Step 3
|
Copy the files
|
|
Copy the following files in
the folder, where your HTML pages reside.
vkgr.jar
vkor.jar
vknsgr.jar
vknsor.jar
virk.js
btn-kbd.gif
|
|
Step 4
|
Try it!
|
Show:
|
Click the icon to open
the Virtual Keyboard window.
|
| Text Input: |
|
|
|
|
|
|