Show
Ignore:
Timestamp:
10/14/08 23:33:04 (6 years ago)
Author:
hoge1e3
Message:
 
Location:
lang/javascript/nohada
Files:
8 added
2 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/nohada/js/tag.js

    r20310 r21329  
    6161  } 
    6262} 
     63function addEventListener(target,name,handler) { 
     64        if (target.addEventListener) { 
     65           target.addEventListener(name.substring(2).toLowerCase(),handler,false); 
     66        } else { 
     67           target.attachEvent(name.toLowerCase(),handler); 
     68        } 
     69} 
  • lang/javascript/nohada/netacho.html

    r20319 r21329  
    88<script src="js/tag.js"></script> 
    99<script src="js/gui.js"></script> 
    10 <script> 
     10<script>  
    1111except=function(e) { print("Error - ",e); }; 
    1212 
     
    1717  var holder=printNeta(qo.content); 
    1818  progn([dbPut,qo], 
    19         [neta1,holder,qo] 
     19        [neta1,holder,qo], 
     20                function() {$("neta").value="";} 
    2021  ); 
    2122} 
     
    3233     [rmHolder,holder] 
    3334  ]; 
    34   elem(holder,[ 
     35  elem(holder,[   
    3536       "span", 
    3637          " id= ", qo.id , 
     
    5960  return elem($("list"),["span",content,["br"]]); 
    6061} 
     62function ent(e) { 
     63//  print (e.keyCode); 
     64  if (e.keyCode==13) addn(); 
     65} 
    6166</script> 
    6267</head> 
    6368<body onload="listAll()"> 
    64 <input type=text id=neta size=50> 
     69<input type=text id=neta size=50 onkeydown="ent(event)"> 
    6570<button onClick="addn()">Add</Button><HR> 
    6671<span id="list"></span>