Current location: Hot Scripts Forums » General Web Coding » JavaScript » Onscreen keypad


Onscreen keypad

Reply
  #1 (permalink)  
Old 02-07-05, 05:49 PM
Dwishy Dwishy is offline
New Member
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Onscreen keypad

Hey, I was wondering if its easy to make a script that reads input from an image map and writes it to a textbox.

In my case it would be an imagemap of the keys 0-9 which you can click on and the input should end up in a textbox.

Any help would be greatly appreciated.

Last edited by Dwishy; 02-07-05 at 05:57 PM.
Reply With Quote
  #2 (permalink)  
Old 02-09-05, 11:10 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
This should be easy.
just add onclick="getNum(1)" to the image map tag. (change 1 to the number you want)
and add this to your <head> tag.
Code:
<script>
function getNum(num){
 document.getElementById('the_id_of_a_textbox').value+=num
}
</script>
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
keypad enter script overload PHP 0 12-19-04 10:53 AM
Typing special chars without numeric keypad? wilson@cpuworks.com The Lounge 3 01-06-04 05:22 PM


All times are GMT -5. The time now is 10:42 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.