I need to be able to have every menu item have a arrow image displayed when the item
is clicked. However, I can not figure out how to do this.
Here is my code:
Code: Select all
_scrollAmount=5 // Used for Netscape 4 scrolling
_scrollDelay=10 // Used for Netscape 4 scrolling
_menuCloseDelay=500 // The delay for menus to remain visible on mouse off
_menuOpenDelay=150 // The delay for opening menus on mouse over
_subOffsetTop=0; // Sub menu offset Top position
_subOffsetLeft=0; // Sub menu offset Left position
Goverfilter="Alpha(style=1,opacity=25,finishOpacity=100,startX=0,finishX=100,startY=100,finishY=0);
Fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength=5)"
Goverfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135,
Strength=5)"
Goutfilter="randomdissolve(duration=0.3)"
Goutfilter=""
Goverfilter=""
AllMargin=0
treeOffset=0; // Used to set the offset of sub menus
singleMasterMenu=true // Informs the system to only have one menu open at a time
with(tstyle1=new mm_style()){
offbgcolor = "#3399CC";
onbgcolor = "#297AB8";
offcolor="#FFFFFF";
oncolor="#FFFFFF";
subimagepadding=0;
subimageposition="right";
bordercolor="black"
borderstyle="solid";
borderwidth=0;
fontsize="11px";
fontfamily="Trebuchet MS";
itemwidth=114;
itemheight=30;
rawcss="padding:2px 0px 2px 4px";
keepalive=true;
}
sub1Style=new copyOf(tstyle1)
sub1Style.offcolor = "#3399CC";
sub1Style.offbgcolor="#8EA2BB"
sub1Style.separatorcolor="#556E8C"
sub1Style.clickcolor="#3399CC"
sub2Style=new copyOf(tstyle1)
sub2Style.offcolor = "#000000";
sub2Style.offbgcolor="#D6DDE6"
sub2Style.separatorcolor="#8EA2BB"
tstyle1.onbgcolor = "#297AB8";
tstyle1.offbgcolor = "#3399CC";
sub3Style=new copyOf(tstyle1)
sub3Style.padding=4;
sub3Style.fontsize="10.5px";
with(new menuname("main Tree Menu")){
top=170
left=0
style = tstyle1;
alwaysvisible = 1;
menuheight=30;
menuwidth=114;
clickimage="mis_arrow.gif";
//margin=AllMargin
//position="relative"
aI("text=<b>Mission</b>;");
aI("text=<b>What We Believe</b>;");
aI("text=<b>Urban Missions</b>;showmenu=Urban;type=tree;");
aI("text=<b>Global Missions</b>;showmenu=Global;type=tree;");
aI("text=<b>Shoulder-to-Shoulder</b>;url=#;");
aI("text=Youth Missions;");
aI("text=Univ. Missions;");
}
with(new menuname("Urban")){
style = tstyle1;
margin=AllMargin
aI("text=Shoulder-to-Shoulder;url=");
aI("text=Urban ministries;url=#");
aI("text=Urban partners;url=#");
aI("text=Classes;url=#");
}
with(new menuname("Finance")){
style = sub1Style;
margin=AllMargin
aI("text=MILONIC;url=#");
aI("text=US Markets;showmenu=US Markets;type=tree;image=lblue_blip.gif;");
aI("text=Portfolio;url=#");
aI("text=Watch list;url=#");
aI("text=Price Alert;url=#");
aI("text=Sectors;url=#");
aI("text=Advanced Chart;url=#");
}
with(new menuname("US Markets")){
style = sub2Style;
margin=AllMargin
aI("text=Market Snapshot;url=#");
aI("text=Market Movers;url=#");
aI("text=Word on The Street;url=word.php");
aI("text=Gainers/Losers;url=#");
aI("text=Most Actives;url=#");
aI("text=News;url=#");
}
with(new menuname("Sports")){
style = sub1Style;
margin=AllMargin
aI("text=MLB;url=#");
aI("text=NBA;url=#");
aI("text=NFL;url=#");
aI("text=NHL;url=#");
aI("text=College Sports;url=#");
aI("text=Golf;url=#");
}
with(new menuname("Global")){
style = sub3Style;
margin=AllMargin
aI("text=Missionaries/ Partners;url=http://www.upc.org;target=mid;clickimage=mis_arrow.gif;");
aI("text=Task Force & Prayer Group;url=cable.php");
aI("text=Short-Term Missions;showmenu=shortterm");
}
with(new menuname("shortterm")){
style = tstyle1;
margin=AllMargin
aI("text=Classes/ Events/ Resources;url=#");
}
drawMenus()
Kevin