PDA

View Full Version : I need Help to create a new menu



Ifeanyi
03-22-2007, 10:02 AM
1) Script Title:
I have this scripts: named "mm_menu.js"

and this other menu script was created: named as menu.js

function mmLoadMenus(session) {
if (window.mm_menu_0227130037_0) return;
window.mm_menu_0227130037_0 = new Menu("root",130,22,"Verdana, Arial, Helvetica, sans-serif",11,"#618F6C","#666666","#F4F8F5","#FFFFFF","left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
mm_menu_0227130037_0.addMenuItem("News","location='/Services/news.php'");
mm_menu_0227130037_0.addMenuItem("Events","location='/Services/events.php'");
mm_menu_0227130037_0.addMenuItem("Statistics","location='/Services/statistics.php'");
if (session) {
mm_menu_0227130037_0.addMenuItem("Reports","location='/Services/reports.php'");
}
mm_menu_0227130037_0.addMenuItem("Discussion Forum","location='/Services/forum.php'");
mm_menu_0227130037_0.addMenuItem("FAQ","location='/Services/faq.php'");
mm_menu_0227130037_0.hideOnMouseOut=true;
mm_menu_0227130037_0.bgColor='#FFFFFF';
mm_menu_0227130037_0.menuBorder=1;
mm_menu_0227130037_0.menuLiteBgColor='#FFFFFF';
mm_menu_0227130037_0.menuBorderBgColor='#91B59A';
window.mm_menu_0227131043_0 = new Menu("root",301,22,"Verdana, Arial, Helvetica, sans-serif",11,"#618F6C","#666666","#F4F8F5","#FFFFFF","left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
mm_menu_0227131043_0.addMenuItem("Statutory Functions","location='/Statutory/functions.php'");
mm_menu_0227131043_0.addMenuItem("Legal Framework","location='/Statutory/legal_framework.php'");
mm_menu_0227131043_0.addMenuItem("Mandate of NCS","location='/Statutory/mandate.php'");
mm_menu_0227131043_0.addMenuItem("Customs & Excise Management Act (CEMA)","location='/Statutory/management_act.php'");
mm_menu_0227131043_0.hideOnMouseOut=true;
mm_menu_0227131043_0.bgColor='#FFFFFF';
mm_menu_0227131043_0.menuBorder=1;
mm_menu_0227131043_0.menuLiteBgColor='#FFFFFF';
mm_menu_0227131043_0.menuBorderBgColor='#91B59A';
window.mm_menu_0317141306_0 = new Menu("root",174,22,"Verdana, Arial, Helvetica, sans-serif",11,"#618F6C","#666666","#F4F8F5","#FFFFFF","left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
mm_menu_0317141306_0.addMenuItem("Mission & Vision","location='/About/mission_statement.php'");
mm_menu_0317141306_0.addMenuItem("The Management Team","location='/About/management_team.php'");
mm_menu_0317141306_0.addMenuItem("The NCS Board","location='/About/ncs_board.php'");
mm_menu_0317141306_0.addMenuItem("Historical Information","location='/About/historical_information.php'");
mm_menu_0317141306_0.addMenuItem("Organisation Structure","location='/About/organisation_structure.php'");
mm_menu_0317141306_0.addMenuItem("Customs Headquarters","location='/About/customs_headquarters.php'");
mm_menu_0317141306_0.addMenuItem("Zonal Headquarters","location='/About/zonal_headquarters.php'");
mm_menu_0317141306_0.addMenuItem("Area Commands","location='/About/area_commands.php'");
mm_menu_0317141306_0.addMenuItem("Special Commands/Units","location='/About/special_units.php'");
mm_menu_0317141306_0.addMenuItem("Photo Gallery","location='/About/photo-gallery.php'");
mm_menu_0317141306_0.hideOnMouseOut=true;
mm_menu_0317141306_0.bgColor='#FFFFFF';
mm_menu_0317141306_0.menuBorder=1;
mm_menu_0317141306_0.menuLiteBgColor='#FFFFFF';
mm_menu_0317141306_0.menuBorderBgColor='#91B59A';
window.mm_menu_0317143645_0 = new Menu("root",161,22,"Verdana, Arial, Helvetica, sans-serif",11,"#618F6C","#666666","#F4F8F5","#FFFFFF","left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
mm_menu_0317143645_0.addMenuItem("Destination Inspection","location='/Guidelines/Destination_Inspection/index.php'");
mm_menu_0317143645_0.addMenuItem("Excise","location='/Guidelines/Excise/index.php'");
mm_menu_0317143645_0.addMenuItem("Industrial Incentives","location='/Guidelines/Industrial_Incentives/index.php'");
mm_menu_0317143645_0.hideOnMouseOut=true;
mm_menu_0317143645_0.bgColor='#FFFFFF';
mm_menu_0317143645_0.menuBorder=1;
mm_menu_0317143645_0.menuLiteBgColor='#FFFFFF';
mm_menu_0317143645_0.menuBorderBgColor='#91B59A';
window.mm_menu_0317144116_0 = new Menu("root",149,22,"Verdana, Arial, Helvetica, sans-serif",11,"#618F6C","#666666","#F4F8F5","#FFFFFF","left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
mm_menu_0317144116_0.addMenuItem("Service Providers","location='/Stakeholders/service_providers.php'");
mm_menu_0317144116_0.addMenuItem("Importers","location='/Stakeholders/importers.php'");
mm_menu_0317144116_0.addMenuItem("Exporters","location='/Stakeholders/exporters.php'");
mm_menu_0317144116_0.addMenuItem("Manufacturers","location='/Stakeholders/manufacturers.php'");
mm_menu_0317144116_0.addMenuItem("Travellers","location='/Stakeholders/travellers.php'");
mm_menu_0317144116_0.addMenuItem("Visiting Crafts","location='/Stakeholders/visiting_crafts.php'");
mm_menu_0317144116_0.addMenuItem("Shippers","location='/Stakeholders/shippers.php'");
mm_menu_0317144116_0.addMenuItem("Licenced Agents","location='/Stakeholders/licenced_agents.php'");
mm_menu_0317144116_0.addMenuItem("Bonded Warehouses","location='/Stakeholders/bonded_warehouses.php'");
mm_menu_0317144116_0.addMenuItem("Bankers","location='/Stakeholders/bankers.php'");
mm_menu_0317144116_0.hideOnMouseOut=true;
mm_menu_0317144116_0.bgColor='#FFFFFF';
mm_menu_0317144116_0.menuBorder=1;
mm_menu_0317144116_0.menuLiteBgColor='#FFFFFF';
mm_menu_0317144116_0.menuBorderBgColor='#91B59A';
window.mm_menu_0317144627_0 = new Menu("root",149,22,"Verdana, Arial, Helvetica, sans-serif",11,"#618F6C","#666666","#F4F8F5","#FFFFFF","left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
mm_menu_0317144627_0.addMenuItem("Circulars","location='/Publications/circulars.php'");
mm_menu_0317144627_0.addMenuItem("Press Releases","location='/Publications/press_releases.php'");
mm_menu_0317144627_0.addMenuItem("Media Reports","location='/Publications/media_reports.php'");
mm_menu_0317144627_0.addMenuItem("Library Materials","location='/Publications/library_materials.php'");
mm_menu_0317144627_0.addMenuItem("Other Publications","location='/Publications/other_publications.php'");
mm_menu_0317144627_0.addMenuItem("Contract Awards","location='/Publications/contract_awards.php'");
mm_menu_0317144627_0.addMenuItem("Auctions Activities","location='/Publications/auctions_activities.php'");
mm_menu_0317144627_0.hideOnMouseOut=true;
mm_menu_0317144627_0.bgColor='#FFFFFF';
mm_menu_0317144627_0.menuBorder=1;
mm_menu_0317144627_0.menuLiteBgColor='#FFFFFF';
mm_menu_0317144627_0.menuBorderBgColor='#91B59A';
window.mm_menu_0331094849_0 = new Menu("root",130,22,"Verdana, Arial, Helvetica, sans-serif",10,"#618F6C","#666666","#F4F8F5","#FFFFFF","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_0331094849_0.addMenuItem("Import","location='/ProhibitionList/import.php'");
mm_menu_0331094849_0.addMenuItem("Export","location='/ProhibitionList/export.php'");
mm_menu_0331094849_0.hideOnMouseOut=true;
mm_menu_0331094849_0.bgColor='#FFFFFF';
mm_menu_0331094849_0.menuBorder=1;
mm_menu_0331094849_0.menuLiteBgColor='#FFFFFF';
mm_menu_0331094849_0.menuBorderBgColor='#91B59A';

mm_menu_0331094849_0.writeMenus();
} // mmLoadMenus()

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function MM_popupMsg(msg) { //v1.0
alert(msg);
}

3) Describe problem:
I want to create another menu to name it as "E-learning". how do i include it into the script of "menu.js" and also how was the the numbers "mm_menu_0331094849_0.addMenuItem" created.

pls i do need ur quick response.:( :confused: