Netscape Problems

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mckee@newsstand.com
Advanced
Advanced
Posts: 16
Joined: Tue Sep 30, 2003 10:00 pm

Netscape Problems

Post by mckee@newsstand.com »

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: Select all

<!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>
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
mckee@newsstand.com
Advanced
Advanced
Posts: 16
Joined: Tue Sep 30, 2003 10:00 pm

Post by mckee@newsstand.com »

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
Post Reply