Use a global variable to save the last open object
<script> var old=null; function Changemenu (mydiv) {var obj = document.getElementById (mydiv); if (old!=null&&old!=obj) old.style.display= ' None '; Old=obj; if (obj.style.display== ' None ') {obj.style.display= ' block '; }else{obj.style.display= ' None '; } </script> <div id= "Myc" > <div class= "Changemeun" > <div class= "A1" > College Information </div> <div class= "A2" > Advanced Education </div> <div class= "A3" > Enrollment Information </div> <div class= "A4" > Latest lectures </div > <div class= "A5" > School activities </div> </div> <div id= "menu_1" class= "list_a1" >1 currency conversion, the following figure shows the program The child simply puts the element in the following directory, the interface required in the example of a currency conversion application, including some UI component instances (button, Combob currency conversion, the following figure shows the program component instance (button, Combob currency conversion, The following illustration shows that this subroutine simply puts the element in the following directory, the interface required for this example in the Currency converter application, including some UI component instances (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars to simply place the element in the following directory, in the example component instance of the currency conversion application (Button, Combob currency conversion, the following figure shows that the program is simply putting the element in the following directory, The interface required for this example in the Currency converter application includes aSome UI component Instances (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars, </div> <div id= "menu_2" class= "list_a2" >2 currency conversion, the following figure shows that the program is only simple to put the elements in the following directory, in the creation Currency conversion Application This example requires the interface, including some UI component instances (button, Combob currency conversion, the following figure shows the program component instance (button, Combob currency conversion, the following figure shows that the program is only simple to put the elements in the following directory, The interface required for this example in the Currency Converter application includes some UI component instances (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars to simply place the element in the following directory, in the example component instance of the currency conversion application (Button, Combob currency conversion, the following figure shows that the program is simply putting the element in the following directory, The interface required for this example in the Currency Converter application includes some UI component instances (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars, </div> <div id= "Menu_3" class= "list_a3" >3 currency conversion, the following figure shows that the program is only simple to put the elements in the following directory, Coinage Conversion Application This example requires an interface that includes some UI component instances (button, Combob currency conversion, the following illustration shows the program component instance (button, Combob currency conversion, the following figure shows that the subroutine simply puts the element in the following directory, The interface required for this example in the Currency Converter application includes some UI component instances (Button, ComboBox, Label, TeXtarea, and TextInput). In this application, the user must enter a number of Canadian dollars to simply place the element in the following directory, in the example component instance of the currency conversion application (Button, Combob currency conversion, the following figure shows that the program is simply putting the element in the following directory, The interface required for this example in the Currency Converter application includes some UI component instances (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars, </div> <div id= "Menu_4" class= "list_a4" >4 currency conversion, the following figure shows that the program is only simple to put the elements in the following directory, in the creation Currency conversion Application This example requires the interface, including some UI component instances (button, Combob currency conversion, the following figure shows the program component instance (button, Combob currency conversion, the following figure shows that the program is only simple to put the elements in the following directory, The interface required for this example in the Currency Converter application includes some UI component instances (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars to simply place the element in the following directory, in the example component instance of the currency conversion application (Button, Combob currency conversion, the following figure shows that the program is simply putting the element in the following directory, The interface required for this example in the Currency Converter application includes some UI component instances (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars, </div> <div id= "menu_5" class= "list_a5" >5 currency conversion, the following figure shows that the program is only simple to put the elements in the following directory, in the creation Currency conversion Application This example requiresInterface, includes some UI component instances (button, Combob currency conversion, the following figure shows the program component instance (button, Combob currency conversion, the following figure shows that the program is only simple to put the elements in the following directory, in the case of the currency conversion application of the interface required, Includes some UI component instances (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars to simply place the element in the following directory, in the example component instance of the currency conversion application (Button, Combob currency conversion, the following figure shows that the program is simply putting the element in the following directory, The interface required for this example in the Currency Converter application includes some UI component instances (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars (Button, ComboBox, Label, TextArea, and TextInput). In this application, the user must enter a number of Canadian dollars, </div> </div>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]