v5 questions - invisible menu item, and javascript in menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
joe
Beginner
Beginner
Posts: 7
Joined: Mon Aug 18, 2003 10:22 am
Contact:

v5 questions - invisible menu item, and javascript in menu

Post by joe »

hey there,

i went from version 3.4 (example in upper left of http://www.joe.to/strats.html)

to version 5 (upper left of http://www.joe.to/)

and 2 things aren't working:

1. the top menu item is black on black until i mouseover. however menu item 2 with the same settings appears as desired in brown. how do i get the top item to reappear?

2. i used to have a popup item in the menu. old version
,"detailed status","javascript:popUp(\"/status.php\")","#",,0
new version:
aI("text=detailed status;url=javascript:popUp(\/status.php\)")

however, it's just giving me an error.

thanks
joe
http://www.joe.to

here's the whole menu_data:

Code: Select all

_menuCloseDelay=500
_menuOpenDelay=150
_followSpeed=1            
_followRate=1                
_subOffsetTop=0              
_subOffsetLeft=-6            
_scrollAmount=3              
_scrollDelay=20      

with(Style1=new mm_style()){
bordercolor="black";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, helvetica, Tahoma, Arial";
fontsize="11";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="black";
offbgcolor="#none";
offcolor="black";
onbgcolor="#4F8EB6";
oncolor="black";
padding=5;
pagebgcolor="black";
pagecolor="black";
separatorcolor="black";
separatorsize="1";
subimage="a.gif";
subimagepadding="2";
}

with(Style2=new mm_style()){
bordercolor="black";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, helvetica, Tahoma, Arial";
fontsize="11";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="black";
offbgcolor="#464600";
offcolor="#DDDD99";
onbgcolor="#8A8A22";
oncolor="white";
padding=5;
pagebgcolor="#8A8A22";
pagecolor="white";
separatorcolor="black";
separatorsize="1";
subimage="a.gif";
subimagepadding="2";
}

with(Style3=new mm_style()){
bordercolor="black";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, helvetica, Tahoma, Arial";
fontsize="11";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="black";
offbgcolor="#004400";
offcolor="#99CC99";
onbgcolor="#337733";
oncolor="white";
padding=5;
pagebgcolor="black";
pagecolor="black";
separatorcolor="black";
separatorsize="1";
subimage="a.gif";
subimagepadding="2";
}

with(Style4=new mm_style()){
bordercolor="black";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, helvetica, Tahoma, Arial";
fontsize="11";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="black";
offbgcolor="#003366";
offcolor="#AABBDD";
onbgcolor="#336699";
oncolor="white";
padding=5;
pagebgcolor="black";
pagecolor="black";
separatorcolor="black";
separatorsize="1";
subimage="a.gif";
subimagepadding="2";
}

with(milonic=new menuname("Main Menu")){
style=Style1;
top=0;
left=0;
alwaysvisible=1;
overflow="scroll";
aI("text=joe.to stuff;showmenu=joe.to;;offcolor=DDDD99;offbgcolor=464600;oncolor=FFFFFF;onbgcolor=8A8A22")
aI("text=game servers;showmenu=servers;;offcolor=DDDD99;offbgcolor=464600;oncolor=FFFFFF;onbgcolor=8A8A22")
aI("text=forums;showmenu=forums;;offcolor=DDDD99;offbgcolor=464600;oncolor=FFFFFF;onbgcolor=8A8A22")
aI("text=map downloads;showmenu=downloads;;offcolor=DDDD99;offbgcolor=464600;oncolor=FFFFFF;onbgcolor=8A8A22")
aI("text=readme;showmenu=readme;;offcolor=99CC99;offbgcolor=004400;oncolor=FFFFFF;onbgcolor=337733")
aI("text=external links;showmenu=extern;;offcolor=99CC99;offbgcolor=004400;oncolor=FFFFFF;onbgcolor=337733")
aI("text=clan sites;showmenu=clan;;offcolor=AABBDD;offbgcolor=003366;oncolor=FFFFFF;onbgcolor=336699")
}

with(milonic=new menuname("joe.to")){
style=Style2;
overflow="scroll";
aI("text=cs articles;showmenu=cs")
aI("text=converted cs maps;showmenu=csmaps")
aI("text=chicken plugin;url=/chicken.html")
aI("text=ns stuff;url=/ns")
aI("text=about joe.to;url=/about.html")
aI("text=news;url=/")
}

with(milonic=new menuname("cs")){
style=Style2;
overflow="scroll";
aI("text=how to be 1337;url=/strats.html")
aI("text=weapons of CS;url=/weapons.html")
aI("text=adding spawns to maps;url=/32players.html")
aI("text=changing map types;url=/convert_type.html")
aI("text=find your WONID;url=/wonid")
}

with(milonic=new menuname("servers")){
style=Style2;
overflow="scroll";
aI("text=player statistics;showmenu=stats")
aI("text=detailed status;url=javascript:popUp(\/status.php\)")
aI("text=compact status;url=javascript:popUp2(\/quickstatus.php\)")
aI("text=web rcon;url=/rcon")
}

with(milonic=new menuname("forums")){
style=Style2;
overflow="scroll";
aI("text=index;url=http://forums.joe.to/")
aI("text=counter-strike;url=http://forums.joe.to/viewforum.php?f=2")
aI("text=natural selection;url=http://forums.joe.to/viewforum.php?f=46")
aI("text=conversation;url=http://forums.joe.to/index.php?c=3")
aI("text=nipper\'s forums;url=http://forums.joe.to/index.php?c=15")
}

with(milonic=new menuname("downloads")){
style=Style2;
overflow="scroll";
aI("text=forum links;url=http://www.joe.to/maps/")
aI("text=download links;url=http://cs.joe.to/maps/")
aI("text=lanmaniax;url=http://www.lanmaniax.com/")
aI("text=rd maps;url=http://rdmaps.vze.com/")
aI("text=super jer;url=http://www.superjer.com/")
}

with(milonic=new menuname("stats")){
style=Style2;
overflow="scroll";
aI("text=cs.joe.to weekly;url=http://cs.joe.to/stats/")
aI("text=cs.joe.to daily;url=http://cs.joe.to/statsdaily/")
aI("text=cs2.joe.to;url=http://cs2.joe.to:8081/")
}

with(milonic=new menuname("csmaps")){
style=Style2;
overflow="scroll";
aI("text=cs_siege as DE;url=/siege/")
aI("text=as_oilrig as DE;url=/oilrig/")
}

with(milonic=new menuname("readme")){
style=Style3;
overflow="scroll";
aI("text=david plotz in africa;url=/ethiopia.php")
aI("text=george bush's war on nature;url=/salon_1_10/")
aI("text=power steer;url=/power_steer/")
aI("text=quality of life;url=/monbiot_1974.php")
aI("text=a thanksgiving prayer;url=/thanksgiving.php")
aI("text=GOP election;url=/gop_election.php")
aI("text=tom petty is pissed;url=/tom_petty/")
aI("text=tom clancy;url=/tom_clancy/")
aI("text=nature is very tired;url=/nature.php")
}

with(milonic=new menuname("extern")){
style=Style3;
overflow="scroll";
aI("text=deeper meaning;showmenu=deeper")
aI("text=game tools;showmenu=exttools")
aI("text=game mods;showmenu=extmods")
aI("text=game info;showmenu=extinfo")
aI("text=nipper;url=http://nipper.cjb.net/")
aI("text=joe.to dnet team;url=http://stats.distributed.net/team/tmsummary.php?project_id=8&team=10018918")
aI("text=pr0n;url=http://fp.matings.plus.com/")
}

with(milonic=new menuname("deeper")){
style=Style3;
overflow="scroll";
aI("text=opendemocracy;url=http://www.opendemocracy.net/home/index.jsp")
aI("text=guardian news;url=http://www.guardian.co.uk/worldlatest/")
aI("text=monbiot.com;url=http://www.monbiot.com/")
aI("text=cursor.org;url=http://www.cursor.org/")
aI("text=yellow times;url=http://www.yellowtimes.org/index.php")
aI("text=guerilla news;url=http://www.guerrillanews.com/")
}

with(milonic=new menuname("exttools")){
style=Style3;
overflow="scroll";
aI("text=bugblatter plugins;url=http://www.ravenousbugblatterbeast.pwp.blueyonder.co.uk/")
aI("text=script or die plugins;url=http://www.scriptordie.com/index.php")
aI("text=krezerj plugins;url=http://www.krezerj.com/")
aI("text=AXN / BMX;url=/bmx/")
aI("text=logd;url=http://logd.sourceforge.net/")
aI("text=serverdoc;url=http://winsoft.net.au/~stephen/serverdoc/")
aI("text=console connector;url=http://hlcc.digitalrice.com/")
}

with(milonic=new menuname("extmods")){
style=Style3;
overflow="scroll";
aI("text=strogg war;url=http://www.planetquake.com/stroggwar/")
aI("text=natural selection;url=http://www.natural-selection.org/")
aI("text=boxwars;url=http://www.planethalflife.com/boxwar/")
aI("text=pirates¬ vikings & knights;url=;http://www.pvkmod.com/#")
aI("text=HL soccer - IOS;url=http://www.planethalflife.com/ios/manual/manual.htm")
}

with(milonic=new menuname("extinfo")){
style=Style3;
overflow="scroll";
aI("text=c-s report;url=http://www.summerblue.net/games/cs_report/")
aI("text=map overview tutorial;url=http://www.cg-dev.com/hltv/?section=tutorials&sub=overviews")
aI("text=half-lifehelp;url=http://half-life.gamehelp.com/info.html")
}

with(milonic=new menuname("clan")){
itemwidth=60;
style=Style4;
overflow="scroll";
aI("text=510;url=http://www.clan-510.org/")
aI("text=ACA;url=http://www.clanaca.com/")
aI("text=ae;url=http://www.clan-ae.org/v3.0/")
aI("text=GyZ;url=http://www.graveyardzombies.com/")
aI("text=i.e.;url=http://students.washington.edu/dclemons/main.htm")
aI("text=oe;url=http://oe.joe.to/")
aI("text=RUN;url=http://www.just-run.net/Main/main.html")
}


drawMenus();

User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

The black 'home' top menu item is here:

Code: Select all

pagecolor = "black";  // HOME BUTTON (pink)
pagebgcolor = "black";  // HOME BUTTON BACKGROUND (purple)
I'm not sure about your JS, but in the original, these were just after the font settings and the high3d and low3d parameters - they were originally pink and purple respectively.

I think yours are in the

Code: Select all

with(Style1=new mm_style()){ 
section, items 15 and 16
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

I implemented popups in V5 like this:

Code: Select all

jsa="It allows you to go to any machine in the school and it would be just like you were on the same computer every time.   It is also for security purposes.";
jsb="Press the CTRL, ALT and DELETE keys all together.  Enter your user name and password and then click OK.";

with(milonic=new menuname("faq")){_c=1
	top=90;
	borderwidth = 1;
	style = mainStyle;
	overfilter= myfilter;
	outfilter= dizzfilter;
	aI("text=Why do I have to 'log on'?;url=javascript:alert(jsa)");
	aI("text=How do I log onto a computer?;url=javascript:alert(jsb)");
It may be more basic than yours.

PS. Your website links you posted have ")" at the end of the URLs
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

You have conflicting styles and in certain places one is taking precidence over the other. You have your on and off colors and your on and off background colors set in your style1. You then tell your first menu to use this style, and then in each menu item, you override this with your on and off colors and your on and off bgcolors. Choose one way to defined how your colors will change, either through the style or individually. Use the documentation located at milonic.com to see how things effect your menu.

Regarding the javascript, since you are trying to call a popup on a page and you are passing in a string, you need quotes. Put SINGLE quotes around your page.php string, or put escaped double quotes around it. Since the blackslash should be inside these quotes, I dont think you need to escape it, but you may need to.
Best of luck!

And true, watch your URLs.... ;)
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply