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:13

Help!Help! I can't get dropdown menu to work in a table


Poster: dd915
Dated: Tuesday August 24 2004 - 13:54:38 BST

I brand new to javascript and am struggling with the subject item on Internet Explorer.
I have changed menu Top, Menu Left and screen position values to located my pulldown menu where I want it on my webpage (and it works) but the menu location changes with the resolution, minimize screen function and text size function.
How do I make this part of the html code in a table so the position remains constant? Any help would be greatly appreciated. :roll:
I basically plagiarized one of Milonic's sample codes and mine is structured exactly as the code shown below:

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
"000000", // Menu Border Color
12, // Font Size in pixels
"normal", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"Verdana, Arial", // Font Name
4, // Menu Item Padding
"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)
"pink", // Current Page Item Background Color (leave this blank to disable)
"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)
"navy", // Menu Item Separator Color
]


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
20, // Menu Top - The Top position of the menu in pixels
200, // Menu Left - The Left position of the menu in pixels
, // Menu Width - Menus width in pixels
1, // 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)
"left", // Alignment - sets the menu elements text alignment, values valid here are: left, right or center
, // 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)
, // 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)
, // Background image for menu when BGColor set to transparent.
, // Scrollable Menu
, // Reserved for future use
,"Home","http://www.scriptbreaker.com",,"Back to the home page",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"News sites  ","show-menu=news",,"",1
,"Webmaster  ","show-menu=webmaster",,"",1
,"Downloads  ","show-menu=downloads",,"",1
,"Search  ","show-menu=search",,"",1
,"Other  ","show-menu=other",,"",1
])

addmenu(menu=["news",
,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"General","show-menu=generalnews",,,1
,"Technology","show-menu=technonews",,,1
])


addmenu(menu=["generalnews",
,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
,"CNN","http://www.cnn.com",,,0
,"MSNBC","http://www.msnbc.com",,,0
,"ABC News","http://www.abcnews.com",,,0
,"Vancouver Local News","show-menu=canadanews",,,0
,"BBC News","http://news.bbc.co.uk",,,0
])


Poster: John
Dated: Tuesday August 24 2004 - 14:34:45 BST

What you have posted is v3 menu code (hence the Topic move), which is no longer supported or developed. Please update to the current v5.43 at http://milonic.com/ for full support.


Poster: dd915
Dated: Tuesday August 24 2004 - 18:28:47 BST

John wrote:
What you have posted is v3 menu code (hence the Topic move), which is no longer supported or developed. Please update to the current v5.43 at http://milonic.com/ for full support.


I did as recommended using the conversion generator, but now I get the following error (and no pull down table appears) when I run my webpage, "mm_style is undefined". See below:


if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
effect="Fade(duration=0.8);Alpha(style=0,opacity=200);Shadow(color='#ff0000', Direction=135, Strength=5)"
}
else
{
effect="Shadow(color='#ff0000', Direction=135, Strength=5)"
}




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


with(style1=new mm_style()){
offcolor="#ffffff";
offbgcolor="#0000ff";
oncolor="#ffff00";
onbgcolor="#ff0000";
bordercolor="#ff0000";
borderstyle="solid";
borderwidth=1;
fontsize=16;
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Arial";
padding=3;
subimage="arrow.gif";
high3dcolor="#ffffff";
low3dcolor="#ffffff";
headercolor="#ffffff";
separatorcolor="white";
}

with(milonic=new menuname("mainmenu")){
top=1920;
left=219;
screenposition="center";
style=style1;
alwaysvisible=1;
alignment="center";
orientation="horizontal";
aI("text=Cargo    ;showmenu=cargo;;separatorsize=1")
aI("text=Fighter    ;showmenu=fighter;;separatorsize=1")
aI("text=Patrol    ;showmenu=patrol;;separatorsize=1")
aI("text=Reconnaissance    ;showmenu=reconnaissance;;separatorsize=1")
aI("text=Trainer    ;showmenu=trainer;;separatorsize=1")
aI("text=UAV    ;showmenu=unmanned air vehicles;;separatorsize=1")
}

with(style1=new mm_style()){
offcolor="#ffffff";
offbgcolor="#0000ff";
oncolor="#ffff00";
onbgcolor="#ff0000";
bordercolor="#ff0000";
borderstyle="solid";
borderwidth=1;
fontsize=9;
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Arial";
padding=2;
subimage="arrow.gif";
high3dcolor="#ffffff";
low3dcolor="#ffffff";
headercolor="#ffffff";
separatorcolor="none";
}

