<Html> <pead> <meta name = "Author" CONTENT = "Ma Jia Nan"> <meta name = "Date" CONTENT = "2008-12-7"> <meta name = "Description "CONTENT =" "> <title> Menu </title> <style type = 'text/css '> # menubar {font-family: verdana; font-size: 12px; margin: 1px; }# menubar li {float: left; position: relative; text-align: left ;} /* each menu item style */# menubar li a {border-style: none; color: black; display: block; width: 150px; height: 20px; line-height: 20px; padding-left: 10px; text-decoration: none;}/* the first level menu which displays default */# menubar. menuMain {border-color: # C0C0C0; border-width: 1px; border-style: solid;}/* the first leve style when mouse on it */# menubar li: hover {background-color: # efefef; text-decoration: underline;}/* the second level menu block style */# menubar li ul {background-color: # efef; border-style: none; display: none; position: absolute; top: 20px; left:-40px; margin-top: 2px; width: 150px ;} /* the sub menu item style when mouse on it */# menubar li ul li a: hover {text-decoration: underline; padding-left: 20px ;} /* the third or more level menu block style */# menubar li ul {display: none; position: absolute; top: 0px; left: 150px; margin-top: 0; margin-left: 0; width: 150px ;} </style> </pead> <body> <ul id = 'menubar '> <li onmouseover = "displaySubMenu (this)" onmouseout = "hideSubMenu (this) "> File <ul> <li> New </li> <li> Open </li> <li> Save As </li> <li> Close </li> </ul> </li> <li onmouseover = "displaySubMenu (this) "onmouseout =" hideSubMenu (this) "> Edit <ul> <li> Cut </li> <li> Copy </li> <li> Paset </li> <li> Delete </li> <li> Select All </li> </ul> </li> <li onmouseover = "displaySubMenu (this) "onmouseout =" hideSubMenu (this) "> View <ul> <li onmouseover =" displaySubMenu (this) "onmouseout =" hideSubMenu (this) "> View List <ul> <li> Tool Bar </li> <li> State Bar </li> <li> Function List </li> <li> Label List </li> </ul> </li> <li> Show Line Number </li> <li> Set Color </li> </ul> </li> </ ul> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]