This article mainly introduces js's exquisite silver-gray vertical folding menu, which can achieve the vertical folding menu on the left of the page, which is very beautiful and practical, for more information, see the examples in this article to illustrate how js achieves the exquisite silver-gray vertical bar folding menu. Share it with you for your reference. The specific implementation method is as follows:
Vertical menu on the left of the webpage
-
Website Dynamics
-
- Today's attention
- Latest sorting
- Download ranking
-
Manage news
-
- News Classification
- News list
- Review News
Script function showsubmenu (sid) {whichEl = eval ('submenu '+ sid); if (whichEl. style. display = 'None') {eval ("submenu" + sid + ". style. display = '';"); eval ("dt" + sid + ". className = 'dt2'; ");} else {eval (" submenu "+ sid + ". style. display = 'none'; "); eval (" dt "+ sid + ". className = 'dt1'; ") ;}} function showbg (sid) {whichEl = eval ('submenu '+ sid); if (whichEl. style. display = 'None') {eval ("dt" + sid + ". className = 'dt4'; ");} else {eval (" dt "+ sid + ". className = 'dt3 '; ") ;}} function showoutbg (sid) {whichEl = eval ('submenu' + sid); if (whichEl. style. display = 'None') {eval ("dt" + sid + ". className = 'dt1'; ");} else {eval (" dt "+ sid + ". className = 'dt2'; ") ;}} script |
I hope this article will help you design javascript programs.