Jump to content

Creare Tastatura Virtuala In Javascript, Precum Cea A Google


Recommended Posts

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">


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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.