Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:53

Error on page


Poster: griggs
Dated: Monday October 2 2006 - 20:22:58 BST

I have to apologize, but I am totally illiterate when it comes to javascript. We had a webmaster who recently added 2 different javascripts from your site to ours. One of the problems we are having is that there is an error on each page, so I can only conclude that one of these has been incorrectly added.

The first is for a navigation bar. Both javascripts mentioned are downloaded to the server and referenced on our global header. I am confused as to the setup in the header. It is shown below.

Code:
<title>GVO header</title>
</head>
VLINK="black" ALINK="#000000">


</TD></tr>
</TABLE>
</table>


Why after the first script, would there be a close for a cell, row, and table, and for the 2nd a close table. Could this be causing the errors on the pages? I have read through some of the info on your site referring to the relative position and tables and wonder if this is set up correctly.


The one shown below, I don't even know what it does. Can you tell me?

Code:
_/*
DHTML Menu version 3.3.19
Written by Andy Woolley
Copyright 2002 (c) Milonic Solutions. All Rights Reserved.
Vist http://www.milonic.co.uk/menu or Email menu3 __at__ milonic.com
You may use this menu on your web site free of charge as long as you inform us of your intentions with your URL AND
You place a link to http://www.milonic.co.uk/menu AND ALL copyright notices remain in place in all files including your home page
Comercial licenses and support contracts are available on request.
This script featured on Dynamic Drive (http://www.dynamicdrive.com)
*/
Mtimer=setTimeout("sis()",9999);_d=document;smc=-1;MLoaded=0;
ns4=(_d.layers)?true:false
ns6=(navigator.userAgent.indexOf("Gecko")!=-1)?true:false
mac=(navigator.appVersion.indexOf("Mac")!=-1)?true:false
mac45=(navigator.appVersion.indexOf("MSIE 4.5")!=-1)?true:false
if(ns6||ns4)mac=false
opera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false
ns61=(parseInt(navigator.productSub)>=20010726)?true:false
ie4=(!_d.getElementById&&_d.all)?true:false;
konq=(navigator.userAgent.indexOf("Konqueror")!=-1)?true:false
mp=(ns6)?"pointer":"hand";oatop=0;aleft=0;oaleft=1;osy=0;oww=-1;owh=-1;frs=0;fre=0;nsmatch=0;
var a,am,oa,im,om,flta;hlarr=new Array();hlcnt=0;hll=0;Mname=new Array();parr=new Array();
gmi=20;ns6hif=0;timo=0;el=0;nshl=0;var omv=0;df=1;im=0;ofrac=0;omnu=0;ac=22;m=1;sy=1;ShM=0;ww=0;wh=0;var imar=new Array();mr=",";
while(_eval("window.menu"+m)){mr+="menu"+m+",";tmenu=_eval("menu"+m);Mname[m]=tmenu[0].toLowerCase();m++}
mr=mr+" ";mr=mr.split("\,");menus=mr.length-1;bgt="";if(!opera)bgt="Color";var cgm=0;
function gmobj(mtxt){if(_d.getElementById){m=_d.getElementById(mtxt)}else if(_d.all){m=_d.all[mtxt]}else if(_d.layers){m=_d.layers[mtxt]}return m;}
function gmstyle(mtxt){m=gmobj(mtxt);if(!ns4){if(m)m=m.style;}return m;}
function spos(gm,t_,l_,h_,w_){px="px";if(ns4){px="";gms=gm;if(w_!=null)gms.clip.width=w_;if(h_!=null)gms.clip.height=h_;}else if(opera){px="";gms=gm.style;if(w_!=null)gms.pixelWidth=w_;if(h_!=null)gms.pixelHeight=h_}else{gms=gm.style;if(w_!=null)gms.width=w_+px;if(h_!=null)gms.height=h_+px;}if(t_!=null)gms.top=t_+px;if(l_!=null)gms.left=l_+px}
function gpos(gm){if(ns4){t_=gm.top;l_=gm.left;h_=gm.clip.height;w_=gm.clip.width;}else if(opera){t_=gm.style.pixelTop;l_=gm.style.pixelLeft;h_=gm.style.pixelHeight;w_=gm.style.pixelWidth;}else if(ns6){t_=gm.offsetTop;l_=gm.offsetLeft;h_=gm.offsetHeight;w_=gm.offsetWidth}else{if(mac){topM=gm.offsetParent.topMargin;if(!topM)topM=0;leftM=gm.offsetParent.leftMargin;if(!leftM)leftM=0;t_=parseInt(topM)+gm.offsetTop;l_=parseInt(leftM)+gm.offsetLeft;}else{t_=gm.offsetTop;l_=gm.offsetLeft;}h_=gm.offsetHeight;w_=gm.offsetWidth;}if(konq){w_=parseInt(gm.style.width);h_=parseInt(gm.style.height);}var gpa=new Array();gpa[0]=t_;gpa[1]=l_;gpa[2]=h_;gpa[3]=w_;return(gpa)}
function getMouseXY(e){if(ns4||ns6){MouseX=e.pageX;MouseY=e.pageY;}else{MouseX=event.clientX;MouseY=event.clientY}if(!opera&&_d.all){MouseX=MouseX+_d.body.scrollLeft;MouseY=MouseY+_d.body.scrollTop;if(_d.compatMode=="CSS1Compat")MouseY=MouseY+sy}return true}
function parseLink(txt,what){txt=txt+";";lt="";if(what=="link"){if(txt.indexOf("&quot;")>0){lt=txt}else{sp=txt.indexOf(" ");lt=txt.substr(0,sp);}}else{sp=txt.indexOf(what)+what.length+1;if(sp>what.length+1){lt=txt.substr(sp,999);lt=lt.substr(0,lt.indexOf(";"))}}return lt}
function cHexColor(_c){if(_c.length==6){_c=_c.toUpperCase();x=0;while(x<6){hsh="#";if(_c.charCodeAt(x)>70){hsh="";x=6}x++}_c=hsh+_c}return _c}
function stch(ms){window.status=ms;return true}
function SDiv(nm,sh){if(ns4&&nm.indexOf(".")>0)tD=_eval(nm); else tD=gmstyle(nm);if(tD)if(sh)tD.visibility="visible";else tD.visibility="hidden"}
function close_el(){for(xa=hlarr.length-1;xa>=0;xa--){ti=hlarr[xa].split("_");tmenu=_eval(ti[0]);if(ns4){shl(ti[0],ti[1],'hide');}else{arg=gmobj("el"+ti[1]);arg.style.backgroundColor=ti[2];if(opera)arg.style.background=ti[2];arg.style.color=""+ti[3];}if(ti[0]==hll){if(ns4)shl(ti[0],hel,'show');return}}hlcnt=0;hlarr=new Array()}
function closeallmenus(){ShM=0;om="";hll="";close_el();if(ns4){omv.visibility="hide"}for(a=1;a<menus;a++){menu=_eval("menu"+a);if(menu[17]&&MLoaded){SDiv(menu[17],1)}if (menu[7]!=1){SDiv("menu"+a,0)}else{am=""}}}
function rep_img(){if(timo){timo.src=o_img};}
function popdn(){arg=popdn.arguments;if(arg[0]){if(arg[3].substr(0,5)!="show-"){if(ns4){shl(arg[2],arg[1],"hide")}else{arg[0].style.backgroundColor=arg[4];if(opera)arg[0].style.background=arg[4];arg[0].style.color=arg[5]}}else{if(ns4)omv=0;hlarr[hlcnt]=arg[2]+"_"+arg[1]+"_"+arg[4]+"_"+arg[5];hlcnt++;}menu=_eval(arg[2]);if(!menu[12]){Mtimer=setTimeout("closeallmenus()",timegap);}}else{Mtimer=setTimeout("closeallmenus()",timegap);}}
function dc(){if(nshl.indexOf("show-menu=")>-1)return;tr=ltarg.split("=");if(tr[1])parent.frames[tr[1]].location.href=nshl;else location.href=nshl;}
function getMenuByName(mn){mn=mn.toLowerCase();for(a=1;a<menus;a++){if(mn==Mname[a])mn=a}return mn;}
function getMenuItem(mn,item){for(a=1;a<mn;a++){menu=_eval("menu"+a);item=item+((menu.length-ac)/5)}item--;return item}
function sis(){for(a=1;a<imar.length;a++){tim=imar[a].split("_");if(tim[4]){tim[3]=tim[3]+"_"+tim[4]}menu=_eval(window.tim[3]);if(ns4){im=_d.layers[tim[3]].document.layers._eval("el"+tim[2]);imp=gpos(im);eln="";for(x=0;x<2;x++){imo=_d.layers[tim[3]].document.layers._eval(eln+"el"+tim[2]).document.layers[imar[a]];imop=gpos(imo);imL=imp[3]-(imop[3]);imT=(imp[2]/2)-(imop[2]/2);if(menu[13]=="left")imL=1;if(menu[13]=="center")imL=(imp[3]/2);eln="m";spos(imo,imT,imL,null,null);}}else{imo=gmobj(imar[a]);imop=gpos(imo);im=gmobj("el"+tim[2]);imp=gpos(im);if(menu[11]){imco=gpos(gmobj("hel"+tim[2]));imc=imco[1];}else {imc=0}imT=imp[0]+(imp[2]/2)-(imop[2]/2);imL=imc+imp[3]-(imop[3]);if(menu[13]=="left")imL=imc;if(menu[13]=="center")imL=imc+(imp[3]/2);if(ns6&&!ns61){nsC=gpos(gmobj(tim[3]));imT=imT-nsC[0];imL=imL-nsC[1]}spos(imo,imT,imL,null,null);}}}
function fixb(mnu){menu=_eval(mnu);ic=(menu.length-ac)/5;menu[21][2]=1;m42=menu[4]*2;mn=gmobj(mnu);if(ns4){if(menu[14]>-1){spos(gmobj("menuback"+mnu),null,null,mn.clip.height+(menu[14]*2),null)}if(menu[11]){mn.clip.width=mn.clip.width+menu[4]}return}mp=gpos(mn);el=menu[21][1];if(ns4){ml=_d.layers[mnu].document.layers._eval("el"+(el-1))}else{ml=gmobj("el"+(el-1))}mlp=gpos(ml);tw=null;th=null;if(menu[11]){lf=0;tc=0;for(y=el-ic;y<el;y++){tc++;ty=gmobj("el"+y);typ=gpos(ty);thy=gmobj("hel"+y);thyp=gpos(thy);if(mac&&!menu[3]){thy.style.width=1+"px";ty.style.width=thy.offsetWidth+menu[6][9]+"px";typ[3]=thy.offsetWidth}if(opera){ty.style.top=menu[4];if(lf==0)lf=menu[4];typ[2]=typ[2]+(m42);if(menu[3])spos(ty,null,0,null,typ[3]);}spos(thy,0,lf,typ[2],typ[3]);lfL=0;if(menu[ac-1+(tc*5)]>0)lfL=menu[ac-1+(tc*5)];lf=lf+typ[3]+lfL;}tw=lf-lfL;th=typ[2];if(_d.compatMode=="CSS1Compat"){}else{if(mac){ if(!_d.doctype){th=th+(m42);tw=tw+m42}}else if(_d.all&&!opera){tw=tw+(m42);th=th+(m42)}}if(opera)tw=tw+(menu[4])}else{if(ns6)tw=mp[3]-(menu[4]*4);if(opera)tw=mp[3]+(menu[6][9]*2)-(m42);}spos(mn,null,null,th,tw);if(ns6)th=th+m42;if(menu[14]>-1){spos(gmobj("menuback"+mnu),null,null,th+(menu[14]*2),null)}}   
function sm(v1){menu=_eval(v1);if(opera||ns6||menu[11])if(!menu[7]&&!menu[21][2])fixb(v1);ap=gmobj(v1);if(flta)if(ap.filters[0])ap.filters[0].Apply();gmi++;if(!ns4)aps=ap.style; else aps=ap;aps.zIndex=gmi;aps.visibility='visible';if(flta)if(ap.filters[0])ap.filters[0].Play();if(menu[17])SDiv(menu[17],0)}
function popup(mn,mpos){if(isNaN(mn)){for(a=1;a<menus;a++){if(mn==Mname[a])mn=a}}setpos();omv.visibility='hide';clearTimeout(Mtimer);closeallmenus();mtxt='menu'+mn;mi=gmstyle(mtxt);if(mpos){if(ns4)_d.captureEvents(Event.MOUSEMOVE);_d.onfiltered=getMouseXY;mn=gmobj(mtxt);ttop=MouseY+2;gp=gpos(mn);if((ttop+gp[2])>wh+sy)ttop=wh-gp[2]+sy;spos(mn,ttop,MouseX+2,null,null);}flta=0;if((_d.all&&_d.getElementById)&&!mac){ap=gmobj(mtxt);getflta(ap);}sm(mtxt);am=mn}
function shl(lyr,el,s){clearTimeout(Mtimer);mt=_d.layers[lyr].document.layers._eval("el"+el);omv.visibility="hide";menu=_eval(lyr);mt.visibility=s;omv=mt}
function popi(v1,lyr,el)
{
subfound=0;
nv1=v1
for(a=1;a<menus;a++)
{
  if(v1.substring(10,99)==Mname[a])
  {
   v1="show-menu"+a;
   subfound=1;
   a=999
  }
}
sel="smenu="+el+"#";
if(!om)om=lyr;
clearTimeout(Mtimer);
if(ns4){timo=_d.layers[lyr].document.layers._eval("el"+el).document.images[0]}else{timo=gmobj("im"+el)}
o_img="";

if (timo)
{
  o_img=timo.src;
  ima=o_img.split(".");
  enD=ima.length;
  if(ima[enD-2].indexOf("_over")==-1)ima[enD-2]=ima[enD-2]+"_over";
  nsrc="";
  for(eD=0;eD<enD;eD++){nsrc=nsrc+ima[eD]+"."}
  nsrc=nsrc.substring(0,nsrc.length-1);
  ta=om.split(",");
  NI1=new Image();
  NI1.src=nsrc;
  if(mac45){}else if(_d.all||ns6){if(NI1.complete)timo.src=nsrc}else{if(NI1.width>0)timo.src=nsrc}
}

container=eval(lyr);
if(subfound)
{
  v1=v1.substring(5,99);
  menu=_eval(v1);
  omnu=v1; 
  mi=gmobj(v1);
  gp=gpos(gmobj(lyr));
  h3="";
  if(container[11])h3="h";
  if(ns4){tel=gpos(_d.layers[lyr].document.layers._eval("el"+el))}else{tel=gpos(gmobj(h3+"el"+el))}
  np=gpos(mi);
  if(container[11])
  {
   if(!container[5])container[5]="";
   if(!opera&&_d.all&&!mac)gp[1]=gp[1]+container[4];
   if(ns6)
   {
    if(ns61)
    {
     gp[1]=gp[1]+container[4];
    }
    else
    {< BR>     gp[1]=-1;gp[0]=gp[0]-container[4]
    }
   }
   if(mac)gp[0]=gp[0]-container[4];
   if(container[5].indexOf("bottom")>=0)
   {
    tvar=container[1]
    if(!tvar)tvar=0;
    gp[0]=gp[0]-np[2]-tel[2]
   }
   if(tel[1]+gp[1]+np[3]>ww+sx){gp[1]=ww-np[3]-tel[1]+sx;}
   mtop=gp[0]+gp[2]-1;
   mleft=tel[1]+gp[1];
   if(container[15])mleft=mleft-np[3]+tel[3]+(container[4]*2)
   m1=menu[1];
   if(m1)
   {
    m1=m1+"";
    if(m1.indexOf("offset=")==0)
    {
    &nb sp;os=m1.substr(7,99);
     mtop=(parseInt(os)+mtop);
    }
    else
    {
      if(m1)mtop=parseInt(m1);
    }
   }
   m2=menu[2];
   if(m2){m2=m2+"";
   if(m2.indexOf("offset=")==0)
   {
    os=menu[2].substr(7,99);
    mleft=(parseInt(os)+mleft);
   }
   else
   {
    if(m2)mleft=m2;
   }
  }
  spos(mi,mtop,mleft-1,null,null);
  }
  else
  {
   if(!ns61&&ns6)tel[0]=tel[0]-gp[0];
   nt=tel[0]+gp[0]+sub offset_top;
   nl=gp[1]+tel[3]-suboffset_left;
   if((gp[1]+gp[3]+np[3])>=ww){nl=gp[1]-np[3]+suboffset_left}
   if(nt+np[2]>wh+sy){nt=wh-np[2]+sy;}
   if(menu[1]>=0)nt=menu[1]
   if(menu[2]>=0)nl=menu[2]
   
   spos(mi,nt,nl,null,null);
  }
  om+=","+v1;
  if(ShM==1)
  {
   sm(v1);
   if(!ns4)mi.style.visibility="visible";
  }
}
else
{
  frt=v1.indexOf(" ")
  if(frt>0&&v1.indexOf("show-menu=")>-1)
  {
   lt=parseLink(v1, "target");
   if(lt)
   {
    v1=v1.substring(10,frt);
    pf=parent[lt];
    pf.mn=pf.gmobj("menu"+pf.getMenuByName(v1));
    menu=_eval(lyr);
    gp=gpos(gmobj(lyr));
    h3="";
    if(container[11])h3="h";
    if(ns4){mp=gpos(_d.layers[lyr].document.layers._eval("el"+el))}else{mp=gpos(gmobj(h3+"el"+el))}
    if(menu[11])
    {     
     fTop=pf.sy;
     fLeft=gp[1]+mp[1]+Frames_Top_Offset;
    }
    else
    {
     fTop=pf.sy+gp[0]+mp[0];
&nb sp;   fLeft=100
    }
    pf.spos(pf.mn,fTop,fLeft-100,null,null);
    pf.popup(v1);
    closeallmenus();
   }
  }
  else if(frt>0)
  {
   lt=parseLink(v1, "target");
   if(lt)
   {
    v1=v1.substring(10,frt);
    close_el(v1)
    pf=parent[lt];
    if(pf)pf.closeallmenus();
   }
  }
 
}
ta=om.split(",")
strt=0;
for(a=0;a<ta.length;a++)
{
  if (ta[a]==v1)strt=0;
  if (strt)
  {
   if(ta[a])
   {
    hll=lyr;
    hel=el;
    close_el(el);
    tmnu=_eval(ta[a])
    if(tmnu[17]&&!menu[17])SDiv(tmnu[17],1)
    SDiv(ta[a],0)
   }
  ta[a]=""
  }
  if(ta[a]==lyr)strt=1;
}
mmenu=_eval(lyr)
if(mmenu[7]&&lyr!=ta[0])
{
  closeallmenus();
  if(v1==ta[ta.length-1])
  {
   if(ns4)shl(lyr,el,'show');
   tmnu=_eval(v1)
   if(tmnu[17])SDiv(tmnu[17],0)
   SDiv(v1,1)
  }
  if(nv1.indexOf("target=")>0)
  {
  }
   else
  {
   popi(nv1,lyr,el);
   return
  }
}
om=""
mdisp=0
for(a=0;a<ta.length;a++)
{
  if(ta[a]==lyr)frs=a
  if(ta[a]==v1)fre=a
  if (mdisp||(a>frs&&a<fre))
  {
   if (ta[a]&&ta[a]!=v1)
   {
    SDiv(ta[a],0)
    close_el(el);
    if(ns4)shl(lyr,el,'hide');
   }
  }
  else
  {
   if(ta[a])om+=ta[a]+",";
  }
  if (v1==ta[a])mdisp=1
}
}


