How do i use keyboard keys to load specific images mapped to each character?
|
demo 22 Dec 2008 05:17pm I want to use my keyboard to load different images. Each of my keys will have an image attached to it and when i press one button it must show the corresponding image. Just like if i press "a" on my keyboard it should show the picture of an apple and if i press "b" it should show the picture of a ball. how can i do that using javascript, flash or action script or any suggestion most welcomed. thank you |
Answers
|
demo 22 Dec 2008 05:35pm Two things you need: - Attach an onkeydown event to your document - Use DOM (Document Object Model) to display the corresponding image when the above event is fired. |
Related
Submit Answer
You must be logged in to post an answer. Please Login or Register.
Powered by phpMyAnswers.