Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

html arrow key help pls?

well im having troble fuguring out how to use html arrow key events to switch through imgs. yes their is such thing i used to hav them (them= the html codes) and use them but i lost them and their not on the internet. (i got the book from librery on html) first awnser correctly gets best answer. no im not buying or paying for codes.

Update:

oh yeah and not looking for char numbers e.g. Enter= 13 i already hav those codes i need a way to use the codes like e.g. events.arrowkey i dont know if that is right cuz i dont know the codes and I WANT THE CODE TO BE ABLE TO CHANGE IMGS!!!!!

Update 2:

oops mabey it is javascript i do both so FIND ETHER JAVASCRIPT OR HTML SWITCH THROUGH IMGS THX!!!

4 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    Any keydown event was not handled by HTML. HTML is a static language. JavaScript probably was used. Might help...

    http://bytes.com/topic/javascript/answers/872889-a...

    Ron

  • Anonymous
    1 decade ago

    No, you did not use to have them. You can't do anything like that with HTML - HTML is only for markup, not interaction. You're most likely talking about JavaScript. Here is how to get certain key press events on the keyboard with JavaScript and assign them to variables to use:

    http://www.geekpedia.com/tutorial138_Get-key-press...

    Here's some more discussion on that from Drupal:

    http://drupal.org/node/551220

    edit: Why should we give you a complete code? That takes the fun and the learning out of programming. We can give you hints and resources, but not full scripts. If you supposedly "do both" languages, figure it out on your own like a real programmer. All of us get stuck on scripts sometimes. Answers don't exactly just fall into your lap.

  • ?
    Lv 5
    1 decade ago

    Uhh, that sounds like Javascript to me, not HTML. HTML doesn't "switch through imgs" as you put it.

  • Jim
    Lv 7
    1 decade ago

    that really depends on what library is processing the keyboard events. in javascript, the keycodes are unique.

    just google "javascript event arrow keys"

Still have questions? Get your answers by asking now.