Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:25

Submenu misalign in Firefox v1.07 (Menu version v5.735)


Poster: cpetrich
Dated: Saturday November 19 2005 - 23:48:27 GMT

CoolPhoto.com: In IE, submenus are correctly aligned. In Firefox, they are not. This appears to be new behavior since I upgraded milonic to v5. Can you see anything wrong with the script?

Thx
Christopher

=========================================
=========================================
=========================================
HTML header
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>CoolPhoto: Photography by Christopher Petrich</title>
<meta http-equiv=content-type content="text/html; charset=windows-1252">
<meta http-equiv=imagetoolbar content=no>
<meta http-equiv=expires content=0>
<meta http-equiv=Pragma content=nocache>
<meta content="Fine Black and White Photographs of the Pacific Northwest by Christopher Petrich" name=description>

<script type="text/javascript">

/*
Author : M. Vadivel
Designation : Web Developer
Concern : 3rdAgenda (http://www.3rdagenda.com)
City : Chennai
mail id : velias_111 __at__ hotmail.com
*/

var ErrMsg = "Call or email Christopher Petrich today to purchase a fine original photograph of the Pacific Northwest!";

function disableRightClick(btnClick)
{
if (navigator.appName == "Netscape" && btnClick.which == 3) // check for netscape and right click
{
alert(ErrMsg);
return false;
}
else if (navigator.appName =="Microsoft Internet Explorer" && event.button == 2) // for IE and Right Click
{
alert(ErrMsg);
return false;
}
}
document.onmousedown = disableRightClick;
</script>

<script type="text/javascript" src="includes/coolphoto.js"></script>

<style type="text/css">
__at__ import "includes/coolphoto.css";
</style>

<!--[if IE]>
<link
href="includes/ie.css"
rel="stylesheet"
type="text/css"
media="screen">
<![endif]-->



<script type="text/javascript" src="includes/milonic_src.js"></script>
<script type="text/javascript">
<!--
if(ns4)_d.write("<script language=JavaScript src=includes/mmenuns4.js><\/script>");
else _d.write("<script language=JavaScript src=includes/mmenudom.js><\/script>");
-->
</script>
<!--#include file="includes/members.inc"-->
</head>
=========================================
=========================================
=========================================
Menudata:
_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=10 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset
closeAllOnClick = true;

with(menuStyle=new mm_style()){
onbgcolor="#fff000";
oncolor="#296488";
offbgcolor="#000000";
offcolor="#ffffff";
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
separatorcolor="#296488";
separatorpadding ="3";
separatorsize="1";
padding=3;
fontsize="65%";
fontstyle="normal";
fontfamily="Verdana, Arial, Helvetica";
subimage="http://coolphoto.com/images/arrow.gif";
subimagepadding="3";
overfilter="Fade(duration=0.1);Alpha(opacity=100);Shadow(color='#000000', Direction=135, Strength=0)";
outfilter="randomdissolve(duration=0.2)";
closeonclick='true';
}

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=28;
left=245;
alwaysvisible=1;
orientation="horizontal";
aI("text=&nbsp;Home&nbsp;&nbsp;target=_top;url=http://coolphoto.com/home.html;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=&nbsp;Gallery&nbsp;showmenu=Gallery;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=&nbsp;Resources&nbsp;showmenu=Resources;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=&nbsp;Contact&nbsp;&nbsp;showmenu=Contact;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=&nbsp;About Us&nbsp;showmenu=AboutUs;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
}

with(milonic=new menuname("Gallery")){
style=menuStyle;
top=47;
left=303;
overflow="auto";
aI("text=Color (Equivalents);target=Content_frame;url=http://coolphoto.com/coolphoto/browse_catalog.asp?CategoryID=26&amp;PageSize=2;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Mountain and Forest;target=Content_frame;url=http://coolphoto.com/coolphoto/browse_catalog.asp?CategoryID=23&amp;PageSize=2;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Old Glory;target=Content_frame;url=http://coolphoto.com/coolphoto/browse_catalog.asp?CategoryID=21&amp;PageSize=2;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Posters and Books;target=Content_frame;url=http://coolphoto.com/coolphoto/browse_catalog.asp?CategoryID=15&amp;PageSize=2;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Puget Sound Lighthouses;target=Content_frame;url=http://coolphoto.com/coolphoto/browse_catalog.asp?CategoryID=22&amp;PageSize=2;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Raw Time;target=Content_frame;url=http://coolphoto.com/coolphoto/browse_catalog.asp?CategoryID=19&amp;PageSize=2;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Sea and Sky;target=Content_frame;url=http://coolphoto.com/coolphoto/browse_catalog.asp?CategoryID=1&amp;PageSize=2;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Shapes and Spaces;target=Content_frame;url=http://coolphoto.com/coolphoto/browse_catalog.asp?CategoryID=25&amp;PageSize=2;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
}

with(milonic=new menuname("Resources")){
style=menuStyle;
top=47;
left=374;
overflow="auto";
aI("text=Arts Resources;target=Content_frame;url=http://coolphoto.com/links.htm;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Newsletter;target=Content_frame;url=http://coolphoto.com/Newsletter.htm;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=9/11;target=Content_frame;url=http://coolphoto.com/in_memoriam_september_11.html;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Good Earth;target=Content_frame;url=http://coolphoto.com/includes/goodEarth3.html;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Maps of Web Visits;target=Content_frame;url=http://coolphoto.com/includes/maps.html;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
}

with(milonic=new menuname("Contact")){
style=menuStyle;
top=47;
left=463;
overflow="auto";
aI("text=&nbsp;Where to Purchase&nbsp;&nbsp;target=Content_frame;url=WhereToPurchase.htm;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=&nbsp;Contact Me Via Email&nbsp;&nbsp;target=Content_frame;url=includes/contact.htm;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=&nbsp;Contact Me Via WebForm&nbsp;&nbsp;target=Content_frame;url=http://coolphoto.com/coolphoto/register_catalog.asp;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=&nbsp;Support The Arts!&nbsp;&nbsp;target=Content_frame;url=includes/donate.htm;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
}

with(milonic=new menuname("AboutUs")){
style=menuStyle;
top=47;
left=540;
overflow="auto";
aI("text=The Artist;target=Content_frame;url=http://coolphoto.com/bio.htm;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Artist Information Sheet;target=Content_frame;url=http://coolphoto.com/PetrichArtistInfo.htm;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Artist Technical Information;target=Content_frame;url=http://coolphoto.com/PetrichTechInfo.htm;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
aI("text=Resume;target=Content_frame;url=http://coolphoto.com/RESUME.htm;status=Limited Edition Photographs of the Pacific Northwest, Created By The Artist on Gelatin Silver Fibre Paper;");
}

drawMenus();


Poster: Ruth
Dated: Sunday November 20 2005 - 2:00:35 GMT

Try removing the positions you have set in the submenus. THey should drop automatically below the parent item.

Ruth