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

Netscape Problems


Poster: mckee __at__ newsstand.com
Dated: Friday October 24 2003 - 21:31:28 BST

The following code has very wide submenus in NS 7.1 with the current release candidate. It does not have these problems with RC 15.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
   <title>Untitled</title>
</head>

<body>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
   <head>
       <title>
           Menu Test
       </title>
   </head>
   <body leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" topmargin="0">
      <div align="center">
         <script language=JavaScript src="/js/milonic_src.js" type=text/javascript></script>
         <script language=JavaScript src="/js/mmenudom.js" type=text/javascript></script>
         <script language="JavaScript" type="text/javascript">
            _menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
            _menuOpenDelay=150            // The time delay before menus open on mouse over
            _followSpeed=5                // Follow scrolling speed
            _followRate=40                // Follow scrolling Rate
            _subOffsetTop=5              // Sub menu top offset
            _subOffsetLeft=-10            // Sub menu left offset
            var showText = true;
            var showTB = true;
           
            with(menuStyle=new mm_style())
            {
               onbgcolor="lightgrey";
               oncolor="black";
               offbgcolor="lightgrey";
               offcolor="black";
               bordercolor="#296488";
               borderstyle="solid";
               borderwidth=1;
               separatorcolor="#2D729D";
               separatorsize="1";
               padding=5;
               fontsize="75%";
               fontstyle="normal";
               fontfamily="Verdana, Tahoma, Arial";
               pagecolor="black";
               headercolor="#000000";
               headerbgcolor="#ffffff";
               subimage="/images/T_arrow.gif";
               subimagepadding="2";
               overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
               outfilter="randomdissolve(duration=0.3)";
            }
            with(menuStyle2=new mm_style())
            {
               onbgcolor="lightgrey";
               oncolor="black";
               offbgcolor="lightgrey";
               offcolor="black";
               bordercolor="#296488";
               borderstyle="solid";
               borderwidth=1;
               separatorcolor="lightgrey";
               separatorsize="1";
               padding=5;
               fontsize="75%";
               fontstyle="normal";
               fontfamily="Verdana, Tahoma, Arial";
               pagecolor="black";
               headercolor="#000000";
               headerbgcolor="#ffffff";
               subimage="/images/arrow.gif";
               subimagepadding="2";
               overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
               outfilter="randomdissolve(duration=0.3)";
            }
   
            with(milonic=new menuname("Issues"))
            {
               style=menuStyle;
               top=0;
               left=0;
               alwaysvisible=1;
               orientation="horizontal";
               followscroll="1";
               if(showText)
               {
                  itemwidth="100%";
                  aI("image=/images/ns-icon1.jpg;text=NewsStand;url=http://mckeewwwn;status=NewsStand;");
                  aI("image=/images/pref1.jpg;text=Preferences;showmenu=Prefs;status=Preferences;");
                  aI("image=/images/help1.jpg;text=Help;url=http://support.newsstand.com;target=_blank;status=Help;");
               }
               else
               {
                  aI("image=/images/ns-icon1.jpg;url=http://mckeewwwn;status=NewsStand;");
                  aI("image=/images/pref1.jpg;showmenu=Prefs;status=Preferences;");
                  aI("image=/images/help1.jpg;url=http://support.newsstand.com;target=_blank;status=Help;");
               }
            }
           
            with(milonic=new menuname("Prefs"))
            {
               style=menuStyle2;
               aI("text=Edit Reader Settings;showmenu=settings;status=Reader Settings;separatorcolor=#2D729D");
               aI("text=Account Information;url=/index.cfm?fuseaction=contactinfo;");
               aI("text=Transaction History;url=/index.cfm?fuseaction=AccountSetting;separatorcolor=#2D729D");
               if(showText)
                  aI("image=/images/check.jpg;text=Show Icons and Text;url=javascript:changeTextDisp();separatorcolor=#2D729D");
               else
                  aI("text=Show Icons and Text;url=javascript:changeTextDisp();separatorcolor=#2D729D");
               aI("text=Help;url=http://support.newsstand.com;target=_blank;status=Help;");
               aI("text=Disable Toolbar;url=javascript:disable();");
            }
   
            with(milonic=new menuname("settings"))
            {
               style=menuStyle;
               aI("text=Profile...;url=javascript:doReaderWebCommand('ID_MAIN_SETTINGS_PROFILE', '');");
               aI("text=Download...;url=javascript:doReaderWebCommand('ID_MAIN_SETTINGS_DOWNLOAD', '');");
               aI("text=Viewer...;url=javascript:doReaderWebCommand('ID_MAIN_SETTINGS_VIEWER', '');");
               aI("text=Media...;url=javascript:doReaderWebCommand('ID_MAIN_SETTINGS_MEDIA', '');");
               aI("text=General...;url=javascript:doReaderWebCommand('ID_MAIN_SETTINGS_GENERAL', '');");
               aI("text=Server...;url=javascript:doReaderWebCommand('ID_MAIN_SETTINGS_SERVER', '');");
               aI("text=eDM Server...;url=javascript:doReaderWebCommand('ID_MAIN_SETTINGS_EDMSERVER', '');");
               aI("text=Message Manager...;url=javascript:doReaderWebCommand('ID_MAIN_SETTINGS_ME', '');");
               aI("text=Advanced...;url=javascript:doReaderWebCommand('ID_MAIN_SETTINGS_ADVANCED', '');");
            }

            drawMenus();
         </script>
      </div>
   </body>
</html>



</body>
</html>


Poster: John
Dated: Friday October 24 2003 - 23:39:30 BST

A couple problems right off the bat...

1. Your JS calls are wrong for the menu code. See install.txt in the download.

2. You have 2 doctype, <html>, <head>, etc. in you document. No good.

3. Why is the code in a <div>, as opposed to letting it center itself?

4. Why is the code split up?

Are you using RC18.

Fix these, then let us know.


Poster: mckee __at__ newsstand.com
Dated: Monday October 27 2003 - 16:24:06 GMT

1. Your JS calls are wrong for the menu code. See install.txt in the download.
Since I know that our users have to be NS 6.x+ I have no need for the browser checking code

2. You have 2 doctype, <html>, <head>, etc. in you document. No good.
Cut and past error putting the final example together. Not in actual code

3. Why is the code in a <div>, as opposed to letting it center itself?
Artifact of it being in a larger piece of code. This turned out to be the culprit though so now I need to figure out how to rearrange things.

4. Why is the code split up?
Not sure what you mean here

Are you using RC18.
When I created the sample it hadn't been released. I am now and the problem persists but at least I have a work around. Again this was not a problem in RC15