2 Problems. Linkborder and positioning IE vs FF

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
simonhard
Beginner
Beginner
Posts: 2
Joined: Mon Jul 23, 2007 10:44 am

2 Problems. Linkborder and positioning IE vs FF

Post by simonhard »

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

<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.
simonhard
Beginner
Beginner
Posts: 2
Joined: Mon Jul 23, 2007 10:44 am

Post by simonhard »

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?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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