I got the following problem: I am using the Milonic DHTML menu and structured my website as follows:
index.htm
menu_data.js
...
page1.htm
page1_1.htm <-- submenu 1 for page1 menu
page1_2.htm <-- submenu 2 for page1 menu
page2.htm
Now, when starting the site, the index.htm loads the menu and from there, you can navigate further.
Suppose I navigate to page1_1 (via menu -> page1 -> page1_1), then page1_1 is opened OK.
However, the menus page1 and page1_1 stay highlighted ??
(after clicking on another link, eg. page2, the highlighting disappears).
If I now click on Home (linking back to index.htm), then the Home menu stays highlighted ... etc. ...
Any idea what can cause this ?
The page1.htm, page1_1.htm, ... all display the same menu (derived from
menu_data.js).
Here is an extrace from menu_data.js:
Code: Select all
with(milonic=new menuname("My website")){
alwaysvisible=1;
left=10;
orientation="horizontal";
style=menuStyle;
top=10;
aI("text=Home;url=http://mywebsite/index.htm;status=Back to the homepage;");
aI("showmenu=Page1;text=Page1;");
aI("showmenu=Page2;text=Page2;");
aI("showmenu=Links;text=Links;");
}
with(milonic=new menuname("Page1")){
margin=3;
style=submenuStyle;
aI("text=Page1_1;url=http://mywebsite/page1_1.htm;");
aI("text=Page1_2;url=http://mywebsite/page1_2.htm;");
}
Code: Select all
<!-- ***** This is the section of code you need to paste into your web pages ***** -->
<script type="text/javascript" src="milonic_src.js"></script>
<noscript><a href="https://milonic.com/">DHTML Menu JavaScript Menu Powered by Milonic</a></noscript>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="menu_data.js"></script>
<!-- **** JavaScript Menu HTML Code -->
Thanks in advance.
Oh yes, some more properties of menu_data.js:
Code: Select all
with(menuStyle=new mm_style()){
styleid=1;
bordercolor="#8A867A";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="70%";
fontstyle="normal";
fontweight="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
image="bluedots.gif";
imagepadding=6;
offbgcolor="#ECE9D8";
offcolor="#000000";
onbgcolor="#C1D2EE";
oncolor="#000000";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
overimage="whitedots.gif";
padding=6;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#ffffff";
separatorsize=1;
subimage="arrow.gif";
subimagepadding=2;
}
with(submenuStyle=new mm_style()){
bordercolor="#8A867A";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="70%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#ECE9D8";
offcolor="#000000";
onbgcolor="#C1D2EE";
oncolor="#000000";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=4;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#758CC9";
separatorsize=1;
subimage="arrow.gif";
subimagepadding=2;
}
menu_sample40_ver5_752.zip