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

Menu not displaying unless page is refreshed


Poster: Norma
Dated: Tuesday November 16 2004 - 15:02:41 GMT

Hi there,

I'm using the 5.0+ version of the menu but it does not always display properly on the page.
If someone links to the page from a link in an email for example the menu isn't displayed at all, unless the page is refreshed.
I'm using images in the menu.
Any help would be much appreciated.
Thanks,
Norma :?:


Poster: John
Dated: Tuesday November 16 2004 - 20:02:22 GMT

Please provide a URL so we can see what's happening.

Menu not displaying unless page is refreshed


Poster: Norma
Dated: Wednesday November 17 2004 - 7:41:30 GMT

It's on an Intranet, so I can't give a URL, but here's the code I use.

Content of main page
Code:
<body bgcolor="#FFFFFF" leftmargin=0 topmargin=30 marginwidth="0" marginheight="0">
<!--
Milonic DHTML Website Navigation Menu Version 5.0+
Copyright 2004 (c) Milonic Solutions Limited (UK). All Rights Reserved.
Please visit http://www.milonic.com/ for more information.
Although this software may have been freely downloaded, you must obtain a license before using it in any production environment.   The free use of this menu is only available for Non-Profit, Educational & Personal Web Sites who have obtained a license to use.
Free, Commercial and Corporate Licenses are available from our website.
You also need to include a link back to http://www.milonic.com/ if you use the free license.
All Copyright notices MUST remain in place at ALL times.
This includes the first three lines of this notice on every page that uses the menu.
If you cannot comply with all of the above requirements, please contact us to arrange a license waiver.
-->   

<script type="text/javascript" src="js/milonic_src.js"></script>   
<param copyright="JavaScript Menu by Milonic" value="http://www.milonic.com/"></param>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=js/mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt language=JavaScript src=js/mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="js/menu_data.js"></script>
   
<TABLE cellSpacing=0 cellPadding=0 width=703 align=center border=0>
<TR>
<TD height=52><img src=home/images/mdclogo_top.gif width=291 height=34></TD>
<TD height=52 align=right valign=bottom><a href="http://192.6.76.62/search/pop_seminaire.asp?idSeminaire=50212152" target="_blank"><img src=/images/banner_priorities.gif width=287 height=39 border="0"></a></TD>
</tr>
<tr>
<td style=padding-top:7px colspan=3>

<TABLE width=100% cellSpacing=0 cellPadding=0 border=0>
<TR>
<TD valign=top width=159 style=padding-top:25px>
   
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TR><td>
<!--comment>Menu</comment-->
<script>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
//top=200;
//left=200;
alwaysvisible=1;
orientation="vertical";
position="relative";
aI("showmenu=Guide;image=home/images/ico_learning.gif;overimage=home/images/ico_learning_on.gif;imagewidth=159;");
aI("showmenu=Search;image=home/images/ico_seminar.gif;overimage=home/images/ico_seminar_on.gif;imagewidth=159;");
aI("image=home/images/ico_calendar.gif;overimage=home/images/ico_calendar_on.gif;url=calendar.asp?WSM_Lang=EN;status=Calendar 2005;imagewidth=159;");
aI("showmenu=About;image=home/images/ico_about.gif;overimage=home/images/ico_about_on.gif;imagewidth=159;");
aI("image=home/images/ico_network.gif;overimage=home/images/ico_network_on.gif;url=/directory.asp?WSM_Lang=EN;status=LFD Network;imagewidth=159;");
aI("showmenu=Links;image=home/images/ico_links.gif;overimage=home/images/ico_links_on.gif;imagewidth=159;");
aI("showmenu=Sites;image=home/images/ico_sites.gif;overimage=home/images/ico_sites_on.gif;imagewidth=159;");
}
drawMenus();
</script>
</td>
</TR>

            
<TR>
<TD><IMG height=25 src=home/images/bottom_menu.jpg width=159></TD></tr></table>
</td>
<TD valign=top width=194 valign=top>

