Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:49
MENU IMAGE-Keep on status 2 indentify location on menu?
Poster: RMH
Dated: Thursday November 9 2006 - 20:53:27 GMT
btw, to look see, the site is http://www.AriasForHumanity.org
Does anyone have a suggestion on how to keep the check mark image permanantly on when on each respective page to indicate users current page location within the menu?
For example: When on index.htm (HOME) page the check mark would stay on in front of HOME. When clicking to WHO WE ARE and WHAT WE DO page the check mark would stay on in front of that menu item etc..etc..etc.
Currently there are only 2 active pages within the site to experiment with, index.htm (HOME) and about.htm (Whe We Are and What We Do) as the rest of the menu items temporarily point back to index.
Hope the objective here is clear. Thanks much for any feedback. Robert
Copy of collapse_data.js:
-----------------------------------------------------------------------------------
_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 on;y have one menu open at a time
with(tstyle1=new mm_style()){
offcolor = "#ffffff";
onbgcolor = "#000000";
oncolor = "#ffffff";
offbgcolor="#000000"
ondecoration="underline"
borderstyle = "solid";
subimage="white_arrow.gif"
onsubimage="white_arrow_down.gif"
bordercolor="#d7c786"
borderwidth=1
padding = 2
fontsize = "11px";
fontfamily = "arial, verdana, tahoma";
subimageposition="top right" ;
separatorsize=1
separatorcolor="#d7c786";
image="trans.gif"
subimagepadding=5
imagepadding=2
itemwidth=164
}
sub1Style=new copyOf(tstyle1)
sub1Style.offcolor = "#ffffff";
sub1Style.offbgcolor="#000000"
sub1Style.separatorcolor="#d7c786"
sub2Style=new copyOf(tstyle1)
sub2Style.offcolor = "#ffffff";
sub2Style.offbgcolor="#000000"
sub2Style.separatorcolor="#d7c786"
tstyle1.clickcolor="#ffffff"
tstyle1.clickbgcolor="#000000"
tstyle1.clickimage="white_arrow_down.gif"
tstyle1.clicksubimage="white_arrow_down.gif"
with(new menuname("main Tree Menu")){
top=185
left=10
style = tstyle1;
alwaysvisible = 1;
itemwidth=165
//margin=AllMargin
//position="relative"
aI("text=HOME;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Who We Are What We Do;url=about.htm;overimage=img/check_mark.jpg;");
aI("text=Contact Us;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Tour Menu;showmenu=Tours;type=tree;overimage=img/check_mark.jpg;");
aI("text=Travel Resources;showmenu=Resources;type=tree;overimage=img/check_mark.jpg;");
aI("text=Site Links;showmenu=SiteLinks;type=tree;overimage=img/check_mark.jpg;");
aI("text=Related Links;showmenu=RelatedLinks;type=tree;overimage=img/check_mark.jpg;");
aI("text=Educational Resources;showmenu=Education;type=tree;overimage=img/check_mark.jpg;");
aI("text=E-News;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=AFH Club;url=index.htm;overimage=img/check_mark.jpg;");
}
with(new menuname("Tours")){
style = sub1Style;
margin=AllMargin
aI("text=Tours by Category;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Tours by Destination;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Tours by Calendar Date;url=index.htm;overimage=img/check_mark.jpg;");
}
with(new menuname("Resources")){
style = sub1Style;
margin=AllMargin
aI("text=Destination Information;showmenu=By Continent;type=tree;overimage=img/check_mark.jpg;");
aI("text=Travel & Medical Insurance;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Passport & Visa Services;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Private Luggage Transfer;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Travel Concierge;url=index.htm;overimage=img/check_mark.jpg;");
}
with(new menuname("By Continent")){
style = sub2Style;
margin=AllMargin
aI("text=North America;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Europe;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Asia;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Africa;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Austrailia;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=South America;url=index.htm;overimage=img/check_mark.jpg;");
}
with(new menuname("SiteLinks")){
style = sub1Style;
margin=AllMargin
aI("text=Site Map;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Contact Us;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=About Us;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Privacy Promise;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Terms;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Copyright;url=index.htm;overimage=img/check_mark.jpg;");
}
with(new menuname("RelatedLinks")){
style = sub1Style;
margin=AllMargin
aI("text=Blogs;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Link to Us;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Useful Utilities;url=index.htm;overimage=img/check_mark.jpg;");
}
with(new menuname("Education")){
style = sub1Style;
margin=AllMargin
aI("text=Performers;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Composers;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Destinations;url=index.htm;overimage=img/check_mark.jpg;");
}
with(new menuname("Flash")){
style = sub1Style;
margin=AllMargin
aI("text=Tours;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Destinations;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Hotels;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Transportation;url=index.htm;overimage=img/check_mark.jpg;");
aI("text=Photo Gallery;url=index.htm;overimage=img/check_mark.jpg;");
}
with(new menuname("Icons")){
style = sub1Style;
margin=AllMargin
aI("text=Ballet-Dance;url=../swf/dancer.swf;target=I4;");
aI("text=Culinary;url=../swf/chef.swf;target=I4;");
aI("text=Fine Arts;url=../swf/artist.swf;target=I4;");
aI("text=Jazz;url=../swf/saxman2.swf;target=I4;");
aI("text=Opera;url=../swf/opera_singer.swf;target=I4;");
aI("text=Performing Arts;url=../swf/charlie.swf;target=I4;");
aI("text=Symphony;url=../swf/conductor2.swf;target=I4;");
}
drawMenus()