Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/01/2011, 12:43
OmarGon
 
Fecha de Ingreso: diciembre-2010
Ubicación: Perú
Mensajes: 21
Antigüedad: 13 años, 4 meses
Puntos: 0
Respuesta: Links PluginLab

Es la continuación del JavaScript


Código:
if(type==0){var cfoid=st[i++]
var ref='http://any.html'
var txt=st[i++]
i++
var targ=st[i++]
var func=''
var params=''
if(targ.substr(0,3)=='_PL'){func=st[i++]
params=st[i++]}var imgn=PLHFO_adjustPath(st[i++])
var imgo=PLHFO_adjustPath(st[i++])
var imgh=st[i++]
var imgw=st[i++]
PLHFO_preload(imgo)
var cur=PLHFO_isCurrent(ref)
var sel=false
is=""
if(!index)is+="<TD "+(j==n-1?"width=100%":"")+">"
is+="<DIV style='margin:"+((!index)||first_item?"0":"0")+"px 0px 0px 0px'><TABLE border=0 cellpadding=0 cellspacing=0 class='PLHFOLink' ename='fi' foid="+index+" width="+(index?"100%":"110px")+" cfoid="+cfoid+" txt='"+txt+"' ref='"+ref+"' target='"+targ+"'"+(func?" func='"+func+"'":"")+""+(params?" params=\""+params+"\"":"")+" imgn='"+imgn+"' imgo='"+imgo+"' imgh="+imgh+" imgw="+imgw+" ncolor='"+curColor+"' mocolor='"+curMOColor+"' mdcolor='"+curMDColor+"' brdcolor='"+curBColor+"' bmocolor='"+curBMOColor+"' bmdcolor='"+curBMDColor+"' bselcolor='"+curBSelColor+"' txtcolor='"+curTxtColor+"' tmocolor='"+curTMOColor+"' tmdcolor='"+curTMDColor+"' BGCOLOR='"+(sel?curSelColor:curColor)+"'"+(cur?" cur=1":"")+""+(sel?" sel=1":"")+" style=' cursor:"+(sel?'default':(PLHFO_br.ie?"hand":"pointer"))+"'><TBODY><TR>"
if(imgn||imgo)is+="<TD><IMG class='PLHFOIcon' SRC='"+(imgn?imgn:imgo)+"' HEIGHT='"+imgh+"px' WIDTH='"+imgw+"px'"+(imgn?"":" style='visibility:hidden'")+"></IMG></TD>"
is+="<TD width='100%'"+(index?" align='left'":" align='left'")+" style='padding:"+(index?"3px 6px 4px 6px":"3px 6px 5px 6px")+";font-family:"+(index?PLHFO_FLYOUT_FONT:PLHFO_MAIN_FONT)+";font-size:"+(index?"11px":"11px")+""+((index&&PLHFO_FLYOUT_BOLD)||(!index&&PLHFO_MAIN_BOLD)?";font-weight:bold":"")+""+((index&&PLHFO_FLYOUT_ITALIC)||(!index&&PLHFO_MAIN_ITALIC)?";font-style:italic":"")+"' nowrap><FONT style='color:"+(sel?curTSelColor:curTxtColor)+""+((index&&PLHFO_FLYOUT_UNDERLINE)||(!index&&PLHFO_MAIN_UNDERLINE)?";text-decoration:underline":"")+"'>"+txt+"</FONT></TD>"
if(cfoid>0&&(index?PLHFO_SUB_ARROW:PLHFO_DD_ARROW))is+="<TD"+(index?"":" style='padding-right:4px'")+"><IMG class='PLHFOArrow' SRC='"+(index?PLHFO_SUB_ARROW:PLHFO_DD_ARROW)+"' HEIGHT='"+(index?7:4)+"px' WIDTH='"+(index?7:7)+"px'></IMG></TD>"
is+="</TR></TBODY></TABLE></DIV>"
if(!index)is+="</TD>"
first_item=0}else if(type==1){var txt=st[i++]
var color=st[i++]
var bgimg=PLHFO_adjustPath(st[i++])
is=""
if(!index)is+="<TD>"
is+="<DIV style='margin:"+((!index)||first_item?"0":"0")+"px 0px 0px 0px'><TABLE border=0 cellpadding=0 cellspacing=0 class='PLHFOHeading' ename='fi' width="+(index?"100%":"110px")
if(bgimg)is+=" style='background-image:url("+bgimg+")'"
is+="><TBODY><TR><TD"+(index?" align='center'":" align='center'")+" style='padding:"+(index?"3px 4px 4px 4px":"3px 4px 5px 4px")+";font-family:"+(index?PLHFO_FLYOUT_FONT:PLHFO_MAIN_FONT)+";font-size:"+(index?"11px":"11px")+";font-weight:bold"+((index&&PLHFO_FLYOUT_ITALIC)||(!index&&PLHFO_MAIN_ITALIC)?";font-style:italic":"")+"' nowrap><FONT style='color:"+color+""+((index&&PLHFO_FLYOUT_UNDERLINE)||(!index&&PLHFO_MAIN_UNDERLINE)?";text-decoration:underline":"")+"'>"+txt+"</FONT></TD></TR></TBODY></TABLE></DIV>"
if(!index)is+="</TD>"
first_item=0}else if(type==2){curSecColor=st[i++]
var sepColor=st[i]
curColor=st[++i]
curMOColor=st[++i]
curMDColor=st[++i]
curSelColor=st[++i]
curBColor=st[++i]?st[i]:curSecColor
curBMOColor=st[++i]?st[i]:curSecColor
curBMDColor=st[++i]?st[i]:curSecColor
curBSelColor=st[++i]?st[i]:curSecColor
i++
curTxtColor=st[i++]
curTMOColor=st[i++]
curTMDColor=st[i++]
curTSelColor=st[i++]
if(index){is="</TD></TR></TBODY></TABLE>"
if(sepColor!='')is+="<TABLE border=0 cellpadding=0 cellspacing=0 width=100% bgcolor="+sepColor+"><TBODY><TR><TD height=1></TD></TR></TBODY></TABLE>"
is+="<TABLE width=100% border=0 cellpadding=2 cellspacing=0 bgcolor="+curSecColor+"><TBODY><TR><TD>"}else{is="</TR></TABLE></TD>"
if(sepColor!='')is+="<TD bgcolor="+sepColor+" width=1 style='font-size:1px'>&nbsp;</TD>"
is+="<TD"+(--sepCount?"":" width=100%")+" bgcolor="+curSecColor+"><TABLE"+(sepCount?"":" width=100%")+" border=0 cellpadding=2 cellspacing=0><TR>"}first_item=1}fos+=is}if(index)fos+="</TD>"
fos+="</TR></TBODY></TABLE>"
if(index)
fos+="</DIV>"+dss
else
fos+="</TD></TR></TBODY></TABLE>"
wraper.innerHTML=fos
if(index){document.body.appendChild(fo)
fo.upScrWrp=wraper.childNodes[0]
var upScr=fo.upScrWrp.getElementsByTagName('TABLE')[0]
fo.upArrow=fo.upScrWrp.getElementsByTagName('IMG')[0]
fo.upScBorder=wraper.childNodes[1]
var scrollArea=wraper.childNodes[2]
fo.dnScBorder=wraper.childNodes[3]
fo.dwnScrWrp=wraper.childNodes[4]
var dwnScr=fo.dwnScrWrp.getElementsByTagName('TABLE')[0]
fo.downArrow=fo.dwnScrWrp.getElementsByTagName('IMG')[0]
var attr=new Array('ncolor','mocolor','brdcolor','bmocolor')
for(var a=0;a<attr.length;a++){eval('upScr.'+attr[a]+'=upScr.getAttribute("'+attr[a]+'")')
eval('dwnScr.'+attr[a]+'=dwnScr.getAttribute("'+attr[a]+'")')}dwnScr.foid=upScr.foid=index}var items=wraper.getElementsByTagName('Table')