Please note, I am aware of the existence of the URL based opener, but
that's not what I'm looking for. Just in case anyone tries to tell me
to look at it.
I've got a 5.x menu (some of the code follows) I'm working on for a client
who's bought this thing. It works great so far! We're using the Amazon
style, with tab headers and the sub-menus coming down beneath.
What I'm wondering though, is if it's possible to prime/pre-select the a
menu when the page loads, so a given sub menu (i.e. ARTISTS) gets
drawn immediately, without having to have the user click it first. The item
we prime is arbitrary, so we can't pre-code the menudata file to contain
this selection, it has to be a run-time popping up of a sub-menu.
We're planning to use a bit of ASP to call that, in order to have the menu
appear to select the relevant tab for the current section of the site by
inserting some javascript into the onload() of the body tag.
Any advice? I've tried all the commands for popping up /
showing 'ARTISTS' using the methods reference and I must be missing
something, since nothing seemed to work.
Thanks in advice.
Regards,
-Steve Gray
-Cobalt Software
Code: Select all
with(menuStyle=new mm_style())
{
bgimage="";
bgimage="http://media.pulserated.com/_img/standards/menu/
silver_back.gif";
fontfamily="Arial, Helvetica, sans-serif";
fontsize="100%";
fontstyle="normal";
fontweight="bold";
itemheight=26;
itemwidth=80;
offcolor="#000000";
oncolor="#FFFFFF";
openonclick=1;
subimagepadding=2;
clickbgimage="http://media.pulserated.com/_img/standards/menu/
silver_back_on.gif";
}
with(submenuStyle=new mm_style())
{
styleid=1;
align="left";
bgimage="";
fontfamily="Arial, Helvetica, sans-serif";
fontsize="100%";
fontstyle="normal";
fontweight="bold";
itemheight=20;
offbgcolor="";
offcolor="#ffffff";
oncolor="#ffffff";
ondecoration="underline";
openonclick=1;
padding=4;
separatorimage="http://media.pulserated.com/_img/standards/menu/
tab_subback_sep.gif";
separatorsize=3;
}
with(milonic=new menuname("Main Menu"))
{
alwaysvisible=1;
openstyle="tab";
orientation="horizontal";
screenposition="";
style=menuStyle;
aI("align=center;keepalive=1;showmenu=MAIN;text= MAIN ;");
aI("align=center;keepalive=1;showmenu=ARTISTS;text= ARTISTS ;");
aI("align=center;keepalive=1;showmenu=RADIO;text= RADIO ;");
aI("align=center;keepalive=1;showmenu=BUSINESS;text= BUSINESS ;");
}
with(milonic=new menuname("MAIN"))
{
menualign="left";
menuwidth="50%";
orientation="horizontal";
screenposition="";
left="offset=10";
style=submenuStyle;
aI("text=HOME;url=index.aspx;");
aI("text=ABOUT US;url=content.aspx?page=about;");
aI("text=NEWS;url=news.aspx;");
aI("text=COOL STUFF;url=content.aspx?page=coolStuff;");
aI("text=LINKS;url=content.aspx?page=links;");
aI("text=CONTACT;url=content.aspx?page=contact;");
aI("separatorsize=4;");
}
with(milonic=new menuname("ARTISTS"))
{
menualign="left";
menuwidth="50%";
orientation="horizontal";
screenposition="";
left="offset=-70";
style=submenuStyle;
aI("text=SEARCH;url=search.aspx;");
aI("text=SUBMIT;url=content.aspx?page=submission;");
aI("text=ADVICE;url=content.aspx?page=ArtistAdvice;");
aI("text=GIG GUIDE;url=gigs.aspx;");
aI("text=HOT TRAX;url=content.aspx?page=hot_trax;");
aI("text=DOWNLOADS;url=storefront.aspx;");
aI("text=INTERVIEWS;url=content.aspx?page=interviews;");
aI("text=CHART;url=content.aspx?page=chart;");
aI("separatorsize=4;");
}
... yada yada....