Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Javascript

Javascript

Scheduled Pinned Locked Moved Web Development
javascripthelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cberam
    wrote on last edited by
    #1

    Hi, I'm trying to create TD and TR elements in Javascript. Using document.createElement("tr") and document.createElement("td"); Also to catch mouse events i use, setAttribute("onmouseout", "this.className='mouseOver';"); How to handle ARROW KEY events like mouseover .Pls help. Thanks in Advance Ram

    M 1 Reply Last reply
    0
    • C cberam

      Hi, I'm trying to create TD and TR elements in Javascript. Using document.createElement("tr") and document.createElement("td"); Also to catch mouse events i use, setAttribute("onmouseout", "this.className='mouseOver';"); How to handle ARROW KEY events like mouseover .Pls help. Thanks in Advance Ram

      M Offline
      M Offline
      Marc Soleda
      wrote on last edited by
      #2

      setAttribute("onKeyDown","javascript:KeyDown();");

      function KeyDown()
      {
      var whichKey = event.keyCode;
      switch(whichKey)
      {
      case 37: /* Arrow left*/
      case 38: /* Arrow up*/
      case 39: /* Arrow right*/
      case 40: /* Arrow down*/
      }
      }

      I hope that's what you're looking for... Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups