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:18
Problem with Image Map Menu in Mozilla
Poster: ndeklotz
Dated: Tuesday July 20 2004 - 23:45:58 BST
I've noticed in Mozilla 1.7 and in Firefox my onbgcolor and offbgcolors are not appearing in lines where I have the url element for the pop-up menus in the image map script. The map is working properly in IE and Netscape.
The map itself can be viewed at http://www.eiairport.org/maps/menu.htm
and the code follows
Code:
_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_subOffsetTop=4 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset
with(MapSample=new mm_style()){
onbgcolor="007da5";
oncolor="#ffffff";
offbgcolor="3196b5";
offcolor="#ffffff";
bordercolor="#007ca5";
borderstyle="solid";
borderwidth=1;
padding=2;
fontsize="10px";
fontstyle="normal";
fontweight="normal";
fontfamily="Arial, Helvetica, sans-serif";
pagecolor="Purple";
pagebgcolor="pink";
headercolor="#007ca5";
headerbgcolor="#ffffff";
}
with(milonic=new menuname("Submenu")){
style=MapSample;
borderwidth=1;
aI("text=Dummy Menu Item 1;");
aI("text=Dummy Menu Item 2;");
aI("text=Dummy Menu Item 3;");
}
with(milonic=new menuname("TEIA")){
style=MapSample;
borderwidth=1;
aI("image=denmark.gif;imagealign=center;type=header;align=center;");
aI("text=The Eastern Iowa Airport;type=header;align=center;");
aI("text=Airport Abbreviation : <b><i>CID</i></b>;");
aI("text=Website;url=http://www.eiairport.org/index.shtml;target=_blank;");
}
with(milonic=new menuname("Cincinnati")){
style=MapSample;
borderwidth=1;
aI("text=Cincinnati-Northern Kentucky International Airport;type=header;align=left;");
aI("text=Airport Abbreviation : <b>CVG</b>;type=header;align=left;");
aI("text=Website Homepage;url=http://www.cvgairport.com;target=_blank;");
aI("text=CVG Flight Schedule;url=http://timetables.oag.com/cvg/;target=_blank;");
aI("text=CVG Flight Status;url=http://www.cvgairport.com/flight/status.shtml;target=_blank;");
}
with(milonic=new menuname("Dallas")){
style=MapSample;
borderwidth=1;
aI("text=Dallas-Ft. Worth International Airport;type=header;align=left;");
aI("text=Airport Abbreviation : <b>DFW</b>;type=header;align=left;");
aI("text=Website Homepage;url=http://www.dfwairport.com;target=_blank;");
aI("text=Arrivals;url=http://www.dfwairport.com/flights/fids.asp?FIDStype=A;target=_blank;");
aI("text=Departures;url=http://www.dfwairport.com/flights/fids.asp?FIDStype=D;target=_blank;");
}
with(milonic=new menuname("Minneapolis")){
style=MapSample;
borderwidth=1;
aI("text=Minneapolis-St. Paul International Airport;type=header;align=left;");
aI("text=Airport Abbreviation : <b>MSP</b>;type=header;align=left;");
aI("text=Website Homepage;url=http://www.mspairport.com;target=_blank;");
}
with(milonic=new menuname("Detroit")){
style=MapSample;
borderwidth=1;
aI("text=The Detroit Metro Airport;type=header;align=left;");
aI("text=Airport Abbreviation : <b>DTW</b>;type=header;align=left;");
aI("text=Website Homepage;url=http://www.metroairport.com;target=_blank;");
}
with(milonic=new menuname("St.Louis")){
style=MapSample;
borderwidth=1;
aI("text=Lambert St. Louis International Airport;type=header;align=left;");
aI("text=Airport Abbreviation : <b>STL</b>;type=header;align=left;");
aI("text=Website Homepage;url=http://www.lambert-stlouis.com;target=_blank;");
}
with(milonic=new menuname("Denver")){
style=MapSample;
borderwidth=1;
aI("text=Denver International Airport;type=header;align=left;");
aI("text=Airport Abbreviation : <b>DEN</b>;type=header;align=left;");
aI("text=Website Homepage;url=http://www.flydenver.com;target=_blank;");
aI("text=Flight Planner;url=http://timetables.oag.com/den/;target=_blank;");
aI("text=Flight Search;url=http://www.flydenver.com/flights/index.asp;target=_blank;");
}
with(milonic=new menuname("LasVegas")){
style=MapSample;
borderwidth=1;
aI("text=Las Vegas McCarran International Airport;type=header;align=left;");
aI("text=Airport Abbreviation : <b>LAS</b>;type=header;align=left;");
aI("text=Website Homepage;url=http://www.mccarren.com;target=_blank;");
aI("text=Arrivals;url=http://www.mccarran.com/arrivals.asp;target=_blank;");
aI("text=Departures;url=http://www.mccarran.com/departures.asp;target=_blank;");
}
with(milonic=new menuname("Chicago")){
style=MapSample;
borderwidth=1;
aI("text=O'Hare International Airport;type=header;align=left;");
aI("text=Airport Abbreviation : <b>ORD</b>;type=header;align=left;");
aI("text=Website Homepage;url=http://www.ohare.com/ohare/home.asp;target=_blank;");
aI("text=Real-Time Flight Information;url=http://www.ohare.com/fidsohare/;target=_blank;");
}
drawMenus();
Anything jump out at anyone???
Thanks in advance...n