color text-decoration background-color font-size font-weight display margin padding border-style border-color border-width font-style width text-indent line-height list-style-image position top left overflow
16.6 Whitespace: the 'white-space' property 'white-space' Value: normal | pre | nowrap | inherit Initial: normal Applies to: block-level elements Inherited: yes Percentages: N/A Media: visual
function get_keycode() { switch (event.keyCode) { case 37:alert("うしろへ下がる");break; case 38:select_menu("up");break; case 39:alert("ぼうぎょ");break; case 40:select_menu("down");break;
default :break; } }
document.onkeydown = get_keycode;
var count = 0,tbl = document.getElementById("t1"); var child = tbl.childNodes[0].childNodes;
function select_menu(evt) { if(evt=="up") {if(--count<0)count=child.length+count;}