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

Display problems V5 RC4


Poster: steve __at__ jasper.net.au
Dated: Tuesday August 5 2003 - 1:05:45 BST

Using V5 RC4

Using a black background with yellow text and a red highlight, the first item in a main menu defaults to the color black effectively making it invisible on a black background.

under MacOS X 10.2.6/IE 5.2.2, the (white) border around the menu does not quite follow the menu location when set to follow scroll. The whole thing will move into position and then the border on its own will move by about 20 pixels.

I have provided my code below...

HTML File:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="menu.css" media="screen"><title>Testing</title></head>

<body bgcolor="#000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

<SCRIPT language="JavaScript" src="milonic_src.js" type="text/javascript"></SCRIPT>

<SCRIPT language="JavaScript" src="sidemenu.js" type="text/javascript"></SCRIPT>

</body>
</html>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
sidemenu.js (Comments removed for brevity):
_scrollAmount=3;
_scrollDelay=20;

_menuCloseDelay=50;
_menuOpenDelay=0;
_followSpeed=10;
_followRate=40;
_subOffsetTop=7;
_subOffsetLeft=-1;


with(style1=new mm_style()){
onbgcolor = "#000000";
oncolor = "#cc3300";
offbgcolor = "#000000";
offcolor = "#ffff00";
bordercolor = "white";
borderstyle = "solid";
padding = 10;
fontsize = "10px";
fontstyle = "normal";
fontweight = "bold";
fontfamily = "Verdana, Tahoma, Arial, Helvetica, sans-serif";
high3dcolor = null;
low3dcolor = null;
pagecolor = "black";
pagebgcolor = "black";
align = "center";
}


with(milonic=new menuname("mainmenu2")){_c=1
top = 0;
left = 8;
itemwidth=155;
borderwidth = 1;
screenposition = "middle";
alignment="center";
style = style1;
alwaysvisible = 1;
followscroll = "235,10,3";
orientation="vertical";
keepalive = 1;
position="relative";
aI("text=Home;url=default.html");
aI("text=The Photographers;url=tba.html");
aI("text=Search;url=search.html");
aI("text=Topside Gallery;url=tba.html");
aI("text=Underwater Gallery;url=tba.html");
aI("text=Articles;url=articles.html");
aI("text=Our Hotspots;url=hotspots.html");
aI("text=Purchasing Information;url=purchase.html");
aI("text=Contact Information;url=contact.html");
}


for(_a=_mnucnt;_a<_m.length;_a++){_drawMenu(_a)}


Best Regards




Steve


Poster: steve __at__ jasper.net.au
Dated: Tuesday August 5 2003 - 7:28:14 BST

Hmmmm...It turns out that the problem line is...

[code]aI("text=Home;url=default.html");[/code]

If I am on the page that the url parameter specifies, then the menu item disappears. I can't find a menu item property that will let these always stay on.