function hl()

arg=hl.arguments;
hlnk=arg[1];
am=" "+a;am=am.length-1;subimg="";arg[0]+=""
if(ns6){dwd=arg[2][9]*2}else{dwd=0}
if(ns4){if(el==0){st="<style type=\"text/css\">A.m{text-decoration:none;}</style>";_d.write(st);oatop=atop;}else{mtl=_d.layers[omnu].document.layers._eval("el"+(el-1));
if(oatop==atop){atop+=mtl.clip.height}else{atop=menu[4];}oatop=atop}if(menu[11]){atop=menu[4];if(oaleft==aleft){aleft+=mtl.clip.width+arg[8]}else{aleft=menu[4];oaleft=aleft}oaleft=aleft}else{aleft=menu[4];}}
if(hlnk.substring(0,5)=="show-"){arg[1]=arg[1].toLowerCase();if(arg[7]==hlnk) if(arg[6])arg[7]=arg[6];else arg[7]="";hlnk="#";if (arg[6]+" "!="undefined ")hlnk=arg[6];}
pI="popi('"+arg[1]+"','"+arg[5]+"',"+el+");"
if(arg[1].substring(0,5)=="show-"&&(!menu[11]||menu[6][16])&&(menu[11]||menu[6][10])){im++;ims="im"+im+"_"+a+"_"+el+"_"+arg[5];ti=arg[2][10];if(menu[6][16]&&menu[11])ti=menu[6][16];if(ns4){sti="<img border=0 src=http://mail.yahoo.com/config/login?/"+ti+">";subimg="<layer id="+ims+">"+sti+"</layer>";}else{subimg="<img id="+ims+" style=\"position:absolute;\" onfiltered=\"gmobj('el"+el+"').onmouseover();\" onfiltered=\"gmobj('el"+el+"').onmouseout();\" border=0 src=http://mail.yahoo.com/config/login?/"+ti+">"};imar[im]=ims;}omp=mp;ofc=arg[2][0];ofb=arg[2][1];onfiltered=arg[2][2];onfiltered=arg[2][3];ltarg=" ";lOnfunc="";lOffunc="";ltype="";lalign=menu[8];if(!lalign)lalign="left"
if(hlnk.indexOf(" ")>0)
{
  _al=parseLink(hlnk,"align");if(_al)lalign=_al;
  ltarg=parseLink(hlnk,"target");
  if(ltarg)ltarg=" target="+ltarg
  lOnfunc=parseLink(hlnk,"onfunction")+";";
  lOffunc=parseLink(hlnk,"offfunction")+";";
  ltype=parseLink(hlnk,"type");
  tofc=parseLink(hlnk,"offfontcolor");if(tofc)(ofc=cHexColor(tofc))
  tofb=parseLink(hlnk,"offbackcolor");if(tofb)(ofb=cHexColor(tofb))
  tonc=parseLink(hlnk,"onfontcolor");if(tonc)(onfiltered=cHexColor(tonc))
  tonb=parseLink(hlnk,"onbackcolor");if(tonb)(onfiltered=cHexColor(tonb))
  hlnk=parseLink(hlnk,"link");
}

