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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×