You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

346 lines
9.4 KiB
JavaScript

/**
* @param _id DOM object identifier
10 years ago
obj = document.getElementById(id) ;
if(obj == null){
obj = document.getElementsByName(id) ;
if (obj != null){
obj = obj[0] ;
}
}
//-- at this point we've tried two methods
}else{
nodes = id.childNodes;
}
for(var i=0; i < nodes.length; i++){
node = nodes[i];
if(node.nodeName.match('^#.*') == null){
list.push(node) ;
}
}
return list ;
}
jx.dom.set.css = function(id,value){
_dom = jx.dom.get.instance(id) ;
_dom.className = value;