Template:UCSF/Jixedbar2
From 2010.igem.org
(Difference between revisions)
(52 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | <html> | + | <html xmlns="http://www.w3.org/1999/xhtml"> |
+ | <head> | ||
+ | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
+ | <title>Select Menu Using DIV</title> | ||
+ | <style> | ||
+ | body{font-family:Arial, Helvetica, sans-serif;} | ||
+ | ul, li{margin:0; border:0; padding:0; list-style:none;} | ||
+ | #middlebar{ | ||
+ | position:absolute; | ||
+ | top:0px; | ||
+ | width:auto; | ||
- | + | right:0px; | |
- | + | font-size:11px; | |
- | + | color:#3b5d14; | |
- | # | + | background:#90b557; |
- | height: | + | font-weight:bold; |
+ | padding:4px; | ||
+ | border: solid 3px black; | ||
+ | height:30px; | ||
} | } | ||
- | + | #middlebar .menu li { | |
- | + | background:url(lm.png) left top no-repeat; | |
- | + | height:30px; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
float:left; | float:left; | ||
+ | margin-right:10px; | ||
} | } | ||
- | + | #middlebar .menu li a{ | |
- | + | color:#3b5d14; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | :# | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
text-decoration:none; | text-decoration:none; | ||
- | padding: | + | padding:0 10px; |
+ | height:30px; | ||
+ | line-height:30px; | ||
+ | display:block; | ||
+ | float:left; | ||
+ | padding:0 26px 0 10px; | ||
+ | background:url(rm.png) right top no-repeat; | ||
} | } | ||
- | + | #middlebar .menu li a:hover{ | |
- | . | + | color:#666666; |
- | + | ||
- | + | ||
- | + | ||
- | color:# | + | |
- | + | ||
} | } | ||
- | + | #middlebar ul .submenu { | |
- | + | border:solid 1px #c9dea1; | |
- | + | border-top:none; | |
- | + | background:#FFFFFF; | |
+ | position: relative; | ||
+ | top: 4px; | ||
+ | width:150px; | ||
+ | padding:6px 0; | ||
+ | clear:both; | ||
+ | z-index:2; | ||
+ | display:none; | ||
} | } | ||
- | + | #middlebar ul .submenu li{ | |
- | . | + | background:none; |
- | + | display:block; | |
- | + | float:none; | |
- | + | margin:0 6px; | |
- | + | border:0; | |
- | + | height:auto; | |
- | + | line-height:normal; | |
- | + | border-top:solid 1px #DEDEDE; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | #middlebar .submenu li a{ | |
- | . | + | background:none; |
- | color:# | + | display:block; |
- | + | float:none; | |
+ | padding:6px 6px; | ||
+ | margin:0; | ||
+ | border:0; | ||
+ | height:auto; | ||
+ | color:#105cbe; | ||
+ | line-height:normal; | ||
} | } | ||
- | + | #middlebar .submenu li a:hover{ | |
- | + | background:#e3edef; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | </style> | |
- | + | <script> | |
- | + | function showlayer(layer){ | |
- | + | var myLayer=document.getElementById(layer); | |
- | + | if(myLayer.style.display=="none" || myLayer.style.display==""){ | |
- | + | myLayer.style.display="block"; | |
- | + | } else { | |
- | + | myLayer.style.display="none"; | |
- | + | } | |
} | } | ||
+ | </script> | ||
+ | <script type="text/javascript" src="http://demo.marcofolio.net/create_a_sticky_sidebar_or_box/mootools.js"></script> | ||
+ | <script> | ||
+ | window.onscroll = function() | ||
+ | { | ||
+ | if( window.XMLHttpRequest ) { | ||
+ | $('middlebar').style.position = 'fixed'; | ||
+ | $('middlebar').style.top = '0'; | ||
+ | } | ||
+ | } | ||
+ | </script> | ||
+ | </head> | ||
- | + | <body> | |
- | + | <!-- | |
- | + | FOR OTHER TUTORIALS VISIT | |
- | + | http://woork.blogspot.com | |
- | + | --> | |
- | + | ||
- | + | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | <div id="middlebar" class="sidebox"> | |
- | + | <ul class="menu"> | |
- | + | <li><a href="#" onclick="javascript:showlayer('sm_1')">Profile</a></li> | |
- | + | <ul class="submenu" id="sm_1"> | |
- | + | <li><a href="asd">Profile</a></li> | |
- | + | <li><a href="asd">Inbox </a></li> | |
- | + | <li><a href="asd">Log-out</a></li> | |
- | + | </ul> | |
- | + | </ul> | |
- | + | </div> | |
- | + | ||
- | / | + | <div style="float:none; clear:both;"></div> |
- | + | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | |
- | + | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | |
- | + | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | |
- | + | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | |
- | + | ||
- | + | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | |
- | + | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | |
- | + | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | |
- | + | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | |
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | |||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <h1>This is the demo for the "Create Vimeo-like top navigation" tutorial</h1> | ||
+ | <p>You can go back to the original article here.</p> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | + | </body> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | </ | + | |
<script> | <script> | ||
- | + | var con = document.getElementById('content'); | |
+ | var bodycon = document.getElementById('bodyContent'); | ||
+ | var glo = document.getElementById('globalWrapper'); | ||
+ | document.body.removeChild(glo); | ||
+ | document.body.appendChild(bodycon); | ||
</script> | </script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</html> | </html> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- |
Latest revision as of 07:55, 9 September 2010
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
This is the demo for the "Create Vimeo-like top navigation" tutorial
You can go back to the original article here.