<TABLE width=100% border=0 cellSpacing=0 cellPadding=0>
<TR><TD><img src=home/images/topsousmenu.gif width=248 height=26></TD></tr>
<tr><td height=221 valign=top id=imgmilieu style="background-image:url(home/images/milieu.gif)"></td></tr>
<TR><TD><img src=home/images/bottomsousmenu.jpg width=248 height=23></TD></tr></table>
</td>
<TD valign=top width=296>

<!--comment>Partie de droite pour les 4 visuels</comment-->
<script language="JavaScript">
Texte = new Array(4);
Texte[0]="visuel1.jpg";
Texte[1]="visuel2.jpg";
Texte[2]="visuel3.jpg";
Texte[3]="visuel4.jpg";
index = Math.floor(Math.random() * Texte.length);
document.write("<img src=home/images/"+ Texte[index] +" width=296 height=257>");
</script>
<img src=home/images/logoloreal.gif width=296 height=50>
</td></tr></table>
</td></tr></table>


Content of menu_data.js

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=5               // Sub menu top offset
_subOffsetLeft=10            // Sub menu left offset



with(menuStyle=new mm_style()){
onbgcolor="#ffffff";
oncolor="#999999";
offbgcolor="#ffffff";
offcolor="#999999";
bordercolor="#ffffff";
borderstyle="solid";
borderwidth=0;
separatorcolor="#999999";
separatorstyle="dotted";
separatorsize="0";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="white";
pagebgcolor="#ffffff";
headercolor="#000000";
headerbgcolor="#ffffff";
//subimage="images/arrow.gif";
//subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);";
outfilter="randomdissolve(duration=0.3)";
itemwidth=159;
imagewidth=159;
width=159;
}
with(subStyle=new mm_style()){
onbgcolor="#ffffff";
oncolor="#B20023";
offbgcolor="#ffffff";
offcolor="#000000";
bordercolor="#ffffff";
borderstyle="solid";
borderwidth=0;
separatorcolor="#ffffff";
separatorsize="0";
padding=5;
fontsize="70%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="white";
pagebgcolor="#ffffff";
headercolor="#000000";
headerbgcolor="#ffffff";
overfilter="Fade(duration=0.2);Alpha(opacity=90);";
outfilter="randomdissolve(duration=0.3)";
}

with(milonic=new menuname("Guide")){
style=subStyle;
aI("text=Opportunities to Learn;image=home/images/arr_right1.gif;url=/learning.asp?lang=EN;");
aI("text=Making the Right Choice;image=home/images/arr_right1.gif;url=/choice.asp?WSM_Lang=EN;");
aI("text=Talent Development;image=home/images/arr_right1.gif;url=/taldev.asp?WSM_Lang=EN;");
aI("text=Your Role in Learning;image=home/images/arr_right1.gif;url=/roles.asp?WSM_Lang=EN;");
aI("text=FAQ;image=home/images/arr_right1.gif;url=/faq.asp?WSM_Lang=EN;");
aI("text=LFD Jargon;image=home/images/arr_right1.gif;url=/jargon.asp?WSM_Lang=EN;");
}

with(milonic=new menuname("Search")){
style=subStyle;
aI("text=Training Track;image=home/images/arr_right1.gif;url=/track.asp?WSM_Lang=EN;");
aI("text=Seminar Wizard;image=home/images/arr_right1.gif;url=/search.asp?WSM_Lang=EN;");
}

with(milonic=new menuname("About")){
style=subStyle;
aI("text=Interview with Richard Humphrey;image=home/images/arr_right1.gif;url=/richard.asp?WSM_Lang=EN;");
aI("text=Meet the MDC Team;image=home/images/arr_right1.gif;url=/team.asp?WSM_Lang=EN;");
aI("text=Getting to the MDC;image=home/images/arr_right1.gif;url=/logistics.asp?WSM_Lang=EN;");
}

