This sample shows how you can use JavaScript to provide simple interactivity. In this case, the virtual keyboard is an image-map that has defined clickable areas which correspond to maritime flag images.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click on the keys on the keyboard to create a message with maritime flags. Click on the RESET key to clear the message.
When you repeat a key, the substitute pennant
is used.