if(!ofb&&(mac||opera))ofb="transparent"

if(arg[7]+""=="undefined"){arg[7]=hlnk}
if(ltype=="form"){onfiltered=ofc;onfiltered=ofb;mp="default"}
if(ltype=="header"&&arg[2][17]){ofc=arg[2][17];ofb=arg[2][18];onfiltered=arg[2][17];onfiltered=arg[2][18];mp="default"}
smO="ShM=1;";smC="";
if( menu[16]==1){smO="";hlnk="_javascript:ShM=1;"+pI}
if(hlp[14])if(location.href.indexOf(hlnk)>=0&&(hlnk.substr(-1,1)!="/")){smc=el}
if(hlnk!="#"&&smc==el&&arg[2][14]){ofc=arg[2][14];ofb=arg[2][15];}
if(ltype=="form"||hlnk=="#"||ltype=="header"){mp="default";if(ns4){hlnk="<a ";}else{hlnk=" "}}else{if(ns4){hlnk="<a href=http://mail.yahoo.com/config/login?/\""+hlnk+"\" "+ltarg}else{hlnk="<a href=http://mail.yahoo.com/config/login?/\""+hlnk+"\" "+ltarg + " style='text-decoration:none;'>"}}
pd="popdn(this," + el + ", '" + arg[5] + "', '"+arg[1]+"', '"+ofb+"', '"+ofc+"');"
if(arg[0].indexOf("<img")>=0)
{
  if(menu[11]&&ns6)ns6hif=1
  ipos=arg[0].indexOf("<img");
  arg[0]=arg[0].substr(0,ipos+4)+" onfiltered=\"gmobj('el"+el+"').click()\" id=im"+el+" "+ arg[0].substr(ipos+5,900);
}
if(!isNaN(arg[2][5]))arg[2][5]+="px"
if(ns4){
  rsp=""
 
  tdwd=" width="+menu[3]
  if(lalign=="left")tdwd=""
  if (lalign=="right") rsp="<td height=-1></td>"
  ls="<table border=0 cellpadding="+arg[2][9]+" cellspacing=0><tr><td height=-1 align="+lalign+tdwd+">"+hlnk+" style='color:"
  le=";text-decoration:none;font-size:"+arg[2][5]+";font-weight:"+arg[2][7]+";font-family:"+arg[2][8]+"' onfiltered=\"status='"+arg[7]+"';\">"+arg[0]+"</a>"+subimg+"</td>"+rsp+"</tr></table></layer>"
  if(menu[11])nswid=menu[3]; else nswid=(menu[3]-(menu[4]*2))
  lv=" left="+aleft+" width="+nswid+" top="+atop
  nsofb="";if(ofb)nsofb=" BGColor="+ofb
  nsonb="";if(onb)nsonb=" BGColor="+onb
  mt="  mt+=" }else{
  mt="";
  if(menu[11]){bgc=hlp[4];if(hlp[11])bgc=hlp[12];
  mt+="<div id=hel"+el+" style=\"background-color:'"+ofb+"';width:"+(menu[3]-menu[4])+"px;position:absolute;top:0;left:"+dlft+";\">";dlft=dlft+menu[3]-(menu[4]*2)+menu[4]} 
  rsp=0;if (lalign=="right") rsp=7; 
  mt+=hlnk
  dw=(menu[3]-(2*menu[4]+dwd))
  if(dw+" "=="NaN "){dw=""}else{dw="width:"+dw+"px"}
  if(!menu[3]&&ie4)dw="width:1px";
  if(menu[11]&&opera){dw="position:absolute;"}
  if(isNaN(arg[2][9]))
  {
   padd=arg[2][9]
  }
  else
  {
   psp=arg[2][9]+"px "
   padd=psp+psp+psp+psp
  }
  if(menu[11]&&menu[3]>0)dw="position:absolute;width:"+menu[3]+"px"
  mt+="<div valign=top align="+lalign+" id=el"+el+" style=\""+dw+";padding:"+padd+";font-weight:"+arg[2][7]+";font-style:"+arg[2][6]+";font-family:"+arg[2][8]+";font-size:"+arg[2][5]+";color:"+ofc+";background-color:"+ofb+";\""
  mt+=" onfiltered=\"this.style.background"+bgt+"='"+onb+"';style.color='"+onc+"';this.style.cursor='"+mp+"';"+smO+"; "+pI+";"+lOnfunc+";return stch('"+arg[7]+"');\""
  mt+=" onfiltered=\"rep_img(); "+pd+";"+lOffunc+"; return stch('');\">"
  mt+=arg[0]+"</div>";
  mt+="</a>";if (menu[11]){mt+="</div>"}
  mt+=subimg 
}
mp=omp
_d.write(mt);el++;
}


