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:30
Submenu Position Problem in Firefox
Poster: bbaxter
Dated: Friday August 17 2007 - 18:42:49 BST
I'm having a problem with the submenu position of a vertical menu only in firefox, IE and safari both work fine.
The submenu appears to open up in the correct position, but if you scroll down, go back up to the same sub menu, it opens up above it's parent, and is impossible to select (as you can't move the cursor from it's parent over to it)
I tried updating to the new version (I just copied the newest milonic_src.js over the older version) but this didn't have any effect. Any ideas?
Here's the menudata.js file, there's a lot of code though, but maybe it helps.
with(billcontextstyle=new mm_style()){
bordercolor="#000000";
borderstyle="solid";
borderwidth=1;
fontsize=10;
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Arial";
headerbgcolor="#ffffff";
headercolor="#000000";
offcolor="#484848";
offbgcolor="#CCCC99";
oncolor="#484848";
onbgcolor="#E6E6CC";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=95);Shadow(color=#777777', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#FFFFFF";
pagecolor="black";
separatorcolor="#FFFFFF";
separatorsize=1;
subimage="http://bams.com/images/menu_arrow.gif";
subimagepadding=2;
}
//////////////////////////////////////////////// bill menu
with(milonic=new menuname("billmenu")){
style=billcontextstyle;
alwaysvisible=0;
orientation="vertical";
aI("text=- Bill Action Menu - ;type=header");
aI("text=Bill Info;showmenu=ctxbillinfo;");
aI("text=News;showmenu=ctxnews;");
aI("text=Tracking;showmenu=ctxtracking;");
aI("text=Notes;showmenu=ctxnotes;");
//aI("text=BRASS;showmenu=ctxbrass;");
}
with(milonic=new menuname("ctxbillinfo") ) {
style=billcontextstyle;
aI("text=- Bill Info Menu - ;type=header");
aI("text=Bill Summary;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=251&billsid=%SID%');");
aI("text=Bill History;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=254&billsid=%SID%');");
aI("text=Bill Narrative;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=493&billsid=%SID%');");
aI("text=Bill Text;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=255&billsid=%SID%');");
aI("text=Bill Subjects;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=256&billsid=%SID%');");
aI("text=Comm Reports;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=287&billsid=%SID%');");
aI("text=Cosponsors;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=350&billsid=%SID%');");
aI("text=CR References;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=377&billsid=%SID%');");
aI("text=Comm Amendments;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=258&billsid=%SID%');");
aI("text=Floor Amendments;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=257&billsid=%SID%');");
aI("text=Votes;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=259&billsid=%SID%');");
}
with(milonic=new menuname("ctxnews") ) {
style=billcontextstyle;
aI("text=- News Menu - ;type=header");
aI("text=Articles;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=342&billsid=%SID%');");
}
with(milonic=new menuname("ctxtracking") ) {
style=billcontextstyle;
aI("text=- Tracking Menu - ;type=header");
aI("text=Add to Track;showmenu=addtotrack");
}
with(milonic=new menuname("ctxnotes") ) {
style=billcontextstyle;
aI("text=- Notes Menu - ;type=header");
aI("text=Add Note;url=javascript:OpenSmallWindowReplace('/notes/addnote.gw?mode=a&billid=%SID%');");
aI("text=View Notes;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=261&billsid=%SID%');");
}
with(milonic=new menuname("ctxbrass") ) {
style=billcontextstyle;
aI("text=- BRASS Menu - ;type=header");
aI("text=Assign Bill;url=javascript:OpenSmallWindowReplace('http://bams.com/analyze/assign_bills.gw?noheader=1&assignsid=%SID%');");
aI("text=Published Reports;url=javascript:OpenSmallWindowReplace('http://bams.com/finalanalysis/groupanalysis.gw?billsid=%SID%');");
aI("text=Audit Trail;url=javascript:OpenSmallWindowReplace('http://bams.com/customize/atrail.gw?search=1&noheader=1&billsid=%SID%');");
aI("text=Analysts;url=javascript:OpenSmallWindowReplace('http://bams.com/section_loader.gw?optionid=81&billsid=%SID%');");
}
///////////////////////////////////////
with(milonic=new menuname("commmenu")){
style=billcontextstyle;
alwaysvisible=0;
orientation="vertical";
aI("text=- Committee Menu - ;type=header");
aI("text=Committee Info;showmenu=ctxcomminfo;");
aI("text=News;showmenu=commsubnews;");
aI("text=Tracking;showmenu=ctxtracking;");
aI("text=Notes;showmenu=ctxnotes;");
}
with(milonic=new menuname("commsubnews") ) {
style=billcontextstyle;
aI("text=- News Menu - ;type=header");
aI("text=Articles;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=401&bureausid=%SID%&SessionSID=%SESSION%');");
}
with(milonic=new menuname("ctxcomminfo") ) {
style=billcontextstyle;
aI("text=- Committee Info - ;type=header");
aI("text=Basic Info;url=javascript:OpenSmallWindowReplace('/leg/committee.gw?BureauSID=%SID%&SessionSID=%SESSION%');");
aI("text=Membership;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=265&BureauSID=%SID%&SessionSID=%SESSION%');");
aI("text=Staff;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=266&BureauSID=%SID%&SessionSID=%SESSION%');");
aI("text=Bills Referred;url=javascript:OpenSmallWindowReplace('/leg/committeebills.gw?bureausid=%SID%&sessionsid=%SESSION%&direction=Into');");
aI("text=Bills Passed;url=javascript:OpenSmallWindowReplace('/leg/committeebills.gw?bureausid=%SID%&sessionsid=%SESSION%&direction=Out+of');");
aI("text=Upcoming Meetings;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=268&BureauSID=%SID%&SessionSID=%SESSION%');");
aI("text=Recent Meetings;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=488&BureauSID=%SID%&SessionSID=%SESSION%');");
aI("text=Witness Lists;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=271&BureauSID=%SID%&SessionSID=%SESSION%');");
}
with(milonic=new menuname("ctxcommnews") ) {
style=billcontextstyle;
aI("text=- Committee News - ;type=header");
aI("text=Articles;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=401&bureausid=%SID%&SessionSID=%SESSION%');");
}
//////////////////////////////////////////////// Member Menu
with(milonic=new menuname("membermenu")){
style=billcontextstyle;
alwaysvisible=0;
orientation="vertical";
aI("text=- Member Menu - ;type=header");
aI("text=Member Information;showmenu=ctxmemberinfo;");
aI("text=News;showmenu=ctxmembernews;");
aI("text=Tracking;showmenu=ctxtracking;");
aI("text=Notes;showmenu=ctxmembernotes;");
}
with(milonic=new menuname("ctxmemberinfo") ) {
style=billcontextstyle;
aI("text=- Member Information - ;type=header");
aI("text=Basic Info;url=javascript:OpenSmallWindowReplace('/leg/member.gw?PeopleSID=%SID%&viewmode=summary&SessionSID=%SESSION%');");
aI("text=Contact Info;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=351&PeopleSID=%SID%&SessionSID=%SESSION%');");
aI("text=District Info;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=380&PeopleSID=%SID%&SessionSID=%SESSION%');");
aI("text=Bills Sponsored;url=javascript:OpenSmallWindowReplace('/leg/member.billssponsored.gw?PeopleSID=%SID%&SessionSID=%SESSION%');");
aI("text=Bills Cosponsored;url=javascript:OpenSmallWindowReplace('/leg/member.billscosponsored.gw?PeopleSID=%SID%&SessionSID=%SESSION%');");
aI("text=Committees;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=352&PeopleSID=%SID%&SessionSID=%SESSION%');");
aI("text=Legislative Staff;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=379&PeopleSID=%SID%&SessionSID=%SESSION%');");
aI("text=CR References;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=376&PeopleSID=%SID%&SessionSID=%SESSION%');");
aI("text=Amendments;url=javascript:OpenSmallWindowReplace('/leg/member.amendments.gw?SessionSID=%SESSION%&PeopleSID=%SID%');");
}
with(milonic=new menuname("ctxmembernews") ) {
style=billcontextstyle;
aI("text=- Member News - ;type=header");
aI("text=Press Releases;url=javascript:OpenSmallWindowReplace('/news/searchpressrel.gw?search=1&SessionSID=%SESSION%&PeopleSID=%SID%');");
aI("text=USB Articles;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=422&billsid=%SID%');");
}
with(milonic=new menuname("ctxmembernotes") ) {
style=billcontextstyle;
aI("text=- Notes Menu - ;type=header");
aI("text=Add Note;url=javascript:OpenSmallWindowReplace('/membernotes.gw?mode=add&peoplesid=%SID%');");
aI("text=View Notes;url=javascript:OpenSmallWindowReplace('/leg/viewmembernotes.gw?mode=all&peoplesid=%SID%');");
}
//////////////////////////////////////////////// Agency Menu
with(milonic=new menuname("agencymenu")){
style=billcontextstyle;
alwaysvisible=0;
orientation="vertical";
aI("text=- Agency Menu - ;type=header");
aI("text=Agency Information;showmenu=ctxagencyinfo;");
aI("text=News;showmenu=ctxmembernews;");
aI("text=Tracking;showmenu=ctxtracking;");
//aI("text=Notes;showmenu=ctxnotes;");
}
with(milonic=new menuname("ctxagencyinfo") ) {
style=billcontextstyle;
aI("text=- Agency Information - ;type=header");
aI("text=Basic Info;url=javascript:OpenSmallWindowReplace('/govt/agencies.gw?bureausid=%SID%');");
//aI("text=Staff;url=javascript:OpenSmallWindowReplace('/govt/trsearch_results.gw?section=proposed&bureausid=%SID%');"); // link this to where?
aI("text=Notices;url=javascript:OpenSmallWindowReplace('/govt/frsearch_results.gw?section=notices&bureausid=%SID%');");
aI("text=Proposed Rules;url=javascript:OpenSmallWindowReplace('/govt/frsearch_results.gw?section=proposed+rules&bureausid=%SID%');");
aI("text=Final Rules;url=javascript:OpenSmallWindowReplace('/govt/frsearch_results.gw?section=rules+and+regulations&bureausid=%SID%');");
aI("text=Presidential Docs;url=javascript:OpenSmallWindowReplace('/govt/frsearch_results.gw?section=presidential+document&bureausid=%SID%');");
aI("text=All FR Docs;url=javascript:OpenSmallWindowReplace('/govt/frsearch_results.gw?section=all&bureausid=%SID%');");
aI("text=Upcoming Meetings;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=388&BureauSID=%SID%&SessionSID=%SESSION%');");
}
with(milonic=new menuname("ctxagencynews") ) {
style=billcontextstyle;
aI("text=- Agency News - ;type=header");
aI("text=Articles;url=javascript:OpenSmallWindowReplace('/section_loader.gw?optionid=401&bureausid=%SID%&SessionSID=%SESSION%');");
}
/////////////////////////////////////////////////// Tracking menu
with(milonic=new menuname("trackingmenu")){
style=billcontextstyle;
alwaysvisible=0;
orientation="vertical";
aI("text=- Tracking Action - ;type=header");
aI("text=Add/Edit;showmenu=ctxaddedittrack;");
aI("text=Edit Track;url=javascript:OpenSmallWindowReplace('/tracking/edittrackname.gw?tracksid=%SID%');");
aI("text=Sharing;url=javascript:OpenSmallWindowReplace('/tracking/editshared.gw?tracksid=%SID%');");
//aI("text=Notes;showmenu=ctxnotes;");
}
with(milonic=new menuname("ctxaddedittrack") ) {
style=billcontextstyle;
aI("text=- Add/Edit Track - ;type=header");
aI("text=Bills;url=javascript:OpenSmallWindowReplace('/tracking/edittrack.gw?mode=bills&tracksid=%SID%');");
aI("text=Committees;url=javascript:OpenSmallWindowReplace('/tracking/edittrack.gw?mode=committees&tracksid=%SID%');");
aI("text=Members;url=javascript:OpenSmallWindowReplace('/tracking/edittrack.gw?mode=members&tracksid=%SID%');");
aI("text=Statutes;url=javascript:OpenSmallWindowReplace('/tracking/edittrack.gw?mode=statutes&tracksid=%SID%');");
aI("text=Agencies;url=javascript:OpenSmallWindowReplace('/tracking/edittrack.gw?mode=agencies&tracksid=%SID%');");
}
Poster: Ruth
Dated: Sunday August 19 2007 - 9:52:05 BST
Hi,
Take a look at the top of the file up where the subOffset and such are. Add fixMozillaZIndex=true; there and see if that helps.
Ruth
fixMozillaZIndex=true;
Poster: bbaxter
Dated: Monday August 20 2007 - 16:21:05 BST
I'm afraid adding fixMozillaZIndex=true; didn't resolve anything. The problem again is the vertical positioning of the sub menu in firefox. When the user scrolls down the menu position goes crazy, and not by just a few pixels, it's way above where it should be.
Here is the code where each menu is created, just in case you see anything in here that may mess something up, it's inside a table but I dont think that is the problem...
<TABLE WIDTH="600" BORDER="0" CELLSPACING=0 CELLPADDING=0>
<TR>
<td WIDTH=15 ALIGN=LEFT VALIGN=TOP><img WIDTH=15 SRC="http://images.com/blankdot.gif"></td>
<TD WIDTH=110 VALIGN="CENTER" BGCOLOR=ffffff> <p align="right">
<span style='white-space: nowrap; vertical-align: middle;'><img src="http://images.com/ctx/acticon_US.GIF" id='ctxBILLUS110HCR000017531'> <a href="#lBILLUS110HCR000017531" onClick="document['BILLUS110HCR000017531'].src='/clipboard/img.asp?sid=BILL%3AUS%3A110%3AHCR%3A00001&userid=42806&tick='+Date(); return false;" id="lnkBILLUS110HCR000017531"><img border="0" alt="Add To Track" name="BILLUS110HCR000017531" src="/clipboard/clip1.gif"></a>
</span><script type="text/javascript">
document.getElementById("ctxBILLUS110HCR000017531").onmouseover=handleOverEvent;
function handleOverEvent(aEvent){
var myEvent = aEvent ? aEvent : window.event;
ctxmenu_sid = "BILL:US:110:HCR:00001";
ctxmenu_session = "110";
return popup('billmenu', 'ctxBILLUS110HCR000017531');
}
document.getElementById("ctxBILLUS110HCR000017531").onmouseout=handleOutEvent;
function handleOutEvent(aEvent){
return popdown();
}
</script>
<FONT SIZE="2" FACE="Arial, Helvetica"><a href="/leg/bill_info.gw?billsid=BILL:US:110:HCR:00001"><B>
HCR 1</B></a></FONT></FONT></p></TD><TD WIDTH="10" VALIGN="CENTER" BGCOLOR=ffffff> </TD><TD WIDTH="450" VALIGN="CENTER" BGCOLOR=ffffff><p align="LEFT">
<A HREF="javascript:OpenMTVWindow('/mtv.gw?SID=billver:US:110:HCR:00001:PH&doctype=billhtml');"><img src="http://images.com/bi_phbutton.gif" border="0" alt="Engrossed" ></A>
</td><td WIDTH="15" ALIGN="LEFT" VALIGN="TOP">
<img WIDTH="15" SRC="http://images.com/blankdot.gif"></td></TR>
</TABLE>
Poster: Ruth
Dated: Tuesday August 21 2007 - 8:26:31 BST
Hi,
I have no idea, most of what you have is beyond my knowledge. If you can link to a page with the menu, I can see if I can figure out what's going on. The FixMozillaZindex=true; will only work with the newer versions of the menu.
I can usually figure out what the problem is if I have the page with which to work. That way I have any css, the page, and the menu files.
My only other suggestion is that you contact Milonic direct for help since they would actually understand all you posted
Ruth
milonic help
Poster: bbaxter
Dated: Wednesday August 22 2007 - 16:18:36 BST
ok I can try that. I'm worried that this is a problem on their side and thus is going to be impossible to fix. I though that you were with milonic! lol... you have a link to the corporate website where I can get ahold of them?
Poster: Ruth
Dated: Thursday August 23 2007 - 19:54:22 BST
Hi,
Nope, not with Milonic, just a volunteer on the forum. I really really like this menu
You can contact them from the main site. Mouseover About Us and you'll see a contact item.
http://www.milonic.com/
If you have a valid support-active professional or above license you can go to the bottom of that page and click on the tech support link and try the beta support system. This is only available to those with a support contract, i.e. comes with a professional or above license and is valid for a year and renewable each each.
Ruth