Original Virtual Keyboard:
http://WinRus.com/keyboard.htm
On this page you'll find five variants (with working examples)
and short
Note. There are other variants - when Keyboard is initially present on screen: Keyboard is on a separate page; Keyboard in a separate pop-up window, etc..Details about all the variants - these 5 and
other - on the page tstKbd_e.htm: each with a working example there too.
Conditions of the usage of the Keyboard on your site are also specified there.
Practically each variant of calling the Keyboard has been already used on various sites and forums (ask me if you want the links to such sites/forums to see how it works).
All the files are within vkb_use.zip archive.
The only thing needed from that .zip to apply the Keyboard onto your site
is a
By default (because it's the most common case) the Keyboard on some page takes needed files
from the
That is, say Keyboard working on A.html page located at abc.com/~mike/A.html
will look for its files at
If you open in an editor the main JavaScript file of the vkb
vkb_Path = "vkb/";
If that path is not good for you - for example, you want to insert Keyboard button on several pages located in different folders, say
vkb_Path = "/vkb/";that is, wherever a page with Keyboard is located, the Keyboard will look for its files in the folder vkb located in the root directory.
Such (or another) custom value for the path to the vkb folder can be set via vkb_Path parameter:
If you install one of the variants on your site then please
send me
Each of these 5 variants of "attaching" Keyboard to a page
involve the following minimal additions to
your existing page (two lines minimum):
one line is a button to call
Variants 3 and 4 have one more line that specifies a "frame" (<div>)
where Keyboard is
Let's start from 2nd line:
Second line in the <HEAD> section looks the same in all five variants (loads JavaScript and CSS files of the Keyboard):
<script type='text/javascript' src='vkb/vkb_load.js' charset='windows-1251'></script>
"windows-1251" for vkb_load.js means that:
If you situation is different and your page (HTML) where you want to have this Keyboard,
is a
First line (which may not be needed) in the <HEAD> section of your HTML
is for you to specify Parameters (almost
<script type="text/javascript">vkb_Variant=1; vkb_InterfaceLanguage='E';</script>
Parameters (almost all are optional ):
vkb_Variant = 1;
If you do need such functionality, then the parameters line will have this one
vkb_nonUS=true;
Default is "false", that is, no such option as non-US keyboards.
Default is Russian, so if you want English interface, then the parameters line should have this one
vkb_InterfaceLanguage='E';
It's needed sometimes for SMS or for older Chat programs that don't work with Cyrillic:
vkb_ToLatin=true;
Default is "false", that is, no such option presented.
vkb_KbdVariant='30';
Default (for English-interface) is "5" (Phonetic layout - AATSEEL 'Student').
Note. If the layout you want at start-up is one for a non-US keyboard mode, then do not forget to setup alsovkb_nonUS=true; (that parameter was descibed earlier).
Here is the full list of numeric values that could be used for this parameter:
Fixed position is useful for the situation with many input fields (filling out a form),
where non-fixed-position frame would cause a user tedious moving of Keyboard's frame (in several steps) called below the last field,
to the top field. While with the fixed-position option it's very
If you do need fixed-position option for Variant 2, then the parameters line will have this one
vkb_Fix=true;
Default is "false", that is, the frame is movable in Variant 2.
vkb_Path = "vkb/";
If you want to setup a different path you can provide a value for this parameter
in the
For example, in Variant 1 which will be described below, you may want
to have "Off" as a
If you want to have "Off" as an initial, start-up setting, then the parameters line will have this one
vkb_CyrOnOffInit=false;
Default is "true", that is, "Cyrillic via keyboard" is 'On'.
As you see - based on defaults - there is no need for Parameters line at all
for
the Russian-interface Variant 2 without non-US keyboard:
your <HEAD> section then contains just one
You can see/copy those lines that 'attach' Keyboard to the input fields (and then
prepare parameters as you wish) -
lines in both <HEAD> (Part 1)
and below input
(those lines are easy to find - there are comments surrounding
"Part 1 of Virtual Keyboard code" and
Five variants fo Keyboard working right in the calling page (four main variants and 2nd one has two
sub-variants, so it's five alltogether):
Note. Remember, that initial setting of keyboard-based
There is a Mode for SMF-forum made using this variant (with "On" for parameters 2 and 4, but it's modifiable), you can find more details in the Russian version of this page.
Based on the Variant selected and some other parameters (such as Interface Language)
you decided to use on your site, you can remove unneeded files in vkb
Paul Gorodyansky
"Cyrillic (Russian): instructions for Windows and Internet":
http://WinRus.com
some responses
from readers
Did you like it? You can make a donation by clicking here
(opens in new window):