with(milonic=new menuname("Links")){
style=subStyle;
aI("text=Talent Development;image=home/images/arr_right1.gif;url=http://192.6.76.81/;status=Talent Development;");
aI("text=Group Glossary;image=home/images/arr_right1.gif;url=/glossary.asp;status=Group Glossary;");
}

with(milonic=new menuname("Sites")){
style=subStyle;
aI("text=LFD Portal;image=home/images/arr_right1.gif;url=http://192.6.76.62/;");
aI("text=Luxury Products Division;image=home/images/arr_right1.gif;url=http://128.100.6.51/eduperm_dpl/home.asp;");
aI("text=Professional Products Division;image=home/images/arr_right1.gif;url=http://128.60.20.6/EP/;");
aI("text=Active Cosmetics;image=home/images/arr_right1.gif;url=http://128.52.1.30/formationdrh/index.html;");
aI("text=DGAF;image=home/images/arr_right1.gif;url=http://192.6.20.20/us/accueil/Fhome.htm;");
aI("text=Industry;image=home/images/arr_right1.gif;url=http://192.6.69.14/FORMATION092003/accueil_formations_ang.html;");
aI("text=L'Oréal Research;image=home/images/arr_right1.gif;url=http://128.13.32.3/pratique/res_hum/p1.htm;");
}

drawMenus();


Poster: fredlongworthhighschool
Dated: Wednesday November 17 2004 - 9:14:58 GMT

I extracted your menu from your web page and put it back into the menu_data.js file and it seemed to work ok.

The problem could be either in your tables or internal web server.


Poster: Norma
Dated: Wednesday November 17 2004 - 11:07:42 GMT

Hi,

Yes the menu works fine if you call up the page directly, but it's when I put the link into an email or in a Word document, the page comes up systematically without the menu. Once you refresh the page, it's perfect.

Any guesses?


Poster: John
Dated: Wednesday November 17 2004 - 14:02:37 GMT

Exactly what version of the menu are you running?

We have exactly the same problem


Poster: reinhold
Dated: Thursday December 9 2004 - 16:00:41 GMT

Hi,

on some computer with IE-Browser the menu does not appear at all. We don't know why some machines display it absolutly correct while others always have the problem. F5 "solves" it. But this is of course no solution...

Here is the link:

http://www.pyramid.de
http://www.pyramid.de/e

Thanks for help,

Reinhold


Poster: John
Dated: Thursday December 9 2004 - 17:43:12 GMT

Having no problem at all here. The menus come up with no refresh every time. XP Pro/IE6/SP2.

If it's only happening on some computers, I'd suggest trying to find out what's different about those from the ones that work. This sounds more like a computer problem than the menu.

It is not a computer problem


Poster: reinhold
Dated: Friday December 10 2004 - 8:15:29 GMT

No, we can't blame the computers ;-)). We have too much computers where the menu does not work. What kind of "computer problem" could that be? Everythink on these computers work perfect (as perfect, as a Wintel-System can be ;-)) only the menu doesn't. First we thought the problem is that these computers are too slow, but there are also fast computers with the problem. Also the security-settings are "normal" and javascript is (of course) activated. And we know that we don't have these problems only in the firm, we know at least about three computers outside the firm where the problems are exactly the same. One of these computer-owners is a web programmer and we know that he tried many options to get the menu work. But as i said before, only F5 "helps" (not CTR-F5 !!!). On most (maybe on every) system runs Win2000 and IE 6.
We had the problem with Menu-Version 5.2? and now also with 5.62

Thanks, Reinhold


Poster: Andy
Dated: Friday December 10 2004 - 8:36:31 GMT

Hi,

Can you try the pre-release and see if that helps - http://www.milonic.com/menuvinfo.php.

If not, try moving the menu script references into the body. If that works we need to look at the code and see what is causing this.

Cheers
Andy


Poster: John
Dated: Friday December 10 2004 - 21:05:13 GMT

The pre-release Andy mentioned now being the current release - 5.63.