Jump to content

Creare Tastatura Virtuala In Javascript, Precum Cea A Google


Recommended Posts

Posted

De ceva vreme, cel mai folosit motor de cautare, Google, a implementat casutei de cautare o Tastatura Virtuala in JavaScript, ce permite cu usurinta tastarea caracterelor speciale. Daca doriti sa faceti acelasi lucru pentru un site, in acest articol va este prezentata o modalitate de creare a unei tastaturi virtuale in JavaScript:

1. Descarcati keyboard.js: :link:

2. Descarcati keyboard.css: :link:

3. Descarcati iconita pentru tastatura: :link:

Intr-o pagina HTML, intre etichetele <head></head> introduceti urmatoarele doua linii:

<script type="text/javascript" src="keyboard.js" charset="UTF-8"></script>
<link rel="stylesheet" type="text/css" href="keyboard.css">[/code] Apoi, pentru inserarea unui camp + iconita de tastatura pe care daca se va da click se va deschide tastatura virtuala, introduceti urmatoarea linie oriunde doriti in pagina (intre etichetele <body></body>):
[code]<input type="text" value="" class="keyboardInput">

virtualkeyboardinjavasc.png

Mai multe detalii gasiti aici: http://www.greywyvern.com/code/javascript/keyboard

Numai bine :pct2: !

  • Upvote 1

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.