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

2 Problems. Linkborder and positioning IE vs FF


Poster: simonhard
Dated: Monday July 23 2007 - 10:52:40 BST

Hi,

im using the phpmenu of milonic. Tried to position it in a div-layer with "position=relative". Firefox did what i wanted. IE dont show the menu :(

Sourcecode:
Code:
<div id="menu_left">
               




<SCRIPT language="JavaScript" src="global/menu/menu_src.js" type="text/javascript"></SCRIPT>   
<script   language="JavaScript">

if(ns4)_d.write("<scr"+"ipt language=JavaScript src=global/menu/mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt language=JavaScript src=global/menu/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language="JavaScript" src="global/menu/treemenu.js" type="text/javascript"></SCRIPT>
<!--<SCRIPT language="JavaScript" src="global/menu/openmenusbyurl.js" type="text/javascript"></SCRIPT>-->
<script>

treeOffset=15;
singleMasterMenu=true;
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=127;
_subOffsetLeft=127
buildAfterLoad=true;


with(main=new mm_style()){
id="1";
oncolor="#DFDFDF";
onbgcolor="#FFFFFF";
offcolor="#000000";
offbgcolor="#FFFFFF";
padding="3";
separatorsize="0";
seperatorcolor="#0";
bordercolor="#FFFFFF";
borderwidth="5";
fontfamily="arial";
fontsize="13px";
fontweight="bold";
}

with(sub1=new mm_style()){
id="2";
oncolor="#DFDFDF";
onbgcolor="#";
offcolor="#FF7C21";
offbgcolor="#";
padding="3";
separatorsize="0";
seperatorcolor="#0";
bordercolor="#";
borderwidth="5";
fontfamily="arial";
fontsize="11px";
fontweight="bold";
}

with(milonic=new menuname("Hauptmenue")){
id="1";
...
}


.....
</script>
</div><!--/menu_left-->

css style is just a fixed width and height (float:left).


Second Problem:
Firefox creates a border round the links. Is there any possibility to remove them? I've attached a screenshot, to show my problem.
Image


Ty in advance.


Poster: simonhard
Dated: Monday July 23 2007 - 11:35:05 BST

i fixed the problem by seperating the main menu from the rest. (included just the main menu in the div-layer).

But phpmenu does give me the source dynamically from my DB. So its not possible to seperate main menu of the rest.

Whats the solution? To make 2 menu projects?


Poster: Ruth
Dated: Friday August 3 2007 - 7:39:03 BST

Hi,

I don't use the php menu, but I think it does the same as the regular as to the position="relative"; so, there are two ways to do it. The one you used which is to separate the main from the rest is done that way so you have the submenus file before the main menu and therefore they are 'read' and the menu system has the info before the main menu is rendered. Now, there is a new method of doing position="relative"; which is to include at the top, up by the subOffset and such buildAfterLoad=true; Then you call all the files in the div, the milonic_src, mmenudom, and the data file.

Also, and again, I don't do php but I know I've seen php, or it might have been asp, but either way it was a relative positioned menu, and when I viewed the page, what I saw was the info from the menu data file with the main menu as the last menu in the file. I have no idea if this is to get the sub menu info to be read first as in the above info or not.

Hope this helps, keeping in mind I'm just throwing out things I've seen and which seem perhaps to answer the problem.

Ruth