with(milonic=new menuname("cargo")){
itemwidth=120;
style=style1;
alignment="left";
aI("text=C-130J;showmenu=c130j;;separatorsize=1")
aI("text=C-130 B-H;showmenu=c130bh;;separatorsize=1")
aI("text=C-5;showmenu=c5;;separatorsize=1")
aI("text=C-27J;showmenu=c27j;;separatorsize=1")
}
drawMenus();

----------------------------------------------------------------
I also get multiple errors when I tried to use the generator on this portion:

Mtimer=setTimeout("rep_img()",99999);_d=document;smc=-1;MLoaded=0;ST=0;mspu=0;pu=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
loadWait=0;
inDragMode=0;
opera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false
ns61=(parseInt(navigator.productSub)>=20010726)?true:false
ie4=(!_d.getElementById&&_d.all)?true:false;ta=0;
konq=(navigator.userAgent.indexOf("Konqueror")!=-1)?true:false
IEDtD=0;if((_d.all&&_d.compatMode=="CSS1Compat")||(mac&&_d.doctype&&_d.doctype.name.indexOf(".dtd")!=-1))IEDtD=1;
mp=(ns6)?"pointer":"hand";oatop=0;aleft=0;oaleft=1;osy=0;oww=-1;owh=-1;frs=0;fre=0;nsmatch=0;okpgms=0;
var kel,a,_am,oa,im,om,flta;hlarr=new Array();hlcnt=0;hll=0;Mname=new Array();parr=new Array();SwapIM=new Array();keyar=new Array();keyarC=0;keynum=0;MenuHasFocus=1;
ParentMenu=0;pf=0;gmi=20;ns6hif=0;timo=0;el=0;nshl=0;var omv=0;df=1;im=0;ofrac=0;omnu=0;kmnu=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;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[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(IEDtD)MouseY=MouseY+sy}if(inDragMode){gm=gmobj(DragLayer);spos(gm,MouseY-DragY,MouseX-DragX);return false}return true}
function parseLink(txt,what){txt=txt+";";lt="";if(what=="link"){if(txt.indexOf(""")>0){lt=txt}else{sp=txt.indexOf(" ");lt=txt.substr(0,sp);}}else{sp=txt.indexOf(what)+what.length+1;if(sp>what.length){lt=txt.substr(sp,999);lt=lt.substr(0,lt.indexOf(";"))}}return lt}
function cHexColor(_c){return _c.match(/^[0-9a-f]{6,6}$/i) ? '#' + _c.toUpperCase() : _c;}
function stch(ms){window.status=ms;return true}
function fixForm(divname,show){mfrms=divname.split(";");for(oa=0;oa0)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.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(pf&&pf.MLoaded)pf.closeallmenus();if(ParentMenu){ParentMenu.close_el()}if(ns4){omv.visibility="hide"}for(a=1;a1)fixForm(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.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();",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;a0)lfL=menu[ac-1+(tc*5)];lf=lf+typ[3]+lfL;hsep=gmobj("hsep"+y);if(y0)ttop=MouseY+2; else ttop=gp[0];if((ttop+gp[2])>(wh+sy)){ttop=wh-gp[2]+sy;if(!mpos&&mpos>0){spos(mn,ttop,null,null,null);}}if(mpos){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)
{
if((loadWait&&MLoaded==0)||inDragMode)return;
kel=el;subfound=0;nv1=v1;
for(a=1;a=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];
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)
{
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;}
}
if(menu[5])setpos();else spos(mi,mtop,mleft-1,null,null);
}
else
{
if(!ns61&&ns6)tel[0]=tel[0]-gp[0];
nt=tel[0]+gp[0]+nl=gp[1]+tel[3]-onl=nl
if((gp[1]+gp[3]+np[3])>=ww||menu[15]){nl=gp[1]-np[3]+suboffset_left}
if(nl<0)nl=onl
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]
if(menu[5])setpos();else spos(mi,nt,nl,null,null);
}
om+=","+v1;
if(ShM==1){sm(v1);if(!ns4)mi.style.visibility="visible"}
if(menu[19])
{
gp=gpos(gmobj(v1));
gpc=gpos(gmobj("S"+v1))
tt=0;
if((gp[0]+gpc[2])>wh+sy)
{
spos(gmobj("S"+v1),null,null,(wh+sy)-gp[0]-10-2);
spos(gmobj(v1),null,null,(wh+sy)-gp[0]-10);
}
else
{
}
}
}
else
{
frt=v1.indexOf(" ")
lt=parseLink(v1, "sourceframe");
if(lt)pf=parent[lt];
if(frt>0&&v1.indexOf("show-menu=")>-1)
{
if(lt)
{
v1=v1.substring(10,frt);
if(pf.MLoaded)
{
close_el()
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_Left_Offset;
}
else
{
fTop=pf.sy+gp[0]+mp[0]+Frames_Top_Offset;
fLeft=100
}
tp=gpos(pf.mn)
if(fTop+tp[2]>(pf.sy+pf.wh))fTop=pf.wh-tp[2]+pf.sy
pf.spos(pf.mn,fTop,fLeft-100,null,null);
pf.popup(v1);
pf.ParentMenu=self
}
}
}
else if(frt>0)
{
if(lt)
{
if(pf)
{
v1=v1.substring(10,frt);
if(pf.MLoaded)pf.closeallmenus();
}
}
}
}
ta=om.split(",")
strt=0;
for(a=0;afrs&&a=0 && tt<(gp[2]-gp[0]))
{
mi.style.clip="rect("+tt+"px "+mip[3]+"px "+(tt+gp[2]-7)+"px 0px)"
ns6c=0
if((ns6&&!ns61)||mac)ns6c=1
spos(mi,-tt,null,tt+gp[2])
ST=setTimeout("scroll("+val+",'"+mnu+"')",30);
}
else
{
tt=tt+val
clearTimeout(ST)
}
clearTimeout(Mtimer);
}
function hl()
{
arg=hl.arguments;imgact="";hlnk=arg[1];if(!menu[8]&&menu[15])menu[8]="right";_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="";_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="";
subimg=""+sti+"";}else{
if(!parseLink(arg[1],"sourceframe"))imgact="onmouseover="gmobj('el"+el+"').onmouseover();" onmouseout="gmobj('el"+el+"').onmouseout();"";
subimg=""};imar[im]=ims;}omp=mp;ofc=arg[2][0];ofb=arg[2][1];onc=arg[2][2];onb=arg[2][3];ltarg=" ";lOnfunc="";lOffunc="";ltype="";lalign=menu[8];if(!lalign)lalign="left"
dragable=0;simg="";bimg="";sbimg="";sbgc="";sbgc=parseLink(hlnk,"separatorcolor");if(!sbgc)if(menu[6][19])sbgc=menu[6][19]; else sbgc=menu[6][4]
if(hlnk.indexOf(" ")>0){k2o=parseLink(hlnk,"keytoopen");if(k2o){keyar[keyarC]=k2o.toUpperCase()+";"+arg[1]+";"+arg[5]+";"+el;keyarC++;}
_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)(onc=cHexColor(tonc))
tonb=parseLink(hlnk,"onbackcolor");if(tonb)(onb=cHexColor(tonb))
simg=parseLink(hlnk,"swapimage");
bimg=parseLink(hlnk,"backimage");
sbimg=parseLink(hlnk,"overbackimage");
dragable=parseLink(hlnk,"dragable");
hlnk=parseLink(hlnk,"link");
if(hlnk.indexOf(" ")>0)hlnk=hlnk.substr(0,hlnk.indexOf(" "));
}
if(!ofb&&(mac||opera))ofb="transparent"
if(arg[7]+""=="undefined"){arg[7]=hlnk}
if(ltype=="form"){onc=ofc;onb=ofb;mp="default"}
if(ltype=="header"&&arg[2][17]){ofc=arg[2][17];ofb=arg[2][18];onc=arg[2][17];onb=arg[2][18];mp="default"};smO="ShM=1;";smC="";
if(menu[16]==1){smO="";if(!arg[1].indexOf("show-menu"))hlnk="javascript:ShM=1;"+pI}
if(hlp[14]){lhrar=location.href.split("/");lhrC1=lhrar[lhrar.length-1];lhrar=hlnk.split("/");lhrC2=lhrar[lhrar.length-1];if(lhrC1!=""&&lhrC1==lhrC2)smc=el;if(hlnk!="#"&&smc==el&&hlp[14]){ofc=arg[2][14];ofb=arg[2][15];}}
if(ltype=="form"||hlnk=="#"||ltype=="header"){mp="default";
if(ns4){hlnk=""}}
if(!ns4){if(bimg)ofb="url("+bimg+") "+ofb;if(sbimg){if(sbimg!="NONE"){onb="url("+sbimg+") "+onb;}}else{if(bimg)onb="url("+bimg+") "+onb;}}
pd="popdn(this," + el + ", '" + arg[5] + "', '"+arg[1]+"', '"+ofb+"', '"+ofc+"');"
if(arg[0].toLowerCase().indexOf("=0){if(menu[11]&&ns6)ns6hif=1;ipos=arg[0].toLowerCase().indexOf("

"+hlnk+" style='color:" le=";text-decoration:none;font-size:"+arg[2][5]+";font-weight:"+arg[2][7]+";font-family:"+arg[2][8]+"' onmouseover="status='"+arg[7]+"';">"+arg[0]+""+subimg+" "+rsp+"
" 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 tshl="shl('"+arg[5]+"',"+el+",'show');" if(ltype=="form")tshl="" mt=""+ls+ofc+le mt+=""+ls+onc+le }else{ mt=""; if(menu[11]){bgc=hlp[4];if(hlp[11])bgc=hlp[12]; mt+="";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(opera&&menu[3])dw="width:"+(menu[3]-(arg[2][9]*2)-(menu[4]*2))+"px;" if(!menu[3]&&ie4)dw="width:1px"; if(menu[11]&&opera){dw="position:absolute;"} if(!menu[11]&&IEDtD){dw="width:"+(menu[3]-menu[4]-(arg[2][9]*2))+"px;"} 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" hms="";if(menu[11])hms="\n
\n"; mt+="
" mt+=(arg[0])+"
"; mt+=""; if (menu[11])mt+=hms+""; 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);} if(ac==menu.length){menu[23]=""} 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<21;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]){m14=";"+menu[14];m14ar=m14.split(";");if(m14ar[2]){m14h=m14ar[1];m14w=m14ar[2].substr(6,99)+"px";menu[14]=m14h}else{m14h=m14ar[1];m14w="100%"} if(_d.layers)_d.write("");else_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) { bgc="";thw=menu[3]; if(menu[11]){ic=(menu.length-ac)/5;thw=(menu[3]*ic)-(menu[4]*ic)+menu[4]} if(hlp[4])bgc="bgColor="+hlp[4] if (hlp[11])bgc="bgColor="+hlp[13] m18="";if(menu[18])m18="background="+menu[18]; mt="" if (hlp[11])mt+="" mt+="" } else { m18="";if(menu[18]){m18="url("+menu[18]+ ") ";}iedf="";if(!opera&&!mac&&_d.all&&menu[9]){iedf=" filter:";flt=menu[9].split("\;");for(fx=0;fx0)fx=999}} 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 "+hlp[4]+";"; mt=""; scrof="" if(!ns6)scrof="overflow:hidden;"; dmleft=0; if(menu[2])dmleft=menu[2]; mt+="" if(menu[19]){mt+="
"} } _d.write(mt) x=0; dlft=0 aleft=0; if(menu[3]&&menu[11]&&(ns6||opera))menu[3]=menu[3]-(hlp[9]*2) for(b=ac;b" if(hlp[11]){txt+="" } } } else { if(sbgc)txt="" } } else { mbw=menu[b]; if(hlp[19])bc=hlp[19]; elsebc=hlp[4] if(b+1==menu.length)mbw=0; if(mbw>0) { if(!sbgc)sbgc=bc; if (!menu[11]) { dwid=(menu[3]-menu[4]*2) if(IEDtD)dwid=menu[3]-menu[4] if (hlp[11]&&mbw==1) { oc="";if(opera)oc="_d.getElementById('el"+el+"').style.background='"+hlp[1]+"';_d.getElementById('el"+el+"').style.color='"+hlp[0]+"'"; txt="
" txt+="
" txt+="
\n
" } else { txt="
"; txt+="" txt+="" txt+="
" } } } } _d.write(txt); omnu=mnu; mt="" } oatop=-1; if (ns4){mt=""}else{ mt+="
\n"; if(menu[19])mt+=""} _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;a0){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])-mit;if(sy+menu[10]>=menu[1])df=sy-mit+menu[10];nt=df/function PlaceMenu(mn){if(ns4||ns6)pos="relative";else pos="absolute";mnt="";menu=eval("menu"+getMenuByName(mn));menu[21][0]=mn+"DIV";_d.write(mnt)} function setpos(){for(a=1;a0){menu[1]=nlp;if(nlp>0)menu[10]=nlp;nlp=nlp+sy;if(menu[10]==nlp&&MLoaded<2)spos(mn,nlp,null,null,null)}else{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(opera&&(owh!=wh||oww!=ww)){if(MLoaded>1){location.reload()}MLoaded++;oww=ww;owh=wh;}if(sy!=osy)checs();setpos();} function mOL(){if(!ns61&&ns6||ns6hif){Minit()}MLoaded=1;if(Oload)Oload();if(loadWait||opera){for(x=0;xfunction getflta(ap){try{if(ap.filters){flta=1}}catch(e){}}<"+"/script>");for(x=0;x


Poster: John
Dated: Tuesday August 24 2004 - 19:09:49 BST

The ONLY item you run the generator on is your _data file. Do NOT run it on the code file(s) (that's why there is new v5 code!).

Also, always use the [code][/code] tags when posting code. You can see why in your post.

Give us a URL (as requested) so we can see what's happening.