JS realizes the exquisite silver gray vertical folding Menu

Source: Internet
Author: User
Tags eval

This article describes the implementation of JS elegant gray-Silver vertical folding menu. Share to everyone for your reference. The implementation methods are as follows:

?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26-27--28 29---30 31--32 33 34 35 36 37 38-39 40 41 42 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 5, 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 11 9 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148-149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179-18 0 181 182 183 184 185 186 187 188 <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml "> <head> <meta http-equiv=" Content-type "content=" text/html; Charset=utf-8 "/> <title> page Left vertical menu </title> <style> body {background-color: #F3F3F3; margin:0px; font-size:9pt; Background-position:center; Text-decoration:none; Scrollbar-face-color: #f6f6f6; Scrollbar-highlight-color: #ffffff; Scrollbar-shadow-color: #EEEEEE; Scrollbar-3dlight-color: #EEEEEE; Scrollbar-arrow-color: #330000; Scrollbar-track-color: #f6f6f6; Scrollbar-darkshadow-color: #ffffff; /* site link total CSS definition/a{text-decoration:underline} a:link {color: #595989;} a:visited {color: #595989;} a:hover{color: #ff0 000;} a:active {color: #595989; DT1,. DT2,. DT3,. Dt4,. dt{padding:0px; margin:0px; border:0px; padding-left:25px; border -left:5px solid #c0c0c0; border-top:1px solid #ffffff; BORDER-BOTTOM:1PX Solid #c0C0C0; Width:auto;text-align:left; line-height:26px; height:26px; Background: #E0E0E0; Cursor:pointer!important; Cursor:hand; Display:block; }/* Here you can add a background image. dt1{Background-image:url (); Background-repeat:no-repeat Background-position:right Center; dt{back Ground-image:url (); Background-repeat:no-repeat; BACKGROUND-POSITION:8PX Center; }. dt2{Background-image:url (); Background-repeat:no-repeat background-position:right Center; dt4{Background-imag E:url (); Background-repeat:no-repeat; Background-position:right Center; }. dt3{Background-image:ur (); Background-repeat:no-repeat Background-position:right Center; * * #aboutbox {/* left box*/padding:0px; margin:0px border:0px; width:190px; float:left; background: #eee;} #aboutbox DL {/*dl, dt, dd*/margin:0px border:0px; border:medium none;/* Do not display borders * * background: #eeeeee; Background-image:url ();/* Back Scene image, here omitted the * */background-repeat:repeat-y; Background-position:left; Clear:both; } #aboutbox dd {padding:0px; margin:0px; border:0px; Background: #eee; border-top:1px solid #fff; border-left:5px solid #e0e0e0; padding-right:3px; #aboutbox ul {/*ul, Li definition/padding:0px; margin:0px; border:0px; list-style-type:none;} #aboutbox li {padding:0px; margin:0px; border:0px; Text-align:left; text-indent:10px; List-style:none; #aboutbox Li a {padding-left:5px; margin:0px; border:0px; display:block; background: #eee; Font-weight:normal;heig ht:22px;line-height:22px; Color: #000; border:1px solid #eee; Text-decoration:none;} #aboutbox Li A:link, #aboutbox Li a:visited {height:22px;line-height:22px;} #aboutbox li a:hover {padding-left:5px; ba Ckground-color: #e4e4e4; border:1px solid #999999; Color: #D90000; height:22px;line-height:22px;} #aboutbox li a:active {color: #333333; Height:22px;line-height:22px;background: #EEEEEE;}. center_tdbgall/* Middle table background color * /{background: #ffffff;} </style> </head> <body> <table class= "Center_tdbgall" width= "191" BordeR= "0" cellspacing= "0" cellpadding= "0" > <tr> <td width=191 rowspan= "2" valign=top class= "Web_left_all" > & Lt;div id=aboutbox> <dl> <dt class= "DT1" Id=dt1 onmouseover=showbg (1) onclick=showsubmenu (1) onmouseout= SHOWOUTBG (1) ><B> website News </B> <dd id=submenu1> <ul> <li><a href= '/' > today's attention </a ></LI> <li><a href= '/' > Latest collation </A></LI> <li><a href= '/' > Download ranking </A> </LI> </ul> </dd> </dt> </dl> <dl> <dt class= "DT2" Id=dt2 ONMOUSEOVER=SHOWBG (2) Onclick=showsubmenu (2) ONMOUSEOUT=SHOWOUTBG (2) ><B> Management news </B> <dd id=submenu2> <ul> <li ><a href= '/' > News classification </A></LI> <li><a href= '/' > news list </A></LI> <LI> <a href= '/' > Audit news </A></LI> </ul> </dd> </dt> </dl> <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 "+ Si D + ". style.display= ' None ';"); Eval ("DT" + Sid + ". Classname= ' dt1 ';"); } function Showbg (SID) {Whichel = eval (' submenu ' + SID); if (WhichEl.style.display = = ' None ') {eval ("DT" + SID +). Class Name= ' dt4 '; "); else{eval ("DT" + Sid + ". Classname= ' DT3 ';");} function SHOWOUTBG (SID) {Whichel = eval (' submenu ' + SID); if (WhichEl.style.display = = ' None ') {eval ("DT" + SID +). classn Ame= ' dt1 '; "); else{eval ("DT" + Sid + ". Classname= ' DT2 ';");} </script> </div></TD> </tr> </table> </body> </html>

The

wants this article to help you with your JavaScript programming.

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.