求助!用JS做的下拉菜单中有空格,文字就会折行,求解决办法!急!!在线等!谢谢!
" border="0" />看下拉菜单中的,每行文字都是因为有空格,所以折行了,有没有方法既保留空格又让文字在一行显示的呢?
下面是JS代码:
// JavaScript Document
function mmLoadMenus() {
if (window.mm_menu_0323235104_0) return;
/*
window.mm_menu_0323235104_0_1 = new Menu("FAQ",170,19,"Tahoma",12,"#041151","#ffffff","#DDE1ED","#919EC2","left","middle",3,0,1000,0,0,true,true,true,0,false,false);
mm_menu_0323235104_0_1.addMenuItem("FAQ of IVCM & PhonePilot","location='http://www. of IVCM & PhonePilot.htm'");
mm_menu_0323235104_0_1.addMenuItem("FAQ of UltraIM & UltraIM Pro","location='http://www. of UltraIM & UltraIM Pro.htm'");
mm_menu_0323235104_0_1.hideOnMouseOut=true;
mm_menu_0323235104_0_1.menuBorder=0;
mm_menu_0323235104_0_1.menuLiteBgColor='#ffffff';
mm_menu_0323235104_0_1.menuBorderBgColor='#ffffff';
mm_menu_0323235104_0_1.bgColor='#ffffff';
*/
window.mm_menu_0323235104_0 = new Menu("root",150,21,"Tahoma",12,"#041151","#ffffff","#DDE1ED","#919EC2","left","middle",5,0,1000,0,0,true,true,true,5,false,false);
mm_menu_0323235104_0.addMenuItem("document","location='http://www.'");
mm_menu_0323235104_0.addMenuItem("FAQ","location='http://www.'");
mm_menu_0323235104_0.addMenuItem("Forum","location='http://forum.'");
mm_menu_0323235104_0.addMenuItem("RequestSupport","location='http://www.'");
mm_menu_0323235104_0.hideOnMouseOut=true;
mm_menu_0323235104_0.menuBorder=0;
mm_menu_0323235104_0.menuLiteBgColor='#ffffff';
mm_menu_0323235104_0.menuBorderBgColor='#ffffff';
mm_menu_0323235104_0.bgColor='#ffffff';
window.mm_menu_0323234759_1 = new Menu("root",150,21,"Tahoma",12,"#041151","#ffffff","#DDE1ED","#919EC2","left","middle",5,0,1000,0,0,true,true,true,5,false,false);
mm_menu_0323234759_1.addMenuItem("Phone Alone for S60 3rd","location='http://www. Alone for S60 3rd.html'");
mm_menu_0323234759_1.addMenuItem("UltraIM Pro","location='http://www. Pro.htm'");
mm_menu_0323234759_1.addMenuItem("UltraIM","location='http://www.'");
mm_menu_0323234759_1.addMenuItem("IVCM for S60 3rd","location='http://www. for S60 3rd.htm'");
mm_menu_0323234759_1.addMenuItem("PhonePilot for S60 3rd","location='http://www. for S60 3rd.htm'");
mm_menu_0323234759_1.addMenuItem("IVCM for S60 2nd","location='http://www. for S60 2nd.htm'");
mm_menu_0323234759_1.addMenuItem("PhonePilot for S60 2nd","location='http://www. for S60 2nd.htm'");
mm_menu_0323234759_1.hideOnMouseOut=true;
mm_menu_0323234759_1.menuBorder=0;
mm_menu_0323234759_1.menuLiteBgColor='#ffffff';
mm_menu_0323234759_1.menuBorderBgColor='#ffffff';
mm_menu_0323234759_1.bgColor='#ffffff';
window.mm_menu_0323232432_3 = new Menu("root",150,21,"Tahoma",12,"#041151","#ffffff","#DDE1ED","#919EC2","left","middle",5,0,1000,0,0,true,true,true,5,false,false);
mm_menu_0323232432_3.addMenuItem("News","window.open('http://www.', '_self');");
mm_menu_0323232432_3.addMenuItem("Partners","window.open('http://www.', '_self');");
mm_menu_0323232432_3.addMenuItem("Jobs","window.open('http://www.', '_self');");
mm_menu_0323232432_3.addMenuItem("Contact us","window.open('http://www.', '_self');");
mm_menu_0323232432_3.hideOnMouseOut=true;
mm_menu_0323232432_3.menuBorder=0;
mm_menu_0323232432_3.menuLiteBgColor='#ffffff';
mm_menu_0323232432_3.menuBorderBgColor='#ffffff';
mm_menu_0323232432_3.bgColor='#ffffff';
window.mm_menu_0323233947_2 = new Menu("root",170,21,"Tahoma",12,"#000000","#000000","#e2e0cb","#d2d3d8","left","middle",3,0,1000,0,0,true,true,true,0,false,false);
mm_menu_0323233947_2.addMenuItem("FAQ of IVCM & PhonePilot","window.open('http://www. of IVCM & PhonePilot.htm', '_self');");
mm_menu_0323233947_2.addMenuItem("FAQ of UltraIM & UltraIM Pro","window.open('http://www. of UltraIM & UltraIM Pro.htm', '_self');");
mm_menu_0323233947_2.hideOnMouseOut=true;
mm_menu_0323233947_2.childMenuIcon="images/arrows.gif";
mm_menu_0323233947_2.menuBorder=0;
mm_menu_0323233947_2.menuLiteBgColor='#ffffff';
mm_menu_0323233947_2.menuBorderBgColor='#ffffff';
mm_menu_0323233947_2.bgColor='#ffffff';
mm_menu_0323232432_3.writeMenus();
}
[[it] 本帖最后由 weihaooo 于 2008-1-31 12:16 编辑 [/it]]