function dmenu(mnu){
menu=_eval(mnu);
menu[21]=new Array()
if(menu[7]){parr[parr.length]=mnu.substr(4,3);}
atop=menu[4];
if(!atop)atop=0;
hlp=menu[6];
if(!menu[4])menu[4]=0;
if(ns4)eq="="; else eq=":"
for(z=0;z<19;z++)
{
  if(z==5)z=12;
  if(z==16)z++;
  if(hlp[z]&&hlp[z].charAt(0)!="#")hlp[z]=cHexColor(hlp[z]);
}
if(menu[14]>-1){if(_d.layers)_d.write(" if(el)ns6c=3;else ns6c=2;ns6w=0;if(menu[8]=="right"&&ns6)ns6w=7;
if (menu[3]<1)menu[3]="undefined"
if(ns4)
{
  thw=menu[3]
  if(menu[11])
  {
   ic=(menu.length-ac)/5;
   thw=(menu[3]*ic)-(menu[4]*ic)+menu[4]
  }
  bgc="";
  if(hlp[4])bgc="bgColor="+hlp[4]
  if (hlp[11])
  {
   bgc="bgColor="+hlp[13]
  }
  mt=" 
  if (hlp[11])
  {
   mt+="  }
  mt+=" }
else
{
  iedf="";if(!opera&&!mac&&_d.all&&menu[9])
  {
  iedf=" filter:";flt=menu[9].split("\;");for(fx=0;fx<flt.length;fx++){iedf+=" progid:DXImageTransform.Microsoft."+flt[fx]}}
  if(!hlp[4]&&(mac||opera))hlp[4]="transparent"
  if (hlp[11]){brd = "border:solid "+menu[4]+"px; border-left-color:"+hlp[12]+";border-top-color:"+hlp[12]+";border-bottom-color:"+hlp[13]+";border-right-color:"+hlp[13]+";"}else{brd = "border:solid "+menu[4]+"px; border-left-color:"+hlp[4]+";border-top-color:"+hlp[4]+";border-bottom-color:"+hlp[4]+";border-right-color:"+hlp[4]+";"}
  mt="<div id="+mnu+" style=\""+iedf+";z-index:19;visibility:hidden;"+brd+"position:absolute;background-Color:"+hlp[4]+";width:"+(menu[3]+ns6w)+"px;left:"+menu[2]+"px;top:"+menu[1]+"px;\">"
}

_d.write(mt)
x=0;
dlft=0
aleft=0;
for(b=ac;b<menu.length;b++)
{
  b=b+4
  if(menu[b-3]==""){menu[b-3]="#"}
  menu[b-3]=menu[b-3].replace(/\"/gi, "&quot;")
  if(menu[b-2])menu[b-2]=menu[b-2].replace(/\"/gi, "&quot;")
  hl(menu[b-4], menu[b-3],hlp,100,100,mnu,menu[b-2],menu[b-1],menu[b-5])
  txt="";
 
  sbgc=parseLink(menu[b-3],"separatorcolor");
  if(!sbgc)sbgc=parseLink(menu[b-2],"separatorcolor");
 
  if(ns4)
  {
   if (!menu[11])
   {
    if (menu[b]&&b<menu.length-1)
    {
     mt=_d.layers[mnu].document.layers._eval("el"+(el-1))
     x=atop+mt.clip.height
     //sbgc=parseLink(menu[b-3],"separatorcolor");
     if(sbgc)bgc="bgcolor="+sbgc;
     if(!hlp[11])x++
     txt="     if(hlp[11]){txt+="     }
    }
   }
  }
  else
  {   
   mbw=menu[b];bc=hlp[4];bl="";oc="";if(opera){bl="left:0;";oc="_d.getElementById('el"+el+"').style.background='"+hlp[1]+"';_d.getElementById('el"+el+"').style.color='"+hlp[0]+"'";if(opera&&mbw==0){mbw=1;bc=hlp[1];bl+="width:"+menu[3]-menu[4]+"px"}else{if(menu[4]==1)ocv=4;bl+="width:"+(menu[3]+(menu[6][9]*2)-menu[4])+"px"}}   
   if(b+1==menu.length)mbw=0;
   if(mbw>0)
   {
    if (!menu[11])
    {
     dwid=(menu[3]-(menu[4]*2))
     if((_d.all&&_d.compatMode=="CSS1Compat")||(mac&&_d.doctype))dwid=menu[3]+(menu[6][9]*2)-(menu[4]*2)
     if (hlp[11]&&mbw==1)
     {
      txt="<div onfiltered=\""+oc+"\" onfiltered=\"clearTimeout(Mtimer)\" style=\"position:relative\">"
      txt+="<div style=\"border-top:1px solid "+hlp[13]+"; background-color:"+hlp[12]+"; width:"+dwid+"px;position:absolute;clip:rect(0 100% 2px 0);height:1px;"+bl+"\">"
      txt+="</div>\n</div>"
     }
     else
     {
      //sbgc=parseLink(menu[b-3],"separatorcolor");
      //sbgc=parseLink(menu[b-3],"separatorcolor");
      if(!sbgc)sbgc=bc;
      txt="<div style=\"position:relative;\">";
      txt+="<div onfiltered=\"popdn();"+oc+"\" onfiltered=\"clearTimeout(Mtimer)\" style=\"background-color:"+sbgc+";width:"+dwid+"px;position:absolute;"
      txt+="clip:rect(0 100% "+mbw+"px 0);height:"+mbw+"px;"+bl+"\">"
      txt+="</div>"
      txt+="</div>"
     }
    }
   }
   
  }
  _d.write(txt);
  omnu=mnu;
  mt=""
}
oatop=-1;
if (ns4){mt="</layer>"}else{mt+="</div>\n</div>"}
_d.write(mt)
if (ns4)
{
  ml=gmobj(mnu)
  ml.clip.height += menu[4]
  ml3d=_d.layers[mnu].document.layers._eval(mnu+"3d")
  if (hlp[11])ml3d.clip.height=ml.clip.height
}
menu[21][1]=el
}
function checs(e){stopchec=1;for(a=1;a<menus;a++){menu=_eval("menu"+a);if(menu[10]>0){stopchec=0;if (df!=0||osy!=sy){mi=gmobj("menu"+a);tm=gpos(mi);mit=tm[0];if(isNaN(menu[1]))menu[1]=0;df=parseInt(menu[1])+sy-mit;nt=df/followspeed;of1=nt.toString();ofr=of1.split("\.");if(ofr[1]+" "=="undefined ")ofr[1]=0;ofrac=ofrac+parseInt(ofr[1]);if(mac&&parseInt(nt)==0){clearTimeout(pu);return;}if(ofrac>10){ofrac=ofrac-10;if(df>=0){nt++}else{nt--}}spos(mi,mit+nt,null,null,null)}else{clearTimeout(pu);return;}osy=sy}}if(stopchec){osy=sy;return}pu=setTimeout('checs()',followrate);}
function PlaceMenu(mn){if(ns4||ns6)pos="relative";else pos="absolute";mnt="<div id=\""+mn+"DIV\" style=\"width:1;height:1;position:"+pos+"\"></div>";menu=_eval("menu"+getMenuByName(mn));menu[21][0]=mn+"DIV";_d.write(mnt)}
function setpos(){for(a=1;a<menus;a++){menu=_eval("menu"+a);if(menu[21][0]){gm=gmobj(menu[21][0]);if(ns4){ntp=gm.pageY;nlp=gm.pageX}else{gp=gpos(gm);ntp=gp[0];nlp=gp[1]}mn=gmobj("menu"+a);mnp=gpos(mn);if(ntp==0)ntp=null;if(nlp==0)nlp=null;spos(mn,ntp,nlp,null,null);}else{if(!menu[5])menu[5]="";if (menu[5].indexOf("left")!=-1||menu[5].indexOf("center")!=-1||menu[5].indexOf("right")!=-1){mn=gmobj("menu"+a);mnp=gpos(mn);mnw=mnp[3];nlp=((ww-mnw)/2);if(menu[5].indexOf("right")!=-1)nlp=ww-mnw;if(menu[5].indexOf("left")!=-1)nlp=1;ts=menu[2]+"";if(ts.indexOf("offset=")==0){os=ts.substr(7,99);nlp=nlp+parseInt(os)}spos(mn,null,nlp,null,null)}if(menu[5].indexOf("top")!=-1||menu[5].indexOf("bottom")!=-1||menu[5].indexOf("middle")!=-1){mn=gmobj("menu"+a);mnp=gpos(mn);mnh=mnp[2];if(opera)mnh=mn.style.pixelHeight;nlp=wh-mnh;if(menu[5].indexOf("middle")!=-1)nlp=((wh-mnh)/2);if(menu[5].indexOf("top")!=-1)nlp=1;ts=menu[1]+"";if(ts.indexOf("offset=")==0){os=ts.substr(7,99);mnp=gpos(mn);nlp=nlp+parseInt(os)}if(menu[10]){menu[1]=nlp;nlp=nlp+sy}spos(mn,nlp,null,null,null)}}}}
function MScan(){sy=self.pageYOffset;sx=self.pageXOffset;if(opera){ww=window.innerWidth;wh=window.innerHeight}else if(_d.all){sy=_d.body.scrollTop;sx=_d.body.scrollLeft;if(sy==0&&!ie4&&!mac)sy=_d.documentElement.scrollTop;if(_d.compatMode=="CSS1Compat"){ww=document.documentElement.clientWidth;wh=document.documentElement.clientHeight}else{ww=_d.body.clientWidth;wh=_d.body.clientHeight}}else{if(ns4){ww=self.innerWidth-16;wh=self.innerHeight-17}else{ww=_d.body.offsetWidth;if(!ww)ww=self.innerWidth-15;ww--;wh=self.innerHeight;}}if(MLoaded>1&&oww>0&&(ns4||opera)&&(owh!=wh||oww!=ww)){if(nsmatch)location.reload()}if(MLoaded==1&&owh==wh&&oww==ww)nsmatch=1;if(opera)nsmatch=1;if(sy!=osy)checs();if(MLoaded==1||(owh!=wh||oww!=ww)){setpos();sis();MLoaded=2;}if(MLoaded){oww=ww;owh=wh;}mspu=setTimeout('MScan()',250)}
function Minit(){
el=0;df=-1;
if ((_d.all&&_d.getElementById)&&!mac) document.write(" for(x=0;x<parr.length;x++){popup(parr[x]);fixb("menu"+parr[x])}
MScan();
if(ns4)_d.captureEvents(Event.MOUSEMOVE);_d.onfiltered=getMouseXY;
}
for(a=1;a<menus;a++){dmenu("menu"+a)}
if(mac45)Oload=window.onLoad; else Oload=window.onload;
function mOL(){if(!ns61&&ns6||ns6hif){Minit()}MLoaded=1;if(Oload)Oload();MScan()}
if(!ns61&&ns6||ns6hif){window.onfiltered=mOL;}else{Minit();window.onfiltered=mOL;}


I appreciate you taking the time to look at this, and for any assistance you can give me.

Thanks in advance,

Sandy - Griggs Vacuums
http://www.griggsvacuums.com


Poster: Ruth
Dated: Monday October 2 2006 - 23:26:07 BST

Hi,

That menu is no longer supported. It has been out of any development for 3 years or so.

I suggest you update to Version 5, it is a much better menu, much easier to set up and has been developed to keep up with the new browsers and new capabilities being implemented on the web. We can provide help if you decide to do that.

There is also a data conversion for you menu_array from ver3 to ver5 on the web here.

Ruth


Poster: kevin3442
Dated: Monday October 2 2006 - 23:31:28 BST

Regarding the table-related tags... there's no telling why they might be like that unless we can see the larger context. However, it is certain that these are unrelated to the menu (even the old one).

If you could give us a link to the site, we would be able to address your questions more easily.

Cheers,

Kevin


Poster: Ruth
Dated: Monday October 2 2006 - 23:33:39 BST

Hey Kevin,

I missed the link first time also. It's at the bottom of the post. And I tried putting the new version on the page but can't get the page to work, it freezes my editor unless i remove the si.js file and the onload statement.

Ruth


Poster: Ruth
Dated: Monday October 2 2006 - 23:35:26 BST

oops, forgot to give you the converted file in case you wanted to try things, save you some time.

Code:
_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=40;
_subOffsetTop=10;
_subOffsetLeft=10;


with(style1=new mm_style()){
offcolor="#000080";
offbgcolor="#ccccff";
oncolor="#ffebdc";
onbgcolor="#4b0082";
bordercolor="#ccccff";
borderstyle="solid";
borderwidth=1;
fontsize=12;
fontstyle="italic";
fontweight="bold";
fontfamily="Verdana, Arial";
padding=3;
subimage="arrow.gif";
//high3dcolor="#66ffff";
//low3dcolor="#000099";
pagecolor="#800080";
pagebgcolor="#ccccff";
headercolor="#ffffff";
headerbgcolor="#000099";
separatorsize=1;
separatorcolor="#ccccff";
overfilter="Fade(overlap=1.00, duration=0.2);Alpha(style=0, opacity=88);Shadow(color='#000000', direction=135, strength=0)";
}
with(milonic=new menuname("mainmenu")){
style=style1;
alwaysvisible=1;
top=110;
align="center";
orientation="horizontal";
itemwidth=160;
menuwidth="100%";
aI("text=Home;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?;;status=Griggs Vacuums Home Page;separatorsize=1")
aI("text=Search;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=SRCH&Store_Code=GVO;;status=Search Griggs Vacuums;separatorsize=1")
aI("text=Products&nbsp;&nbsp;;showmenu=products;;separatorsize=1")
aI("text=Contact Us;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=_CON;;status=Contact Us;separatorsize=1")
aI("text=View Cart;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=BASK&Store_Code=GVO;;status=View Shopping Cart;separatorsize=1")
aI("text=Checkout;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=OINF&Store_Code=GVO;;status=Check Out;separatorsize=1")
}
with(milonic=new menuname("products")){
itemwidth=120;
style=style1;
aI("text=Upright Vacs;showmenu=uprights;status=Upright Vacuums;");
aI("text=Canisters Vacs;showmenu=canisters;status=Canister Vacuums;");
aI("text=Central Vacs;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/CENTRAL;status=Central Vacuums;");
aI("text=Lightweight Vacs;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/LIGHT;status=Lightweight Vacuums;");
aI("text=Shop Vacuums;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/SHOP;status=Shop Vacuums;");
aI("text=Bags¬Belts¬Acc;showmenu=bags;status=Bags¬Belts¬Acc;");
aI("text=Sewing Machines;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/SIMPLICITYCAT;status=Sewing Machines;");
aI("text=Cleaning Products;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/CLEANER;status=Cleaning Products;");
}

with(milonic=new menuname("uprights")){
itemwidth=170;
style=style1;
aI("text=True HEPA;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/HEPAUPRIGHTS;status=True HEPA Uprights;");
aI("text=Dyson;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=DYSONCAT;status=Dyson Uprights;");
aI("text=Lindhaus;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/LIND_U;status=Lindhaus Uprights;");
aI("text=Miele;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELEUP;status=Miele Uprights;");
aI("text=Eureka;showmenu=eureka;status=Eureka Uprights;");
aI("text=Sanitaire;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=SANITAIRECAT;status=Sanitaire Uprights;");
aI("text=Fuller Brush;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=FULLER;status=Fuller Brush Uprights;");
aI("text=Carpet Pro;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=CARPETPRO;status=Carpet Pro Uprights;");
aI("text=Commercial;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/COMMERCIAL_U;status=Commercial Uprights;");
}

with(milonic=new menuname("eureka")){
itemwidth=120;
style=style1;
aI("text=Precision;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=PREC_UPRIGHT;status=Precision;");
aI("text=Maxima;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=MAXIMA;status=Maxima;");
aI("text=High Performance;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=HP;status=High Performance;");
aI("text=4 Dimension;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=4d;status=4 Dimension;");
aI("text=Altima;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/ALTIMA;status=Altima;");
aI("text=The Boss;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/TB;status=The Boss;");
aI("text=Sanitaire Commercial;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=RED;status=Sanitaire Red Line;");
aI("text=Eureka Commercial;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/Commercial;status=Eureka Commercial;");
}

with(milonic=new menuname("canisters")){
itemwidth=120;
style=style1;
aI("text=True HEPA;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/HEPA_CANISTERS;status=True HEPA Canisters;");
aI("text=Miele;showmenu=miele;status=Miele Canisters;");
aI("text=Dyson;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=DC11;status=Dyson Canister;");
aI("text=Lindhaus;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/LIND_CANISTER;status=Lindhaus Canister;");
aI("text=Sanitaire Precision;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=PREC_CAN;status=Precision Canister;");
aI("text=Sanitaire System Pro;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=SANCAN;status=Sanitaire System Pro Canisters;");
aI("text=Mighty Mite;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MM;status=Mighty Mite Cansiters;");
aI("text=High Performance;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=HPCAN;status=High Performance Cansiters;");
}

with(milonic=new menuname("miele")){
itemwidth=170;
style=style1;
aI("text=S548/S558/S658;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELE_S548_S558_S658;status=Miele Canister;");
aI("text=S514;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELE_S514;status=Miele Canister;");
aI("text=S314;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELE_S314;status=Miele Canister;");
aI("text=S251;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELE_S251;status=Miele Canister;");
}

with(milonic=new menuname("bags")){
itemwidth=170;
style=style1;
aI("text=Miele;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELECAT;");
aI("text=Lindhaus;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/LINDHAUSCAT;");
aI("text=Eureka;url=http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/EUREKACAT;");
}

drawMenus();


Poster: kevin3442
Dated: Monday October 2 2006 - 23:35:32 BST

Ruth wrote:
Hey Kevin,

I missed the link first time also. It's at the bottom of the post. ...


Oops... thanks Ruth. Sorry about that Sandy.

Kevin


Poster: griggs
Dated: Monday October 2 2006 - 23:52:21 BST

Ruth and Kevin,

Thanks for your response. To make sure I am understanding this correctly, the code above will replace my menu array. Just copy and replace it? How about the issue with how it is referred to in my global header. Is this the way the code should read? I have tried adding cell, row and table starters and also removing the close tags. Either way, I lose the nav bar.:

<BODY bgcolor="#FFFFFF" TEXT="#000000" LINK="darkblue"
VLINK="black" ALINK="#000000">
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
</td></tr>
</TABLE>

<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>
</table>
<body>

Next, what does the code that I included before, do. Is that what you were referring to as being obsolete. I don't know if I should delete it or not.
Thanks again,
Sandy


Poster: griggs
Dated: Monday October 2 2006 - 23:58:41 BST

Here is the code in full for the menu bar. Doi I need to include the beginning, referring to the critical lines?:

//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.



////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#ccccff', Direction=135, Strength=0 )"
}
else
{
effect = "Shadow(color='#ccccff', Direction=135, Strength=0)" // Stop IE5.5 bug when using more than one filter
}


timegap=500 // The time delay for menus to remain visible
followspeed=5 // Follow Scrolling speed
followrate=40 // Follow Scrolling Rate
suboffset_top=10; // Sub menu offset Top position
suboffset_left=10; // Sub menu offset Left position

style1=[ // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"navy", // Mouse Off Font Color
"ccccff", // Mouse Off Background Color
"ffebdc", // Mouse On Font Color
"4b0082", // Mouse On Background Color
"ccccff", // Menu Border Color
12, // Font Size in pixels
"italic", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"Verdana, Arial", // Font Name
3, // Menu Item Padding
"https://host23.apollohosting.com/griggsvacuums/Merchant2/arrow.gif" , // Sub Menu Image (Leave this blank if not needed)
, // 3D Border & Separator bar
"66ffff", // 3D High Color
"000099", // 3D Low Color
"Purple", // Current Page Item Font Color (leave this blank to disable)
"ccccff", // Current Page Item Background Color (leave this blank to disable)
"https://host23.apollohosting.com/griggsvacuums/Merchant2/arrowdn.gif", // Top Bar image (Leave this blank to disable)
"ffffff", // Menu Header Font Color (Leave blank if headers are not needed)
"000099", // Menu Header Background Color (Leave blank if headers are not needed)
]



addmenu(menu=[ // This is the array that contains your menu properties and details
"mainmenu", // Menu Name - This is needed in order for the menu to be called
110, // Menu Top - The Top position of the menu in pixels
, // Menu Left - The Left position of the menu in pixels
160, // Menu Width - Menus width in pixels
, // Menu Border Width
, // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1, // Properties Array - this is set higher up, as above
1, // Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"center", // Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect, // Filter - Text variable for setting transitional effects on menu activation - see above for more info
, // Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, // Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
1, // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
, // Position of TOP sub image left:center:right
, // Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
, // Right To Left - Used in Hebrew for example. (1=on/0=off)
, // Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
, // ID of the div you want to hide on MouseOver (useful for hiding form elements)
, // Reserved for future use
, // Reserved for future use
, // Reserved for future use
,"Home","http://www.griggsvacuums.com/Merchant2/merchant.mv?",,"Griggs Vacuums Home Page",1
,"Search","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=SRCH&Store_Code=GVO",,"Search Griggs Vacuums",1
// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Products&nbsp;&nbsp;","show-menu=products",,"",1
,"Contact Us","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=_CON",,"Contact Us",1
// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"View Cart","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=BASK&Store_Code=GVO",,"View Shopping Cart",1
// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Checkout","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=OINF&Store_Code=GVO",,"Check Out",1
// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
])

addmenu(menu=["products",
,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Upright Vacs","show-menu=uprights",,"Upright Vacuums",1
,"Canisters Vacs","show-menu=canisters",,"Canister Vacuums",1
,"Central Vacs","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/CENTRAL",,"Central Vacuums",1
,"Lightweight Vacs","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/LIGHT",,"Lightweight Vacuums",1
,"Shop Vacuums","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/SHOP",,"Shop Vacuums",1

,"Bags,Belts,Acc","show-menu=bags",,"Bags,Belts,Acc",1
,"Sewing Machines","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/SIMPLICITYCAT",,"Sewing Machines",1
,"Cleaning Products","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/CLEANER",,"Cleaning Products",1
])

addmenu(menu=["uprights",
,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
,"True HEPA","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/HEPAUPRIGHTS",,"True HEPA Uprights",1

,"Dyson","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=DYSONCAT",,"Dyson Uprights",1
,"Lindhaus","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/LIND_U",,"Lindhaus Uprights",1
,"Miele","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELEUP",,"Miele Uprights",1
,"Eureka","show-menu=eureka",,"Eureka Uprights",1

,"Sanitaire","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=SANITAIRECAT",,"Sanitaire Uprights",1
,"Fuller Brush","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=FULLER",,"Fuller Brush Uprights",1
,"Carpet Pro","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=CARPETPRO",,"Carpet Pro Uprights",1


,"Commercial","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/COMMERCIAL_U",,"Commercial Uprights",1
])

addmenu(menu=["eureka",
,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Precision","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=PREC_UPRIGHT",,"Precision",1

,"Maxima","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=MAXIMA",,"Maxima",1

,"High Performance","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=HP",,"High Performance",1

,"4 Dimension","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=4d",,"4 Dimension",1

,"Altima","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/ALTIMA",,"Altima",1

,"The Boss","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/TB",,"The Boss",1
,"Sanitaire Commercial","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=RED",,"Sanitaire Red Line",1
,"Eureka Commercial","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/Commercial",,"Eureka Commercial",1
])


addmenu(menu=["canisters",
,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"True HEPA","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/HEPA_CANISTERS",,"True HEPA Canisters",1
,"Miele","show-menu=miele",,"Miele Canisters",1

,"Dyson","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=DC11",,"Dyson Canister",1
,"Lindhaus","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/LIND_CANISTER",,"Lindhaus Canister",1

,"Sanitaire Precision","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=PREC_CAN",,"Precision Canister",1

,"Sanitaire System Pro ","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=SANCAN",,"Sanitaire System Pro Canisters",1
,"Mighty Mite","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MM",,"Mighty Mite Cansiters",1
,"High Performance","http://www.griggsvacuums.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=GVO&Category_Code=HPCAN",,"High Performance Cansiters",1

])

addmenu(menu=["miele",
,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
,"S548/S558/S658","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELE_S548_S558_S658",,"Miele Canister",1
,"S514","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELE_S514",,"Miele Canister",1
,"S314","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELE_S314",,"Miele Canister",1
,"S251","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELE_S251",,"Miele Canister",1
])

addmenu(menu=["bags",
,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Miele","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/MIELECAT",,,1
,"Lindhaus","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/LINDHAUSCAT",,,1
,"Eureka","http://www.griggsvacuums.com/Merchant2/merchant.mv?page=GVO/CTGY/EUREKACAT",,,1
])

dumpmenus()


Poster: kevin3442
Dated: Tuesday October 3 2006 - 0:01:03 BST

Hi Sandy,

I see... i was confused by your first set of example code, because it was missing the script tags that load the old menu code:

Code:
<title>GVO header</title>
</head>
<BODY bgcolor="#FFFFFF" TEXT="#000000" LINK="darkblue"
VLINK="black" ALINK="#000000">
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
</td></tr>
</TABLE>

<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>
</table>


In the above, mmenu.js is the base code for the old version 3 Milonic Menu system (we're on version 5 now). The menu_array.js file contains the js code to implement your particular menu.

You're correct that these javascript files are loaded in a peculiar way within your html code. But there are many other peculiarities... e.g., 12 distinct <body> tags (with seven </body> tags), eight separate <head> sections, doctype defined within the body seven times , the same popup() window function defined four separate times, many table-related tags not paired... etc.

Despite all of these, and despite the fact that your version of the menu is old, the menu appears to be functioning fine. The error you're getting when the page loads is because the second <BODY> tag calls a javascript function with the onload event... ONLOAD="initiate()". But the initiate() function is not defined anywhere, which will give an "Object Expected" error in IE. You could remove ONLOAD="initiate()" from that <body> tag, and the error message should go away.

Cheers,

Kevin


Poster: Ruth
Dated: Tuesday October 3 2006 - 0:11:19 BST

Hi,

No. The code above is just a conversion for the menu_array file which is equivalent to the menu_data.js file in the new version. The new version will not, and cannot use the mmenu.js file. Instead it contains 4 files, 3 program files which all you do is call, and the data file, which is what you can edit. In order to use the new version, you'd have to download and purchase the new menu since that is a commercial site.


Check http://www.milonic.com/licensing.php for more information, it is very inexpensive given what you get and the license is yours forever once purchased, it also includes one full year of support, here in the forum or by email or support ticket direct with Milonic. You would probably only need the Professional license.

I do recommend that you upgrade since the new menu is designed to work better with the newer capabilities of the web and with css. For example with version 5 if you wished you could design the menu using all css.

It is very easy to design with this version once you look it over. For example, where in the old version you had a bunch of codes on the left and on the right the explanation of what they went to, and if you wanted to not include something you had to 'count' places etc to find where whatever was, in the new one all the code names are right there on the left with an = sign and you just put the code after it, for example:

Code:
offbgcolor="#ffffff";
offcolor="#000000";
onbgcolor="#000000";
oncolor="#ffffff";


If you want to take a quick look at how easy it is try the link right below my name to the forum for beginners, the first link. It has a 3 part explantion of styling a menu, very simple and a quick read.

Hope this helps.

Ruth