
23/01/2011, 12:44
|
| | Fecha de Ingreso: diciembre-2010 Ubicación: Perú
Mensajes: 21
Antigüedad: 14 años, 2 meses Puntos: 0 | |
Respuesta: Links PluginLab Continuación :$
Código:
for(var k=0;k<items.length;k++){var e=items[k]
if(e.className=='PLHFOLink'){var attr=new Array('ename','foid','cfoid','txt','ref','target','func','params','imgn','imgo','ncolor','mocolor','mdcolor','bmdcolor','bselcolor','brdcolor','bmocolor','bmdcolor','bselcolor','txtcolor','tmocolor','tmdcolor','cur','sel')
for(var a=0;a<attr.length;a++)
eval('e.'+attr[a]+'=e.getAttribute("'+attr[a]+'")')
if(e.cur)PLHFO_cur=e
e.onmousedown=PLHFO_onmousedown
e.onmouseup=PLHFO_onmouseup
e.co=0
if(e.className=='PLHFOLink'&&e.cfoid>0){var cf=PLHFO_flyouts[e.cfoid]=document.createElement('DIV')
cf.style.width='145px'
cf.style.display='none'
cf.pfi=e}}}if(index){fo.style.display=''
scrollArea.baseHeight=scrollArea.offsetHeight
fo.scrollArea=scrollArea
fo.style.zIndex=50
fo.style.display='none'
fo.open=fo.intr=false}}var items=document.getElementsByTagName('TABLE')
for(var i=0;i<items.length;i++){var e=items[i]
if(e.className=='PLHFOLink'||e.className=='PLHFOHeading'){if(e.className=='PLHFOLink')e.a=e.getElementsByTagName('FONT')[0]
var imgs=e.getElementsByTagName('IMG')
for(var j=0;j<imgs.length;j++){if(imgs[j].className=='PLHFOIcon')e.img=imgs[j]
if(imgs[j].className=='PLHFOArrow')e.fo_arrow=imgs[j]}}}}function PLHFO_onmouseover(evt){var e=PLHFO_getSource(evt)
PLHFO_currentFoid=PLHFO_getFoid(this)
PLHFO_nextFoid=null
if(e){window.clearTimeout(PLHFO_timeout)
PLHFO_currentItem=e
PLHFO_nextFoid=e.cfoid
if(e.className=='PLHFO_UPSCROLLER'||e.className=='PLHFO_DOWNSCROLLER'){PLHFO_showMO(e)
PLHFO_scroll_start=PLHFO_flyouts[e.foid].scrollArea.scrollTop
PLHFO_scroll_time=PLHFO_getTime()
PLHFO_scroll_delta=e.className=='PLHFO_UPSCROLLER'?-0.15:0.15
PLHFO_interval=window.setInterval('PLHFO_scroll()',PLHFO_SCROLL_DELAY)}else if(e.className=='PLHFOLink'){PLHFO_showMO(e)
PLHFO_timeout=window.setTimeout('PLHFO_updateFlyouts()',PLHFO_SHOW_DELAY)}}}function PLHFO_onmouseout(evt){var e=PLHFO_getSource(evt)
PLHFO_currentFoid=0
PLHFO_nextFoid=null
if(e&&((e.className=='PLHFO_UPSCROLLER')||(e.className=='PLHFO_DOWNSCROLLER')||(e.className=='PLHFOLink'&&!e.co)))PLHFO_hideMO(e)
window.clearInterval(PLHFO_interval)
window.clearTimeout(PLHFO_timeout)
PLHFO_timeout=window.setTimeout('PLHFO_updateFlyouts()',PLHFO_AUTOCLOSE_DELAY)}function PLHFO_onmousedown(evt){var e=PLHFO_getSource(evt)
e.bgColor=e.mdcolor
e.a.style.color=e.tmdcolor}function PLHFO_onmouseup(evt){var e=PLHFO_getSource(evt)
PLHFO_showMO(e)
PLHFO_currentFoid=0
PLHFO_nextFoid=null
window.clearInterval(PLHFO_interval)
window.clearTimeout(PLHFO_timeout)
PLHFO_updateFlyouts()
if(e.func)eval(e.func+'("PLHFOScript","'+e.ref+'",'+e.params+')')
else{if(!e.ref)return
if(e.target)window.open(e.ref,e.target)
else location=e.ref}}function PLHFO_showMO(e){if(e.fo_arrow)e.fo_arrow.src=e.foid==0?PLHFO_DD_ARROW_ROLLOVER:PLHFO_SUB_ARROW_ROLLOVER
if(e.sel)return
e.bgColor=e.mocolor
if(e.className=='PLHFOLink'){e.a.style.color=e.tmocolor
if(e.imgo){e.img.src=e.imgo
e.img.style.visibility=''}}}function PLHFO_hideMO(e){if(e.fo_arrow)e.fo_arrow.src=e.foid==0?PLHFO_DD_ARROW:PLHFO_SUB_ARROW
if(e.sel)return
e.bgColor=e.ncolor
if(e.className=='PLHFOLink'){e.a.style.color=e.txtcolor
if(e.imgn)e.img.src=e.imgn
else if(e.imgo)e.img.style.visibility='hidden'}}function PLHFO_updateFlyouts(){var i
i=0
while((PLHFO_currentFoid!=PLHFO_shownFoids[i])&&(i<PLHFO_shownFoids.length))i++
if(i>=PLHFO_shownFoids.length)i=1
else{i++
if(PLHFO_nextFoid>0){if(PLHFO_shownFoids[i]!=PLHFO_nextFoid){if(PLHFO_shownFoids[i])PLHFO_removeFlyout(PLHFO_shownFoids[i])
PLHFO_shownFoids[i]=PLHFO_nextFoid
PLHFO_showFlyout()}i++}}for(var j=i;j<PLHFO_shownFoids.length;j++){PLHFO_removeFlyout(PLHFO_shownFoids[j])}PLHFO_shownFoids.length=i}function PLHFO_showFlyout(){var e=PLHFO_currentItem
var fo=PLHFO_flyouts[e.cfoid]
if(!fo)return
e.co=1
fo.open=true
if(fo.intr)return
fo.pfoid=e.foid
var docTop=PLHFO_br.ie?PLHFO_br.ieCanvas.scrollTop:window.pageYOffset
var docLeft=PLHFO_br.ie?PLHFO_br.ieCanvas.scrollLeft:window.pageXOffset
var docHeight=PLHFO_br.ie?PLHFO_br.ieCanvas.clientHeight:window.innerHeight
var docWidth=PLHFO_br.ie?PLHFO_br.ieCanvas.offsetWidth:window.innerWidth
var topLimit=e.foid>0?docTop+2:PLHFO_getTop(PLHFO_menu)+parseInt(PLHFO_menu.offsetHeight)-1
var bottomLimit=docTop+docHeight-6
var foHeight=bottomLimit-topLimit
if(foHeight>180)foHeight=180
var show_scrollers='none'
if(PLHFO_br.winie&&fo.scrollArea.baseHeight>foHeight){show_scrollers=''
fo.scrollArea.style.overflow='hidden'
if(foHeight<40)foHeight=40
fo.scrollArea.style.height=foHeight-36+'px'}else{fo.scrollArea.style.height=(foHeight=fo.scrollArea.baseHeight)+'px'}fo.style.top='-10000px'
fo.style.left='-10000px'
fo.style.display=''
fo.style.width=fo.childNodes[0].offsetWidth+'px'
if(e.foid>0){fo.baseTop=PLHFO_getTop(e)-3
if(PLHFO_br.ie)fo.baseTop-=PLHFO_flyouts[e.foid].scrollArea.scrollTop
fo.baseLeft=PLHFO_getLeft(e)+parseInt(e.offsetWidth)+2}else{fo.baseTop=topLimit
fo.baseLeft=PLHFO_getLeft(e)+(PLHFO_br.ie?0:3)}if(fo.baseTop<topLimit)fo.baseTop=topLimit
if(foHeight+fo.baseTop>bottomLimit){var t=bottomLimit-foHeight
fo.baseTop=t<topLimit?topLimit:t}fo.upScrWrp.style.display=show_scrollers
fo.dwnScrWrp.style.display=show_scrollers
fo.upScBorder.style.display=show_scrollers
fo.dnScBorder.style.display=show_scrollers
if(fo.baseLeft+fo.offsetWidth+22-docLeft>docWidth)fo.baseLeft=(e.foid==0?docWidth-22+docLeft:PLHFO_flyouts[e.foid].baseLeft+1)-fo.offsetWidth
fo.style.top=fo.baseTop+'px'
fo.style.left=fo.baseLeft+'px'}function PLHFO_removeFlyout(foid){var fo=PLHFO_flyouts[foid]
fo.pfi.co=0
PLHFO_hideMO(fo.pfi)
fo.open=false
if(fo.intr)return
fo.intr=true
PLHFO_hideFlyout(fo)}function PLHFO_hideFlyout(fo){fo.scrollArea.scrollTop=0
fo.style.display='none'
fo.upArrow.src=PLHFO_UP_ARROW_DISABLED
fo.downArrow.src=PLHFO_DOWN_ARROW
fo.intr=false
if(fo.open)PLHFO_showFlyout()}function PLHFO_scroll(){var offset=PLHFO_scroll_start+(PLHFO_getTime()-PLHFO_scroll_time)*PLHFO_scroll_delta
var fo=PLHFO_flyouts[PLHFO_currentItem.foid]
fo.scrollArea.scrollTop=offset
fo.upArrow.src=offset<=0? PLHFO_UP_ARROW_DISABLED:PLHFO_UP_ARROW
fo.downArrow.src=offset>=fo.scrollArea.scrollHeight-fo.scrollArea.offsetHeight? PLHFO_DOWN_ARROW_DISABLED:PLHFO_DOWN_ARROW}function PLHFO_preload(img){if(!img)return
PLHFO_preloads[PLHFO_plIndex]=new Image
PLHFO_preloads[PLHFO_plIndex++].src=img}function PLHFO_insertCell(t){var tbody=document.createElement('tbody')
var row=document.createElement('TR')
var cell=document.createElement('TD')
t.appendChild(tbody)
tbody.appendChild(row)
row.appendChild(cell)
return cell}function PLHFO_getSource(evt){var e=PLHFO_br.ie?event.srcElement:evt.target
while(e&&(e.tagName!='TABLE'))
e=e.parentNode
return e}function PLHFO_getFoid(e){while(e&&(!e.foid)){e=e.parentNode}return e?e.foid:0}function PLHFO_getTop(e){var top=0
var abs=false
while(e&&(e.tagName!='BODY'||!abs)){if(e.style.position=='absolute')abs=true
top+=e.offsetTop
e=e.offsetParent}if(PLHFO_br.macie)top+=parseInt(document.body.currentStyle.marginTop)
return top}function PLHFO_getLeft(e){var left=0
var abs=false
while(e&&(e.tagName!='BODY'||!abs)){if(e.style.position=='absolute')abs=true
left+=e.offsetLeft
e=e.offsetParent}if(PLHFO_br.macie)left+=parseInt(document.body.currentStyle.marginLeft)
return left}function PLHFO_getTime(){var time=new Date()
return time.valueOf()}function PLHFO_refreshNS(e){if(PLHFO_br.ie)return
with(e.style){var l=parseInt(left)
left=(l-0.1)+'px'
left=l+'px'}}function PLHFO_isCurrent(r){if(!r)return false
var l=location.href
if(r.search('//')==-1)
r=l.replace(/[^\/]*$/,'')+r
do{var r1=r
r=r1.replace(/[^\/]*\/\.\.\//,'')}while(r!=r1)
return r==l}
Gracias ;) |