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

menu_sample40_ver5_735: PROBLEMS!


Poster: watermanFFM
Dated: Thursday November 24 2005 - 19:30:56 GMT

Hi,

I have a Milonic menu. on this site (http://www.mjfc-jam.com/index.php) you can see the menu as a test.

The menu is shown above this search field. But I want, that this menu is on the left side & the search field on the right side! How can I change the menu to do this!

Here is the code (menu_data.js):

Code:
fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;




with(menuStyle=new mm_style()){
styleid=1;
bordercolor="#ffffff";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="8pt";
fontstyle="normal";
fontweight="bold";
headerbgcolor="#ffffff";
headercolor="#000000";
image="http://www.mjfc-jam.com/orangedots.gif";
imagepadding=6;
offbgcolor="#1B2C85";
offcolor="#ffffff";
onbgcolor="#CC6600";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
overimage="http://www.mjfc-jam.com/whitedots.gif";
padding=6;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#ffffff";
separatorsize=1;
subimage="http://www.mjfc-jam.com/arrow.gif";
subimagepadding=2;
}

with(submenuStyle=new mm_style()){
bordercolor="#ffffff";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="8pt";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#5871B3";
offcolor="#ffffff";
onbgcolor="#DC9B5B";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=6;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#758CC9";
separatorsize=1;
subimage="arrow.gif";
subimagepadding=2;
}

with(milonic=new menuname("Main Menu")){
position="relative";
left=10;
alwaysvisible=1;
orientation="horizontal";
style=menuStyle;
top=10;
aI("status=Back To Home Page;subimageposition=0                             ;text=Home;url=http://www.milonic.com/;");
aI("showmenu=Test;subimageposition=0                             ;text=Test;");
aI("showmenu=Test;subimageposition=0                             ;text=Test;");
aI("showmenu=Test;subimageposition=0                             ;text=Test;");
aI("showmenu=Testsubimageposition=0                             ;text=Test;");
}

with(milonic=new menuname("Test")){
margin=7;
style=submenuStyle;
aI("subimageposition=0                             ;text=Product Purchasing Page;url=http://www.milonic.com/cbuy.php;");
aI("subimageposition=0                             ;text=Contact Us;url=http://www.milonic.com/contactus.php;");
aI("subimageposition=0                             ;text=Newsletter Subscription;url=http://www.milonic.com/newsletter.php;");
aI("subimageposition=0                             ;text=FAQ;url=http://www.milonic.com/menufaq.php;");
aI("subimageposition=0                             ;text=Discussion Forum;url=http://www.milonic.com/forum/;");
aI("subimageposition=0                             ;text=Software License Agreement;url=http://www.milonic.com/license.php;");
aI("subimageposition=0                             ;text=Privacy Policy;url=http://www.milonic.com/privacy.php;");
}

with(milonic=new menuname("Test")){
margin=7;
style=submenuStyle;
aI("status=(aq) Web Server Hosting & Services;subimageposition=0                             ;text=(aq) Web Hosting;url=http://www.a-q.co.uk/;");
aI("subimageposition=0                             ;text=SMS 2 Email;url=http://www.sms2email.com/;");
aI("subimageposition=0                             ;text=WebSmith;url=http://www.softidiom.com/?milonicmenu;");
}

with(milonic=new menuname("Test")){
margin=7;
style=submenuStyle;
aI("status=Apache Web Server, the basis of Milonic's Web Site;subimageposition=0                             ;text=Apache Web Server;url=http://www.apache.org/;");
aI("status=MySQL, Milonic's Prefered Choice of Database Server;subimageposition=0                             ;text=MySQL Database Server;url=http://ww.mysql.com/;");
aI("status=PHP - Web Server Scripting as used by Milonic;subimageposition=0                             ;text=PHP - Development;url=http://www.php.net/;");
aI("status=PHP Based Web Forum, Milonic's Recommended Forum Software;subimageposition=0                             ;text=phpBB Web Forum System;url=http://www.phpbb.net/;");
aI("showmenu=Anti Spam;status=Anti Spam Solutions, as used by Milonic;subimageposition=0                             ;text=Anti Spam Tools;");
}

with(milonic=new menuname("Test")){
margin=7;
style=submenuStyle;
aI("subimageposition=0                             ;text=Spam Cop;url=http://www.spamcop.net/;");
aI("subimageposition=0                             ;text=Mime Defang;url=http://www.mimedefang.org/;");
aI("subimageposition=0                             ;text=Spam Assassin;url=http://www.spamassassin.org/;");
}

with(milonic=new menuname("Test")){
margin=7;
style=submenuStyle;
aI("subimageposition=0                             ;text=Login;url=http://www.milonic.com/login.php;");
aI("subimageposition=0                             ;text=Licenses;url=http://www.milonic.com/mylicenses.php;");
aI("subimageposition=0                             ;text=Invoices;url=http://www.milonic.com/myinvoices.php;");
aI("subimageposition=0                             ;text=Make Support Request;url=http://www.milonic.com/reqsupport.php;");
aI("subimageposition=0                             ;text=View Support Requests;url=http://www.milonic.com/mysupport.php;");
aI("subimageposition=0                             ;text=Your Details;url=http://www.milonic.com/mydetails.php;");
}

drawMenus();


Please help!

[/code]


Poster: Ruth
Dated: Thursday November 24 2005 - 23:42:31 GMT

Hi,

You need to place the main menu into that area not just call the menu files there.

Starting with the div in which you have the menu and search and down to the table 'class-theme-main table' change it to this:

Code:
<DIV class=theme-search
style="BORDER-LEFT-COLOR: #ff0000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BACKGROUND-COLOR: #5d94c4; BORDER-RIGHT-COLOR: #000000">
<table border=0 cellpadding=0 cellspacing=0 width="100%">
<tr>
       <td><script>with(milonic=new menuname("Main Menu")){
position="relative";
alwaysvisible=1;
orientation="horizontal";
style=menuStyle;
aI("status=Back To Home Page;subimageposition=0;text=Home;url=http://www.milonic.com/;");
aI("showmenu=Test;subimageposition=0;text=Test;");
aI("showmenu=Test1;subimageposition=0;text=Test;");
aI("showmenu=Test2;subimageposition=0;text=Test;");
aI("showmenu=Test3;subimageposition=0;text=Test;");
}
drawMenus();
</script>
</td>
       <td><table align="right" border=0 cellpadding=0 cellspacing=0>
<tr>
    <td><FORM class=theme-searchinput action=index.php method=post>
<DIV><INPUT type=hidden value=Search name=name> <INPUT type=hidden value=search
name=action> <INPUT type=hidden value=1 name=overview> <INPUT type=hidden
value=AND name=bool> <INPUT type=hidden value=1 name=active_comments> <INPUT
type=hidden value=1 name=active_downloads> <INPUT type=hidden value=1
name=active_faqs> <INPUT type=hidden value=1 name=active_reviews> <INPUT
type=hidden value=1 name=active_sections> <INPUT type=hidden value=1
name=active_stories> <INPUT type=hidden value=1 name=active_users> <INPUT
type=hidden value=1 name=active_weblinks> <LABEL
for=search_xte_plugin>Suchen</LABEL> <INPUT id=search_xte_plugin tabIndex=0
size=12 name=q> </DIV></FORM></DIV></td>
</tr>
</table></td>
</tr>
</table>

<TABLE class=theme-maintable>


Then open the menu_data.js file, remove the main menu from it, change the last 3 Test submenus to Test1, Test2, Test3 and save the file.

Finally, put the calls for the files the first thing after the body tag

Code:
<BODY><SCRIPT src="milonic_src.js" type=text/javascript></SCRIPT>
<NOSCRIPT><A href="http://www.milonic.com/">DHTML JavaScript Website Pull Down
Navigation Menu By Milonic</A></NOSCRIPT>
<SCRIPT type=text/javascript>
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</SCRIPT>

<SCRIPT src="menu_data.js" type=text/javascript></SCRIPT>


That will put the menu at the left and the search all the way right. If you want the menu closer to the search you will have to nest a table inside the cell were the menu is now, align it right and put the main menu into it.

Ruth