[Html] <mce: script language = "javascript"> <! -- Var count = 0; // counter var limit = new Array (); // used to record which menus are currently displayed var countlimit = 1; // The number of menus opened at the same time, customizable function expandIt (el) {obj = eval ("" + el); if (obj. style. display = "none") {obj. style. display = "block"; // display the sub-menu if (count <countlimit) {// limit 2 limit [count] = el; // enter the array count ++ ;} else {eval ("" + limit [0]). style. display = "none"; for (I = 0; I <limit. length-1; I ++) {limit [I] = limit [I + 1];} // The array is used to turn around one character, and the next one is moved forward to a limit [limit. length-1] = el ;}} else {obj. style. display = "none"; var j; www.2cto.com for (I = 0; I <limit. length; I ++) {if (limit [I] = el) j = I;} // obtain the position of the currently clicked menu in the limit array for (I = j; I <limit. length-1; I ++) {limit [I] = limit [I + 1];} // All arrays after j are moved forward by one limit [limit. length-1] = null; // Delete the last count --;} of the array // --> </mce: script>