Hello,
After having spend half of my day going through the post of this forum I finally decided to post my quest.
I'm trying to use your absolutely magnificent menu and make it deal with several sublevels. Every sublevel should open to the right of its parent.
Now the firslevel opens nicely on the right of the root level.
But the second level opens with the same X coordinate as the root level.
Now I've tried using openstyle but without success.
Some help would be appreciated.
Please check the link for the complete settings :
http://dev.saintcergue.ch/index.php?lang=en&subject=1
The menu is on the leftside of the page. Just ignore the
"Oups. This page seemed to have been removed"
Thanks in advance
Linux is very user-friendly, it's just very picky about whom its friends are.
Second level submenu right align problem
- James Bond
- Beginner
- Posts: 3
- Joined: Wed Dec 07, 2005 3:32 pm
Hi,
Really odd. I have reported this. It seems if you use menuStyle1 for both the main menu and the first submenu, you can then use menuStyle2 from that point on with no problem. I don't know why it shifts the menu over if you use the menuStyle2 in all the submenus.
I did find a workaround for now until whatever is causing it is fixed, though I could be missing something and you get a post with what is really causing the problem.
In your style sheet put the following class
Then in your menu data file, change your menu 2 to this
That will put the black border around each item in that menu which is the only difference between the two styles.
Ruth
Really odd. I have reported this. It seems if you use menuStyle1 for both the main menu and the first submenu, you can then use menuStyle2 from that point on with no problem. I don't know why it shifts the menu over if you use the menuStyle2 in all the submenus.
I did find a workaround for now until whatever is causing it is fixed, though I could be missing something and you get a post with what is really causing the problem.
In your style sheet put the following class
Code: Select all
.mybord{border:1px solid #000000;}
Code: Select all
with(milonic=new menuname("2")){
style=menuStyle1;
openstyle="up"
top="offset=1";
aI("status=My test;text=My test;url=http://dev.saintcergue.ch/index.php?subject=11;offclass=mybord;onclass=mybord;");
aI("showmenu=3;status=My test 2;text=My test 2;url=http://dev.saintcergue.ch/index.php?subject=12;offclass=mybord;onclass=mybord;");
}
Ruth
Hi again,
OK, it seems I was wrong on any problem in the menu. There seems to be something wrong in your menu_data.js file. I tried again from the beginning and it works. So, try code below on the page. Also, you might move the call for the program files to immediately after the body tag.
Ruth
OK, it seems I was wrong on any problem in the menu. There seems to be something wrong in your menu_data.js file. I tried again from the beginning and it works. So, try code below on the page. Also, you might move the call for the program files to immediately after the body tag.
Code: Select all
<script>
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=0;
_subOffsetLeft=0;
with(menuStyle1=new mm_style()){
itemwidth="155px";
itemheight="20px";
fontfamily="Verdana, Tahoma, Arial";
fontsize="11px";
fontweight="bold";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#CCCCCC";
offcolor="#000000";
onbgcolor="#663300";
oncolor="#996600";
padding=3;
pagebgcolor="#CCCCCC";
pagecolor="#black";
separatorcolor="#000000";
separatorsize=1;
}
menuStyle2=new copyOf(menuStyle1);
menuStyle2.itemwidth="200px";
menuStyle2.bordercolor="#000000";
menuStyle2.borderstyle="solid";
menuStyle2.borderwidth=1;
with(milonic=new menuname("2")){
style=menuStyle2;
openstyle="up";
top="offset=1";
aI("status=My test;text=My test;url=http://dev.saintcergue.ch/index.php?subject=11;");
aI("showmenu=3;status=My test 2;text=My test 2;url=http://dev.saintcergue.ch/index.php?subject=12;");
}
with(milonic=new menuname("3")){
style=menuStyle2;
openstyle="up";
top="offset=1";
aI("status=My test 2.1;text=My test 2.1;url=http://dev.saintcergue.ch/index.php?subject=13;");
}
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
style=menuStyle1;
position="relative";
aI("text=Home;url=http://dev.saintcergue.ch/index.php?subject=1;");
aI("showmenu=2;status=Access;text=Access;url=http://dev.saintcergue.ch/index.php?subject=8;");
}
drawMenus();
</script>
- James Bond
- Beginner
- Posts: 3
- Joined: Wed Dec 07, 2005 3:32 pm