[JS+CSS] Click on the hidden layer, click on the other layer can not hide the original layer _javascript tips

Source: Internet
Author: User
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]
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.