Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    small navigation js help, links dont work

    im making a little navigation for my site and the links arent working,
    [CODE]
    var PLVFO_VERSION='2.0.8.0'
    var PLVFO_WIDTH=122
    var PLVFO_LAYER=false
    var PLVFO_X=0
    var PLVFO_Y=0
    var PLVFO_VALIGN=0
    var PLVFO_IS_FLOATING=false
    var PLVFO_MAIN_SET_HEIGHT=true
    var PLVFO_FLYOUT_SET_HEIGHT=true
    var PLVFO_MAIN_ITEM_HEIGHT=20
    var PLVFO_FLYOUT_ITEM_HEIGHT=19
    var PLVFO_ROLLOVER_HAS_BORDER=true
    var PLVFO_SHOW_SELECTED=false
    var PLVFO_STYLE=0
    var PLVFO_V_INTERVAL=0
    var PLVFO_CROSSFADE=1
    var PLVFO_FLYOUT_HEIGHT=140
    var PLVFO_FLYOUT_WIDTH=140
    var PLVFO_OVERLAP=true
    var PLVFO_Z_INDEX=50
    var PLVFO_PARENT_MO=true
    var PLVFO_HAS_SHADOW=true
    var PLVFO_OPEN_EVENT=0
    var PLVFO_OPEN_ANIMATION=2
    var PLVFO_CLOSE_ANIMATION=2
    var PLVFO_OPEN_SPEED=15
    var PLVFO_CLOSE_SPEED=15
    var PLVFO_SHOW_DELAY=400
    var PLVFO_AUTOCLOSE_DELAY=1000
    var PLVFO_BACKGROUND_COLOR='#000000'
    var PLVFO_SEPARATOR_COLOR='#2e005b'
    var PLVFO_NORMAL_COLOR='#382d4d'
    var PLVFO_MOUSEOVER_COLOR='#594778'
    var PLVFO_MOUSEDOWN_COLOR='#000000'
    var PLVFO_SELECTED_COLOR='#000000'
    var PLVFO_NORMAL_BORDER_COLOR='#000000'
    var PLVFO_MOUSEOVER_BORDER_COLOR='#000000'
    var PLVFO_MOUSEDOWN_BORDER_COLOR='#000000'
    var PLVFO_SELECTED_BORDER_COLOR='#000000'
    var PLVFO_TEXT_COLOR='#ffffff'
    var PLVFO_TEXT_MOUSEOVER_COLOR='#FFFFFF'
    var PLVFO_TEXT_MOUSEDOWN_COLOR='#FFFFFF'
    var PLVFO_TEXT_SELECTED_COLOR='#ffffff'
    var PLVFO_BORDER_COLOR='#000000'
    var PLVFO_FLYOUT_BORDER_COLOR='#000000'
    var PLVFO_MAIN_FONT='Geneva,Arial,Helvetica,sans-serif'
    var PLVFO_FLYOUT_FONT='Geneva,Arial,Helvetica,sans-serif'
    var PLVFO_MAIN_FONT_SIZE=11
    var PLVFO_FLYOUT_FONT_SIZE=11
    var PLVFO_MAIN_BOLD=false
    var PLVFO_FLYOUT_BOLD=false
    var PLVFO_MAIN_ITALIC=false
    var PLVFO_FLYOUT_ITALIC=false
    var PLVFO_MAIN_UNDERLINE=false
    var PLVFO_FLYOUT_UNDERLINE=false
    var PLVFO_ALIGN_MAIN_NORMAL=0
    var PLVFO_ALIGN_MAIN_HEADING=1
    var PLVFO_ALIGN_FO_NORMAL=0
    var PLVFO_ALIGN_FO_HEADING=1
    var PLVFO_RTL=false
    var PLVFO_SUB_ARROW="*fo_arrow_w.gif"
    var PLVFO_SUB_ARROW_ROLLOVER="*fo_arrow_w.gif"
    var PLVFO_UP_ARROW="*up_white.gif"
    var PLVFO_UP_ARROW_DISABLED="*up.gif"
    var PLVFO_DOWN_ARROW="*down_white.gif"
    var PLVFO_DOWN_ARROW_DISABLED="*down.gif"
    var PLVFO_SCROLL_DELAY=35
    var PLVFO_STREAM=new Array(0,10,'#000000','#2e005b','#382d4d','#594778','#000000','#000000','#000000','#000000','#000000' ,'#000000','#ffffff','#FFFFFF','#FFFFFF','#ffffff',0,0,"Home",'index.html','','','',0,0,0,0,"Profile ",'profile.html','','','',0,0,0,0,"Contact",'contact.html','','','',0,0,0,1,"Landscape",'landscape.h tml','','','',0,0,0,2,"Garden Center",'garden.html','','','',0,0,0,3,"Turf Establishment", 'turf.html','','','',0,0,0,4,"Erosion Control",'erosion.html','','','',0,0,0,5,"Irrigation",'', '','','',0,0,0,6,"John Deere/Ariens",'john.html','','','',0,0,0,7,"Snow Management",'snow.html','','','',0,0,1,3,'#000000',' #2e005b','#382d4d','#594778','#000000','#000000','#000000','#000000','#000000','#000000','#ffffff',' #FFFFFF','#FFFFFF','#ffffff',0,0,"Design",'design.html','','','',0,0,0,0,"Construction",'constructio n.html','','','',0,0,0,0,"Projects.html",'projects.html','','','',0,0,2,8,'#000000','#2e005b','#382d 4d','#594778','#000000','#000000','#000000','#000000','#000000','#000000','#ffffff','#FFFFFF','#FFFF FF','#ffffff',0,0,"Plant Material/Sod",'plantsod.html','','','',0,0,0,0,"Landscape Rock/Boulders",'rockboulders.html','','','',0,0,0,0,"Mulches/Topsoil",'mulches.html','','','',0,0,0,0,"Edging Systems/Fabrics",'edging.html','','','',0,0,0,0,"Hardscape Products",'hardscape.html','','','',0,0,0,0, "Outdoor Accessories",'outdoor.html','','','',0,0,0,0,"Delivery/Planting",'delivery.html','','','',0,0,0,0,"Information/Links",'infolinks.html','','','',0,0,3,3,'#000000','#2e005b','#382d4d','#594778','#000000','#000000' ,'#000000','#000000','#000000','#000000','#ffffff','#FFFFFF','#FFFFFF','#ffffff',0,0,"Sod",'sod.html ','','','',0,0,0,0,"Seed",'seed.html','','','',0,0,0,0,"Projects",'projects.html','','','',0,0,4,3,' #000000','#2e005b','#382d4d','#594778','#000000','#000000','#000000','#000000','#000000','#000000',' #ffffff','#FFFFFF','#FFFFFF','#ffffff',0,0,"Uses",'uses.html','','','',0,0,0,0,"Products",'eroproduc ts.html','','','',0,0,0,0,"Products",'eroproducts.html','','','',0,0,5,3,'#000000','#2e005b','#382d4 d','#594778','#000000','#000000','#000000','#000000','#000000','#000000','#ffffff','#FFFFFF','#FFFFF F','#ffffff',0,0,"Design/Installation",'irrdesign.html','','','',0,0,0,0,"Winterization",'winterization.html','','','',0,0,0, 0,"Parts",'irrparts.html','','','',0,0,6,4,'#000000','#2e005b','#382d4d','#594778','#000000','#00000 0','#000000','#000000','#000000','#000000','#ffffff','#FFFFFF','#FFFFFF','#ffffff',0,0,"Sales & amp; Service",'service.html','','','',0,0,0,0,"Parts & Accessories",'jdparts.html ','','','',0,0,0,0,"John Deere Products",'jdproducts.html','','','',0,0,0,0,"Ariens P roducts",'ariends.html','','','',0,0,7,3,'#000000','#2e005b','#382d4d','#594778','#000000','#000000' ,'#000000','#000000','#000000','#000000','#ffffff','#FFFFFF','#FFFFFF','#ffffff',0,0,"Snow Mana gement",'snowm.html','','','',0,0,0,0,"Ice Management",'icem.html','','','',0,0,0,0,"Request&nb sp;a Quote",'request.html','','','',0,0)
    var PLVFO_br
    var PLVFO_menu
    var PLVFO_flyouts=new Array
    var PLVFO_shownFoids=Array('0')
    var PLVFO_currentFoid=null
    var PLVFO_nextFoid=null
    var PLVFO_currentItem
    var PLVFO_timeout=null
    var PLVFO_interval=null
    var PLVFO_scroll_start=0
    var PLVFO_scroll_time=0
    var PLVFO_scroll_delta=0
    var PLVFO_preloads=new Array
    var PLVFO_plIndex=0
    var PLVFO_cur=null
    function PLVFO_setPathAdjustment(ID){var sc=document.getElementsByTagName('script')
    for(var i=0;i<sc.length;i++){if(sc[i].innerHTML.search(ID)>-1){var s=sc[i].src
    PLVFO_SCRIPT_LOCATION=s.substr(0, s.lastIndexOf('/')+1)}}}function PLVFO_adjustPath(path){if(path.charAt(0)!='*')return path
    return PLVFO_SCRIPT_LOCATION+path.substr(1)}function PLVFO_LinkScripts(aNewScripts){var scripts=document.getElementsByTagName('script')
    for(var i=0;i<aNewScripts.length;i++){var bScriptLinked=false
    for(var j=0;j<scripts.length;j++){if(aNewScripts[i]==scripts[j].src){bScriptLinked=true;exit}}if(!bScriptLinked)document.write("<script src='"+aNewScripts[i]+"' language='JavaScript'><\/script>")}}PLVFO_LinkScripts(new Array())
    function PLVFO_browser(){var ua=navigator.userAgent.toLowerCase()
    this.opera=ua.indexOf('opera')>=0
    this.safari=ua.indexOf('safari')>=0
    this.ie=document.all&&!this.opera
    this.macie=this.ie&&ua.indexOf('mac')>=0
    this.winie=this.ie&&!this.macie
    this.ieCanvas=(this.ie&&document.compatMode=="CSS1Compat")?document.documentElement:document.body
    return this}function PLVFO_onload(){setTimeout('PLVFO_start()',0)}function PLVFO_start(){PLVFO_setPathAdjustment('PLVFOMenu script')
    PLVFO_SUB_ARROW=PLVFO_adjustPath(PLVFO_SUB_ARROW)
    PLVFO_SUB_ARROW_ROLLOVER=PLVFO_adjustPath(PLVFO_SUB_ARROW_ROLLOVER)
    PLVFO_UP_ARROW=PLVFO_adjustPath(PLVFO_UP_ARROW)
    PLVFO_UP_ARROW_DISABLED=PLVFO_adjustPath(PLVFO_UP_ARROW_DISABLED)
    PLVFO_DOWN_ARROW=PLVFO_adjustPath(PLVFO_DOWN_ARROW)
    PLVFO_DOWN_ARROW_DISABLED=PLVFO_adjustPath(PLVFO_DOWN_ARROW_DISABLED)
    PLVFO_br=new PLVFO_browser()
    PLVFO_preload(PLVFO_SUB_ARROW_ROLLOVER)
    PLVFO_preload(PLVFO_UP_ARROW)
    PLVFO_preload(PLVFO_DOWN_ARROW_DISABLED)
    PLVFO_div=document.getElementById('PLVFODiv')
    PLVFO_menu=PLVFO_div
    PLVFO_flyouts[0]=PLVFO_menu
    var i=0, st=PLVFO_STREAM
    while(i<st.length){var index=st[i++]
    var n=st[i++]
    var curSecColor=st[i++]
    var curColor=st[++i]?st[i]:curSecColor
    var curMOColor=st[++i]?st[i]:curSecColor
    var curMDColor=st[++i]?st[i]:curSecColor
    var curSelColor=st[++i]
    var curBColor=st[++i]?st[i]:curSecColor
    var curBMOColor=st[++i]?st[i]:curSecColor
    var curBMDColor=st[++i]?st[i]:curSecColor
    var curBSelColor=st[++i]?st[i]:curSecColor
    i++
    var curTxtColor=st[i++]
    var curTMOColor=st[i++]
    var curTMDColor=st[i++]
    var curTSelColor=st[i++]
    var fo=PLVFO_flyouts[index]
    fo.obj='PLVFO_'+index
    eval(fo.obj+'=fo')
    fo.onmouseover=PLVFO_onmouseover
    fo.onmouseout=PLVFO_onmouseout
    var wraper
    var uss=""
    var dss=""
    if(fo.foid=index){var tbl=document.createElement('table')
    tbl.style.width='100%'
    fo.appendChild(tbl)
    fo.style.position='absolute'
    tbl.cellPadding=0
    tbl.cellSpacing=0
    tbl.style.border='solid 1px #000000'
    tbl.bgColor=curSecColor
    var cell=PLVFO_insertCell(tbl)
    uss="<TABLE border=0 cellpadding=0 cellspacing=0 width=100%><TBODY><TR><TD><TABLE cellpadding=0 cellspacing=0 width=100% class='PLVFO_UPSCROLLER' bgcolor='"+curColor+"' style='border:solid 1px "+curBColor+";cursor:hand' ncurcolor='"+curColor+"' ncolor='"+curColor+"' mocolor='"+curMOColor+"' brdcolor='"+curBColor+"' bmocolor='"+curBMOColor+"'><TBODY><TR><TD align='center' style='padding:2px 0px'><IMG src="+PLVFO_UP_ARROW_DISABLED+"></IMG></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><TABLE border=0 cellpadding=0 cellspacing=0 width=100%><TBODY><TR><TD style='background-color:"+PLVFO_FLYOUT_BORDER_COLOR+";height:1px'></TD></TR></TBODY></TABLE>"
    dss="<TABLE border=0 cellpadding=0 cellspacing=0 width=100%><TBODY><TR><TD style='background-color:"+PLVFO_FLYOUT_BORDER_COLOR+";height:1px'></TD></TR></TBODY></TABLE><TABLE border=0 cellpadding=0 cellspacing=0 width=100%><TBODY><TR><TD><TABLE cellpadding=0 cellspacing=0 width=100% class='PLVFO_DOWNSCROLLER' bgcolor='"+curColor+"' style='border:solid 1px "+curBColor+";cursor:hand' ncurcolor='"+curColor+"' ncolor='"+curColor+"' mocolor='"+curMOColor+"' brdcolor='"+curBColor+"' bmocolor='"+curBMOColor+"'><TBODY><TR><TD align='center' style='padding:2px 0px'><IMG src="+PLVFO_DOWN_ARROW+"></IMG></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>"
    wraper=cell}else{wraper=PLVFO_menu.getElementsByTagName('TD')[0]}var fos=""
    if(index)fos+=uss+"<DIV id='PLVFOSA'>"
    fos+="<TABLE width=100% border=0 cellpadding=0 cellspacing=0 bgcolor="+curSecColor+"><TBODY><TR><TD>"
    var first_item=1
    for(var j=0;j<n;j++){var type=st[i++]
    var is
    if(type==0){var cfoid=st[i++]
    var ref='http://www.sanslandscaping.com'
    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=PLVFO_adjustPath(st[i++])
    var imgo=PLVFO_adjustPath(st[i++])
    var imgh=st[i++]
    var imgw=st[i++]
    PLVFO_preload(imgo)
    var cur=PLVFO_isCurrent(ref)
    var sel=false
    is="<DIV style='margin:"+(first_item?"0":"0")+"px 0px 0px 0px'><TABLE border=0 cellpadding=0 cellspacing=0 class='PLVFOLink' ename='fi' foid="+index+" width=100% cfoid="+cfoid+" txt='"+txt+"' ref='"+ref+"' target='"+targ+"'"+(func?" func='"+func+"'":"")+""+(params?" params=\""+params+"\"":"")+" imgn='"+imgn+"' imgo='"+imgo+"' imgh="+imgh+" imgw="+imgw+" ncurcolor='"+curColor+"' 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=' border:solid 1px "+(sel?curBSelColor:curBColor)+";cursor:"+(sel?'default'PLVFO_br.ie?"hand":"pointer"))+"'><TBODY><TR>"
    if(imgn||imgo)is+="<TD><IMG class='PLVFOIcon' 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?"2px 6px 4px 6px":"3px 6px 4px 6px")+";font-family:"+(index?PLVFO_FLYOUT_FONT:PLVFO_MAIN_FONT)+";font-size:"+(index?"11px":"11px")+""+((index&&PLVFO_FLYOUT_BOLD)||(!index&&PLVFO_MAIN_BOLD)?";font-weight:bold":"")+""+((index&&PLVFO_FLYOUT_ITALIC)||(!index&&PLVFO_MAIN_ITALIC)?";font-style:italic":"")+"' nowrap><FONT style='color:"+(sel?curTSelColor:curTxtColor)+""+((index&&PLVFO_FLYOUT_UNDERLINE)||(!index&&PLVFO_MA IN_UNDERLINE)?";text-decoration:underline":"")+"'>"+txt+"</FONT></TD>"
    if(cfoid>0&&PLVFO_SUB_ARROW)is+="<TD><IMG class='PLVFOArrow' SRC='"+PLVFO_SUB_ARROW+"' HEIGHT='7px' WIDTH='7px'></IMG></TD>"
    is+="</TR></TBODY></TABLE></DIV>"
    first_item=0}else if(type==1){var txt=st[i++]
    var color=st[i++]
    var bgimg=PLVFO_adjustPath(st[i++])
    is="<DIV style='margin:"+(first_item?"0":"0")+"px 0px 0px 0px'><TABLE border=0 cellpadding=0 cellspacing=0 class='PLVFOHeading' ename='fi' width=100%"
    if(bgimg)is+=" style='background-image:url("+bgimg+")'"
    is+="><TBODY><TR><TD"+(index?" align='center'":" align='center'")+" style='padding:"+(index?"3px 4px 5px 4px":"4px 4px 5px 4px")+";font-family:"+(index?PLVFO_FLYOUT_FONT:PLVFO_MAIN_FONT)+";font-size:"+(index?"11px":"11px")+";font-weight:bold"+((index&&PLVFO_FLYOUT_ITALIC)||(!index&&PLVFO_MAIN_ITALIC)?";font-style:italic":"")+"' nowrap><FONT style='color:"+color+""+((index&&PLVFO_FLYOUT_UNDERLINE)||(!index&&PLVFO_MAIN_UNDERLINE)?";text-decoration:underline":"")+"'>"+txt+"</FONT></TD></TR></TBODY></TABLE></DIV>"
    first_item=0}else if(type==2){curSecColor=st[i++]
    var sepColor=st[i]
    curColor=st[++i]?st[i]:curSecColor
    curMOColor=st[++i]?st[i]:curSecColor
    curMDColor=st[++i]?st[i]:curSecColor
    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++]
    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=0 cellspacing=0 bgcolor="+curSecColor+"><TBODY><TR><TD>"
    first_item=1}fos+=is}fos+="</TD></TR></TBODY></TABLE>"
    if(index)fos+="</DIV>"+dss
    wraper.innerHTML=fos
    if(index){document.body.appendChild(fo)
    CODE]

  • #2
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    fo.upScrWrp=wraper.childNodes[0]
    var upScr=fo.upScrWrp.getElementsByTagName('TABLE')[0]
    upScr.obj='PLVFO_'+index+'_upScr'
    eval(upScr.obj+'=upScr')
    upScr.timeouts=new Array()
    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]
    dwnScr.obj='PLVFO_'+index+'_dwnScr'
    eval(dwnScr.obj+'=dwnScr')
    dwnScr.timeouts=new Array()
    fo.downArrow=fo.dwnScrWrp.getElementsByTagName('IMG')[0]
    var attr=new Array('ncurcolor','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')
    for(var k=0;k<items.length;k++){var e=items[k]
    if(e.className=='PLVFOLink'){var attr=new Array('ename','foid','cfoid','txt','ref','target','func','params','imgn','imgo','ncurcolor','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]+'")')
    e.obj='PLVFO_'+index+'_'+k
    eval(e.obj+'=e')
    e.timeouts=new Array()
    if(e.cur)PLVFO_cur=e
    e.onmousedown=PLVFO_onmousedown
    e.onmouseup=PLVFO_onmouseup
    e.co=0
    if(e.className=='PLVFOLink'&&e.cfoid>0){var cf=PLVFO_flyouts[e.cfoid]=document.createElement('DIV')
    cf.style.width='140px'
    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
    fo.shadows=new Array
    for(var s=1;s<=4;s++){fo.shadows[s]=document.createElement('div')
    document.body.appendChild(fo.shadows[s])}}}var items=document.getElementsByTagName('TABLE')
    for(var i=0;i<items.length;i++){var e=items[i]
    if(e.className=='PLVFOLink'||e.className=='PLVFOHeading'){if(e.className=='PLVFOLink')e.a=e.getEleme ntsByTagName('FONT')[0]
    var imgs=e.getElementsByTagName('IMG')
    for(var j=0;j<imgs.length;j++){if(imgs[j].className=='PLVFOIcon')e.img=imgs[j]
    if(imgs[j].className=='PLVFOArrow')e.fo_arrow=imgs[j]}}}}function PLVFO_onmouseover(evt){var e=PLVFO_getSource(evt)
    PLVFO_currentFoid=PLVFO_getFoid(this)
    PLVFO_nextFoid=null
    if(e){window.clearTimeout(PLVFO_timeout)
    PLVFO_currentItem=e
    PLVFO_nextFoid=e.cfoid
    if(e.className=='PLVFO_UPSCROLLER'||e.className=='PLVFO_DOWNSCROLLER'){PLVFO_showMO(e)
    PLVFO_scroll_start=PLVFO_flyouts[e.foid].scrollArea.scrollTop
    PLVFO_scroll_time=PLVFO_getTime()
    PLVFO_scroll_delta=e.className=='PLVFO_UPSCROLLER'?-0.15:0.15
    PLVFO_interval=window.setInterval('PLVFO_scroll()',PLVFO_SCROLL_DELAY)}else if(e.className=='PLVFOLink'){PLVFO_showMO(e)
    PLVFO_timeout=window.setTimeout('PLVFO_updateFlyouts()',PLVFO_SHOW_DELAY)}}}function PLVFO_onmouseout(evt){var e=PLVFO_getSource(evt)
    PLVFO_currentFoid=0
    PLVFO_nextFoid=null
    if(e&&((e.className=='PLVFO_UPSCROLLER')||(e.className=='PLVFO_DOWNSCROLLER')||(e.className=='PLVFOL ink'&&!e.co)))PLVFO_hideMO(e)
    window.clearInterval(PLVFO_interval)
    window.clearTimeout(PLVFO_timeout)
    PLVFO_timeout=window.setTimeout('PLVFO_updateFlyouts()',PLVFO_AUTOCLOSE_DELAY)}function PLVFO_onmousedown(evt){var e=PLVFO_getSource(evt)
    e.style.borderColor=e.bmdcolor
    PLVFO_chcolor(e,'ncurcolor','mdcolor','bgColor',0)
    e.a.style.color=e.tmdcolor}function PLVFO_onmouseup(evt){var e=PLVFO_getSource(evt)
    PLVFO_showMO(e)
    PLVFO_currentFoid=0
    PLVFO_nextFoid=null
    window.clearInterval(PLVFO_interval)
    window.clearTimeout(PLVFO_timeout)
    PLVFO_updateFlyouts()
    if(e.func)eval(e.func+'("PLVFOScript","'+e.ref+'",'+e.params+')')
    else{if(!e.ref)return
    if(e.target)window.open(e.ref,e.target)
    else location=e.ref}}function PLVFO_showMO(e){if(e.fo_arrow)e.fo_arrow.src=PLVFO_SUB_ARROW_ROLLOVER
    if(e.sel)return
    e.style.borderColor=e.bmocolor
    PLVFO_chcolor(e,'ncurcolor','mocolor','bgColor',0)
    if(e.className=='PLVFOLink'){e.a.style.color=e.tmocolor
    if(e.imgo){e.img.src=e.imgo
    e.img.style.visibility=''}}}function PLVFO_hideMO(e){if(e.fo_arrow)e.fo_arrow.src=PLVFO_SUB_ARROW
    if(e.sel)return
    e.style.borderColor=e.brdcolor
    PLVFO_chcolor(e,'ncurcolor','ncolor','bgColor',0)
    if(e.className=='PLVFOLink'){e.a.style.color=e.txtcolor
    if(e.imgn)e.img.src=e.imgn
    else if(e.imgo)e.img.style.visibility='hidden'}}function PLVFO_chcolor(e,scolor,ecolor,o,index){eval('var sc=e.'+scolor)
    eval('var ec=e.'+ecolor)
    if(PLVFO_br.safari){sc=sc==''?'#ffffff':sc
    ec=ec==''?'#ffffff':ec}if(sc==''||ec==''){eval('e.'+o+'=ec')
    return}var sr=sep(sc,1)
    var sg=sep(sc,3)
    var sb=sep(sc,5)
    var er=sep(ec,1)
    var eg=sep(ec,3)
    var eb=sep(ec,5)
    for(var i=0;i<=6;i++){var c=(Math.floor((sr*(6-i)+er*i)/6)<<16)+(Math.floor((sg*(6-i)+eg*i)/6)<<8)+Math.floor((sb*(6-i)+eb*i)/6)
    c=c.toString(16)
    while(c.length<6)c='0'+c
    window.clearTimeout(e.timeouts[i+index])
    e.timeouts[i+index]=window.setTimeout(e.obj+'.'+scolor+'='+e.obj+'.'+o+'="#'+c+'"',i*40)}function sep(c,n){return parseInt(c.substr(n,2),16)}}function PLVFO_updateFlyouts(){var i
    i=0
    while((PLVFO_currentFoid!=PLVFO_shownFoids[i])&&(i<PLVFO_shownFoids.length))i++
    if(i>=PLVFO_shownFoids.length)i=1
    else{i++
    if(PLVFO_nextFoid>0){if(PLVFO_shownFoids[i]!=PLVFO_nextFoid){if(PLVFO_shownFoids[i])PLVFO_removeFlyout(PLVFO_shownFoids[i])
    PLVFO_shownFoids[i]=PLVFO_nextFoid
    PLVFO_showFlyout()}i++}}for(var j=i;j<PLVFO_shownFoids.length;j++){PLVFO_removeFlyout(PLVFO_shownFoids[j])}PLVFO_shownFoids.length=i}function PLVFO_showFlyout(){var e=PLVFO_currentItem
    var fo=PLVFO_flyouts[e.cfoid]
    if(!fo)return
    e.co=1
    fo.open=true
    if(fo.intr)return
    fo.intr=true
    fo.pfoid=e.foid
    var docTop=PLVFO_br.ie?PLVFO_br.ieCanvas.scrollTop:window.pageYOffset
    var docLeft=PLVFO_br.ie?PLVFO_br.ieCanvas.scrollLeft:window.pageXOffset
    var docHeight=PLVFO_br.ie?PLVFO_br.ieCanvas.clientHeight:window.innerHeight
    var docWidth=PLVFO_br.ie?PLVFO_br.ieCanvas.offsetWidth:window.innerWidth
    var topLimit=docTop+2
    var bottomLimit=docTop+docHeight-6
    var foHeight=bottomLimit-topLimit
    if(foHeight>140)foHeight=140
    var show_scrollers='none'
    if(PLVFO_br.winie&&fo.scrollArea.baseHeight>foHeight){show_scrollers=''
    fo.scrollArea.style.overflow='hidden'
    if(foHeight<36)foHeight=36
    fo.scrollArea.style.height=foHeight-32+'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'
    fo.baseTop=PLVFO_getTop(e)-1
    if(e.foid>0&&PLVFO_br.ie)fo.baseTop-=PLVFO_flyouts[e.foid].scrollArea.scrollTop
    fo.baseLeft=PLVFO_getLeft(e)+parseInt(e.offsetWidth)-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:PLVFO_flyouts[e.foid].baseLeft+1)-fo.offsetWidth
    fo.style.top=fo.baseTop+'px'
    fo.style.left=fo.baseLeft+'px'
    for(var i=1;i<=4;i++){var ss=fo.shadows[i].style
    ss.position='absolute'
    ss.left=fo.baseLeft+i+'px'
    ss.top=fo.baseTop+i+'px'
    ss.width=fo.offsetWidth+'px'
    ss.height=fo.offsetHeight+'px'
    ss.backgroundColor=PLVFO_br.opera||PLVFO_br.safari||PLVFO_br.macie?'#B0B0B0':'#000000'
    ss.zIndex=50-i
    var opacity=5*(6-i)
    ss.filter='alpha(opacity='+opacity+')'
    ss.MozOpacity=opacity/100
    ss.display=''}fo.rollright=PLVFO_rollright
    fo.rollright(0)}function PLVFO_rollright(b){with(this){if(b>offsetWidth)b=offsetWidth
    for(var i=1;i<=4;i++){shadows[i].style.clip='rect(0 '+b+'px auto 0)'
    PLVFO_refreshNS(shadows[i])}style.clip='rect(0 '+b+'px auto 0)'
    PLVFO_refreshNS(this)
    if(b<offsetWidth){b+=15
    window.setTimeout(obj+'.rollright('+b+')',10)}else{intr=false
    if(!open)PLVFO_removeFlyout(foid)}}}function PLVFO_removeFlyout(foid){var fo=PLVFO_flyouts[foid]
    fo.pfi.co=0
    PLVFO_hideMO(fo.pfi)
    fo.open=false
    if(fo.intr)return
    fo.intr=true
    fo.rollleft=PLVFO_rollleft
    fo.rollleft(fo.offsetWidth)}function PLVFO_hideFlyout(fo){fo.scrollArea.scrollTop=0
    fo.style.display='none'
    fo.style.clip='rect(0 auto auto 0)'
    if(!PLVFO_br.macie){fo.upArrow.src=PLVFO_UP_ARROW_DISABLED
    fo.downArrow.src=PLVFO_DOWN_ARROW}for(var i=1;i<=4;i++){fo.shadows[i].style.display='none'
    fo.shadows[i].style.clip='rect(0 auto auto 0)'
    PLVFO_menu.style.display=''}fo.intr=false
    if(fo.open)PLVFO_showFlyout()}function PLVFO_rollleft(b){with(this){if(b<0)PLVFO_hideFlyout(this)
    else{style.clip='rect(0 '+b+'px auto 0)'
    PLVFO_refreshNS(this)
    for(var i=1;i<=4;i++){shadows[i].style.clip='rect(0 '+b+'px auto 0)'
    PLVFO_refreshNS(shadows[i])}b-=15
    window.setTimeout(obj+'.rollleft('+b+')',10)}}}function PLVFO_scroll(){var offset=PLVFO_scroll_start+(PLVFO_getTime()-PLVFO_scroll_time)*PLVFO_scroll_delta
    var fo=PLVFO_flyouts[PLVFO_currentItem.foid]
    fo.scrollArea.scrollTop=offset
    fo.upArrow.src=offset<=0? PLVFO_UP_ARROW_DISABLED:PLVFO_UP_ARROW
    fo.downArrow.src=offset>=fo.scrollArea.scrollHeight-fo.scrollArea.offsetHeight? PLVFO_DOWN_ARROW_DISABLED:PLVFO_DOWN_ARROW}function PLVFO_preload(img){if(!img)return
    PLVFO_preloads[PLVFO_plIndex]=new Image
    PLVFO_preloads[PLVFO_plIndex++].src=img}function PLVFO_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 PLVFO_getSource(evt){var e=PLVFO_br.ie?event.srcElement:evt.target
    while(e&&(e.tagName!='TABLE'))
    e=e.parentNode
    return e}function PLVFO_getFoid(e){while(e&&(!e.foid)){e=e.parentNode}return e?e.foid:0}function PLVFO_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(PLVFO_br.macie)top+=parseInt(document.body.currentStyle.marginTop)
    return top}function PLVFO_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(PLVFO_br.macie)left+=parseInt(document.body.currentStyle.marginLeft)
    return left}function PLVFO_getTime(){var time=new Date()
    return time.valueOf()}function PLVFO_refreshNS(e){if(PLVFO_br.ie)return
    with(e.style){var l=parseInt(left)
    left=(l-0.1)+'px'
    left=l+'px'}}function PLVFO_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}[/

  • #3
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i will offer a 10 dollar reward on paypal if anyone can help me with that script, or get me a key, its a dreamweaver extension called Plugin Lab Vertical flyout menu i will check back frequently, and i will credit you in the code for the help


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •