Team:korea u seoul/navbar
From 2010.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<head> | <head> | ||
<style type="text/css"> | <style type="text/css"> | ||
- | + | ||
- | + | ||
- | + | /* ----------- Navigation ----------- */ | |
- | + | #top-navigation{ | |
- | + | background : url(img/topnav-bg.gif) repeat-x ; | |
- | height : | + | width : auto ; |
+ | height : 48px ; | ||
+ | margin : 0 auto ; | ||
} | } | ||
- | li{ float : left ; | + | #navigation{ |
+ | background : url(img/nav-bg.gif) repeat-x ; | ||
+ | height : 32px ; | ||
+ | margin : 0 auto ; | ||
+ | width : auto ; | ||
+ | } | ||
+ | #navigation ul{ | ||
+ | height : 32px ; | ||
+ | line-height : 32px ; | ||
+ | } | ||
+ | #navigation ul li{ | ||
+ | display : inline ; | ||
+ | } | ||
+ | #navigation ul li a, | ||
+ | #navigation ul li a:visited { | ||
+ | background : url(img/line-a.gif) right no-repeat ; | ||
+ | padding : 0 20px ; | ||
+ | display : block ; | ||
+ | text-decoration : none ; | ||
+ | float : left ; | ||
+ | color : #4261df ; | ||
+ | font-weight : bold ; | ||
+ | text-shadow : #ffffff 2px 2px 2px ; | ||
+ | } | ||
+ | #navigation ul li a:hover{ | ||
+ | color : #1532a5 ; | ||
+ | } | ||
+ | |||
+ | /* ----------- Sub Menu ----------- */ | ||
+ | #sublinks{ | ||
+ | width : auto ; | ||
+ | margin : 0 auto ; | ||
+ | background : #888888 url(img/sublink.gif) ; | ||
+ | height : 30px ; | ||
+ | font-size : 11px ; | ||
+ | } | ||
+ | #sublinks ul{ | ||
+ | height : 32px ; | ||
+ | line-height : 31px ; | ||
+ | } | ||
+ | #sublinks ul li{ | ||
+ | display : inline ; | ||
+ | } | ||
+ | #sublinks ul li a, | ||
+ | #sublinks ul li a:visited { | ||
+ | padding : 0 20px ; | ||
+ | display : block ; | ||
+ | text-decoration : none ; | ||
+ | float : left ; | ||
+ | color : #FFFFFF ; | ||
+ | } | ||
+ | #sublinks ul li a:hover{ | ||
+ | text-decoration : underline ; | ||
+ | } | ||
+ | |||
+ | /* ----------- Hide Sub menu ----------- */ | ||
+ | #s2, #s3 { display : none ;} | ||
</style> | </style> | ||
</head> | </head> | ||
+ | |||
+ | |||
<body> | <body> | ||
- | < | + | <!-- HEADER --> |
- | <ul | + | <div id= "top-navigation" > |
- | <li | + | <!-- Something in the header here --> |
- | <li> <a href= "# | + | </div> |
- | <li> <a href= " # | + | |
- | <li> <a href= "# | + | <!-- Main Menu --> |
- | <li> <a href= "# | + | <div id= "navigation" > |
+ | <ul id= "mymenu" > | ||
+ | <li> <a href= "#" onmouseover= "javascript:showsubmenu(1)" > Home </a> </li> | ||
+ | <li> <a href= "#" onmouseover= "javascript:showsubmenu(2)" > Movies </a> </li> | ||
+ | <li> <a href= "#" onmouseover= "javascript:showsubmenu(3)" > Music </a> </li> | ||
+ | <li> <a href= "contact.html" > Contact </a> </li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
+ | <!-- SUB MENU --> | ||
+ | <div id= "sublinks" > | ||
+ | <ul id= "s1" > | ||
+ | <li> <a href= "#" > General </a> </li> | ||
+ | <li> <a href= "#" > Information </a> </li> | ||
+ | <li> <a href= "#" > News </a> </li> | ||
+ | </ul> | ||
+ | |||
+ | <ul id= "s2" > | ||
+ | <li> <a href= "#" > Drama </a> </li> | ||
+ | <li> <a href= "#" > Thriller </a> </li> | ||
+ | <li> <a href= "#" > Action </a> </li> | ||
+ | <li> <a href= "#" > Horror </a> </li> | ||
+ | <li> <a href= "#" > Colossal </a> </li> | ||
+ | </ul> | ||
+ | |||
+ | <ul id= "s3" > | ||
+ | <li> <a href= "#" > Rock </a> </li> | ||
+ | <li> <a href= "#" > Pop </a> </li> | ||
+ | <li> <a href= "#" > Classical </a> </li> | ||
</ul> | </ul> | ||
- | </ | + | </div> |
- | </html> | + | </body> |
+ | </style></html> | ||
+ | |||
{| style="fontsize=5" cellpadding="5" cellspacing="0" border="0" bordercolor="white" width="62%" align="center" | {| style="fontsize=5" cellpadding="5" cellspacing="0" border="0" bordercolor="white" width="62%" align="center" | ||
!align="center"|[[Team:Korea_U_Seoul|Home]] | !align="center"|[[Team:Korea_U_Seoul|Home]] |
Latest revision as of 11:42, 19 October 2010
Home | Team | Project | Parts | Modeling | Notebook | Safety |
---|