Jump to content
Sign in to follow this  
gaby

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

virtualkeyboardinjavasc.png

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

Numai bine :pct2: !

Share this post


Link to post
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.

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...