Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/06/2004, 12:34
Avatar de Atonovich
Atonovich
 
Fecha de Ingreso: diciembre-2002
Ubicación: ...
Mensajes: 117
Antigüedad: 22 años, 5 meses
Puntos: 0
CONTINUA COOLTREE.JS______

function buttonSquare(node){
var img=node.treeView.fmt[node.expanded? "exB" : "clB"];
var w=node.treeView.fmt.Bw;var h=node.treeView.fmt.Bh;
return '<td valign=\"middle\" width="'+w+'"><a href="javascript:CTExpand(\''+node.treeView.name+' \','+node.index+')"><img name=\''+node.id()+'nb\' id=\''+node.id()+'nb\' src="' + img + '" width="'+w+'" height="'+h+'" border=0></a></td>\n';
}
function blankSquare(node, ww){
var img=node.treeView.fmt.iE;
return "<td width=\""+ww+"\"><img src=\"" + img + "\" width="+ww+" height=1 border=0></td>\n"
}
var s='';
var ll=this.level();
s += '<table cellpadding='+this.treeView.fmt.pg+' cellspacing='+this.treeView.fmt.sp+' border=0 class="cls'+this.treeView.name+'_back'+ll+'"><tr>' ;
var idn=this.treeView.fmt.idn(ll);
if (idn > 0) s += blankSquare(this, idn);
if(this.treeView.fmt.showB) s += this.hasChildren() ? buttonSquare(this) : blankSquare(this, this.treeView.fmt.Ew);
if(this.treeView.fmt.showF) s += itemSquare(this);
var n = this.treeView.name;
if(this.url == "")
s += this.hasChildren()? '<td nowrap=\"1\"><a class="'+this.treeView.fmt.nstyle(ll)+'" href="javascript:CTExpand(\''+n+'\','+this.index+' )">'+this.text+'</a></td></tr></table>' : '<td nowrap=\"1\"><a class="'+this.treeView.fmt.nstyle(ll)+'" href="javascript:void(0)">'+this.text+'</a></td></tr></table>';
else
s += '<td nowrap=\"1\"><a class="'+this.treeView.fmt.nstyle(ll)+'" href="'+this.url+'" target="'+this.target+'" onclick="CTExpand(\''+n+'\','+this.index+')">'+thi s.text+'</a></td></tr></table>';
return s;
}
this.moveTo=function(x, y){if (this.treeView.ns4)this.el.moveTo(x,y);else{this.e l.style.left=x;this.el.style.top=y;}}
this.show=function(sh){if (this.visible == sh)return;this.visible=sh;var vis=this.treeView.ns4 ? (sh ? 'show': 'hide') : (sh ? 'visible': 'hidden');if (this.treeView.ns4)this.el.visibility=vis;else this.el.style.visibility=vis;}
this.hideChildren=function(){this.show(false);for (var i=0;i < this.children.length;i++)this.children[i].hideChildren();}
this.draw=function(){var ll=this.treeView.fmt.left;this.moveTo(this.treeVie w.fmt.left, this.treeView.currTop);this.show(true);var w = this.getW();if (ll+ w> this.treeView.maxWidth)this.treeView.maxWidth=ll+w ;this.treeView.currTop += this.getH();if (this.treeView.currTop > this.treeView.maxHeight)this.treeView.maxHeight=th is.treeView.currTop;if (this.expanded && this.hasChildren())for (var i=0;i < this.children.length;i++)this.children[i].draw();}
}
function CTreeBack(aleft, atop, color, name){
this.bw=new bw_check();this.ns4=this.bw.ns4;this.left=aleft;th is.top=atop;this.name=name;this.color=color;this.t =unescape('');
this.moveTo=function(x, y){if (this.ns4)this.el.moveTo(x,y);else{this.el.style.l eft=x;this.el.style.top=y;this.el2.style.left=x;}} ;
this.resize=function(w,h){if (this.ns4){this.el.resizeTo(w,h);}else{this.el.sty le.width=w;this.el.style.height=h;if (this.r) this.el2.style.top=h+this.top-5;}};
this.init=function(){if (this.r)if (!this.ns4) {var bgc=this.color == ""? "" : " background-color:"+this.color+";";document.write('<div id="'+this.name+'c" style="'+bgc+'position:absolute;z-index:0;top:'+this.top+'px;left:'+this.left+'px;"> '+'&nbsp;<span style="font-size:7px;color:#d0d0d0;">'+this.t+'</span>'+'</div>');this.el2=document.all? document.all[this.name+'c'] : document.getElementById(this.name+'c');}if(this.ns 4){var bgc=this.color == ""? "" : ' bgcolor="'+this.color+'" ';document.write('<layer '+bgc+' top="'+this.top+'" left="'+this.left+'" id="'+this.name+'" z-index="0">'+ '</layer>');this.el=document.layers[this.name];} else {var bgc=this.color == ""? "" : " background-color:"+this.color+";";document.write('<div id="'+this.name+'" style="'+bgc+'position:absolute;z-index:0;top:'+this.top+'px;left:'+this.left+'px">' + '</div>');this.el=document.all? document.all[this.name] : document.getElementById(this.name);}};this.r=1;
this.init();
}
function und(val){return typeof(val) == 'undefined';}
window.oldCTOnLoad=window.onload;
function CTOnLoad(){
var bw=new bw_check();
if (bw.operaOld)window.operaResizeTimer=setTimeout('r esizeHandler()',1000);
if (typeof(window.oldCTOnLoad)=='function') window.oldCTOnLoad();
if (bw.ns4) window.onresize=resizeHandler;
}
window.onload=new CTOnLoad();
function resizeHandler() {
if (window.reloading) return;
if (!window.origWidth){
window.origWidth=window.innerWidth;
window.origHeight=window.innerHeight;
}
var reload=window.innerWidth != window.origWidth || window.innerHeight != window.origHeight;
window.origWidth=window.innerWidth;window.origHeig ht=window.innerHeight;
if (window.operaResizeTimer)clearTimeout(window.opera ResizeTimer);
if (reload) {window.reloading=1;document.location.reload();ret urn};
if (new bw_check().operaOld){window.operaResizeTimer=setTi meout('resizeHandler()',500)};
}
function CTExpand(name, index){window.NTrees[name].expandNode(index)}

TERMINA COOLTREE.JS _____________
__________________
" El hombre es una invención de Dios o Dios es una invención del hombre..."