Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html><head>
- <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
- <style type="text/css">
- body {
- margin: 0;
- padding: 0;
- }
- #navbar {
- height: 30px;
- border-bottom: 1px solid #c9d7f1;
- font: 13px/27px Arial,sans-serif;
- }
- #navbarl {
- background-color: white;
- height: 30px;
- left: 0;
- padding-left: 4px;
- position: absolute;
- top: 0;
- white-space: nowrap;
- z-index: 1001;
- }
- #navbarr {
- height: 30px;
- padding-right: 4px;
- position: absolute;
- right: 0;
- top: 0;
- white-space: nowrap;
- z-index: 1000;
- }
- #navbar ul {
- display: block-inline;
- line-height: 30px;
- list-style: none;
- margin: 0;
- padding: 0;
- white-space: nowrap;
- }
- #navbar ul li {
- display: inline-block;
- list-style: none;
- margin: 0;
- padding: 0;
- position: relative;
- white-space: nowrap;
- }
- #navbar ul li a {
- color: #36c !important;
- display: block;
- line-height: 27px;
- padding: 0;
- text-decoration: none;
- white-space: nowrap;
- }
- /* drop down menu */
- #navbard {
- background-color: white;
- border: 1px solid #ccc;
- box-shadow: 0 1px 5px #CCCCCC;
- margin: 0;
- padding: 0;
- position: absolute;
- top: 29px !important;
- z-index: 999;
- }
- #navbard.ddpassive {
- display: none;
- }
- #navbard.ddactive {
- display: block;
- }
- #navbard ul li {
- padding:0;
- margin: 0;
- display: list-item;
- }
- #navbard ul li a {
- display: block;
- padding-right: 16px;
- }
- #navbar ul li a {
- background-color: white;
- }
- #navbar ul li a:hover {
- background-color: #eef;
- }
- #navbar ul li a span.item,
- #navbar ul li a span.selitem {
- border-left: 1px solid white;
- border-right: 1px solid white;
- border-top: 2px solid transparent;
- display: block;
- line-height: 27px;
- padding: 0 5px;
- }
- #navbar ul li a span.selitem {
- border-top: 2px solid #2c85f0;
- color: black !important;
- font-weight: bold;
- }
- #navbar ul li a span.ddactive {
- background-color: white;
- border-color: #ccc;
- padding-bottom: 1px;
- position: relative;
- z-index: 1000;
- }
- .symbollight {
- color: #ccc;
- padding-left: 3px;
- }
- </style>
- <script type="text/javascript" src="lists_files/jquery-1.js"></script>
- <script>
- /* @version 1.2 fixedMenu + closeOnClick
- * @author Lucas Forchino, Iwan Gabovitch
- * @webSite: http://www.jqueryload.com, http://qubodup.net
- * jquery top fixed menu
- * added close-on-click-anywhere functionality
- */
- (function($){
- $.fn.fixedMenu=function(){
- /* close menus on click */
- return this.each(function(){
- var menu=$(this);
- menu.find('ul li > a#dditem').bind('click',function(e){
- if ($(this).find('span').hasClass('ddpassive')){
- $(this).find('span').removeClass('ddpassive');
- $(this).parent().find('div').removeClass('ddpassive');
- $(this).find('span').addClass('ddactive');
- $(this).parent().find('div').addClass('ddactive');
- }
- else{
- $(this).find('span').removeClass('ddactive');
- $(this).parent().find('div').removeClass('ddactive');
- $(this).find('span').addClass('ddpassive');
- $(this).parent().find('div').addClass('ddpassive');
- }
- //we don't want to propagate the click event back to the document
- e.stopPropagation();
- })
- });
- }
- })(jQuery);
- $('document').ready(function(){
- $('#navbar').fixedMenu();
- });
- $(document).click(function(e) {
- //if the menu is opened we well close it
- if($('#dditem').find('span').hasClass('ddactive')){
- $('#dditem').click();
- }
- });
- </script>
- <style></style></head>
- <body>
- <div id="navbar">
- <div id="navbarl">
- <ul>
- <li>
- <a href="http://freegamer.blogspot.com/">
- <span class="item selitem">Blog</span>
- </a>
- </li><li>
- <a href="http://forum.freegamedev.net/">
- <span class="item">Forums</span>
- </a>
- </li><li>
- <a href="http://freegamedev.net/irc/">
- <span class="item">Chat</span>
- </a>
- </li><li>
- <a href="http://freegamedev.net/wiki/">
- <span class="item">Wiki</span>
- </a>
- </li><li>
- <a id="dditem">
- <span class="item ddpassive">more<span class="symbollight ddpassive">▾</span></span>
- </a>
- <div id="navbard" class="ddpassive">
- <ul>
- <li>
- <a href="">
- <span class="item">Games Planet</span>
- </a>
- </li><li>
- <a href="">
- <span class="item">Dev Planet</span>
- </a>
- </li><li>
- <a href="">
- <span class="item">Revision Planet</span>
- </a>
- </li><li>
- <a href="">
- <span class="item">Asset Search</span>
- </a>
- </li><li>
- <a href="http:///">
- <span class="item">Twitter</span>
- </a>
- </li><li>
- <a href="http:///">
- <span class="item">Facebook</span>
- </a>
- </li><li>
- <a href="http://opengameart.org/">
- <span class="item">OpenGameArt</span>
- </a>
- </li><li>
- <a href="">
- <span class="item">LibreGameWiki</span>
- </a>
- </li><li>
- <a href="http://freesound.org/">
- <span class="item">FreeSound</span>
- </a>
- </li><li>
- <a href="http://blendswap.com/">
- <span class="item">BlendSwap</span>
- </a>
- </li>
- </ul>
- </div>
- </li>
- </ul>
- </div>
- <div id="navbarr">
- <ul>
- <li>
- <a href="">
- <span class="item">Anon</span>
- </a>
- </li><li>
- <a href="">
- <span class="item">Settings</span>
- </a>
- </li><li>
- <a href="">
- <span class="item">Sign Out</span>
- </a>
- </li>
- </ul>
- </div>
- </div>
- <div>This is different</div>
- <div><p>This is content</p>
- <ul><li>stuff</li><li>stuff other</li></ul></div>
- </body></html>
Add Comment
Please, Sign In to add comment