Template:Paris2009 menu5

From 2009.igem.org

(Difference between revisions)
 
(80 intermediate revisions not shown)
Line 1: Line 1:
-
<html>
+
<div id="menu2">
 +
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<head>
-
<script type="text/javascript">
+
    <title>Menu accordéon avec jQuery</title>
-
<!--
+
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
/* This script and many more are available free online at
+
<style type="text/css">
-
The JavaScript Source :: http://javascript.internet.com
+
-
Created by: Travis Beckham :: http://www.squidfingers.com | http://www.podlob.com */
+
-
/* Coded by Travis Beckham
+
#navigation {
-
  http://www.squidfingers.com | http://www.podlob.com
+
    width: 110px;
-
  version date: 06/02/03
+
    margin: 20px 13px 0 7px;
-
  If want to use this code, feel free to do so, but please leave this message intact. */
+
    float: left;
-
 
+
    padding:0px;
-
// Node Functions
+
    list-style: none;
-
 
+
    border-width: 0px;
-
if(!window.Node){
+
-
  var Node = {ELEMENT_NODE : 1, TEXT_NODE : 3};
+
}
}
-
 
+
-
function checkNode(node, filter){
+
#navigation a, #navigation span {
-
  return (filter == null || node.nodeType == Node[filter] || node.nodeName.toUpperCase() == filter.toUpperCase());
+
    display:block;
 +
    width: 110px;
 +
    list-style: none;
 +
    background:url(https://static.igem.org/mediawiki/2009/7/7c/Menu_Paris.png)
 +
}
 +
 +
#navigation .toggleSubMenu2{
 +
    list-style: none;
 +
    text-align:center;
 +
    margin:0px;
 +
    font-weight:bold;
 +
    background: url(https://static.igem.org/mediawiki/2009/7/7c/Menu_Paris.png) repeat;
 +
    color:#b0310e;
}
}
-
function getChildren(node, filter){
+
-
  var result = new Array();
+
#navigation .toggleSubMenu a, #navigation .toggleSubMenu span {
-
  var children = node.childNodes;
+
    list-style: none;
-
  for(var i = 0; i < children.length; i++){
+
    text-align:center;
-
     if(checkNode(children[i], filter)) result[result.length] = children[i];
+
    margin:0px;
-
  }
+
    background: url(https://static.igem.org/mediawiki/2009/7/7c/Menu_Paris.png) repeat;
-
  return result;
+
    color:#b0310e;
 +
    font-weight:bold;
 +
}
 +
 +
#navigation .open a, #navigation .open span {
 +
    list-style: none;
 +
    margin:0px;   
 +
}
 +
 +
#navigation li a:hover, #navigation li a:focus, #navigation li a:active {
 +
     text-decoration:underline;
 +
    color:#e53100;
 +
}
 +
 +
#navigation .subMenu {
 +
    background: url(https://static.igem.org/mediawiki/2009/7/7c/Menu_Paris.png) repeat;
 +
    margin: 0px;
 +
    border-width: 0px;
 +
    list-style: none;
 +
}
 +
 +
#navigation ul.subMenu a {
 +
    color:#e4e4e4;
 +
    text-align:center;
 +
    font-weight:normal;
}
}
-
function getChildrenByElement(node){
+
 
-
  return getChildren(node, "ELEMENT_NODE");
+
#navigation ul.subMenu a:active, #navigation ul.subMenu a:focus, #navigation ul.subMenu a:hover, #navigation ul.subMenu .selflink{
 +
    color:white;
 +
    text-align:center;
 +
    text-decoration:underline;
 +
    font-weight:normal;
}
}
-
function getFirstChild(node, filter){
+
.menu_header {
-
  var child;
+
    display: block;
-
  var children = node.childNodes;
+
    width: 110px;
-
  for(var i = 0; i < children.length; i++){
+
    background: url(https://static.igem.org/mediawiki/2009/e/eb/Menu_header.png) no-repeat;
-
    child = children[i];
+
     color: #FFF;
-
     if(checkNode(child, filter)) return child;
+
-
  }
+
-
  return null;
+
}
}
-
function getFirstChildByText(node){
+
.menu_footer {
-
  return getFirstChild(node, "TEXT_NODE");
+
    width:110px;
 +
    height:10px;
 +
    background: url(https://static.igem.org/mediawiki/2009/d/d5/Footer_Menu.png) no-repeat;
 +
    color: #FFF;
}
}
-
function getNextSibling(node, filter){
+
.open_at_load {
-
  for(var sibling = node.nextSibling; sibling != null; sibling = sibling.nextSibling){
+
    background: url(https://static.igem.org/mediawiki/2009/7/7c/Menu_Paris.png) repeat;
-
     if(checkNode(sibling, filter)) return sibling;
+
     color:#e4e4e4;
-
  }
+
    list-style: none;
-
  return null;
+
    text-align:center;
 +
    margin:0px;
 +
    padding:0px;
}
}
-
function getNextSiblingByElement(node){
+
-
        return getNextSibling(node, "ELEMENT_NODE");
+
#navigation ul.open_at_load a {
 +
    background: url(https://static.igem.org/mediawiki/2009/7/7c/Menu_Paris.png) repeat;
 +
    color:#e4e4e4;
 +
    list-style: none;
 +
    text-align:center;
 +
    border-width: 0px;
 +
    font-weight:normal;
}
}
-
// Menu Functions & Properties
+
#navigation ul.open_at_load li a:focus, #navigation ul.open_at_load li a:hover,  #navigation ul.open_at_load li a:active {
 +
    background: nurl(https://static.igem.org/mediawiki/2009/7/7c/Menu_Paris.png) repeat;
 +
    color:white;
 +
    list-style: none;
 +
    text-align:center;;
 +
    border-width: 0px;
 +
    text-decoration:underline;
 +
    font-weight:normal;
 +
}
-
var activeMenu = null;
 
-
function showMenu() {
 
-
  if(activeMenu){
 
-
    activeMenu.className = "";
 
-
    getNextSiblingByElement(activeMenu).style.display = "none";
 
-
  }
 
-
  if(this == activeMenu){
 
-
    activeMenu = null;
 
-
  } else {
 
-
    this.className = "active";
 
-
    getNextSiblingByElement(this).style.display = "block";
 
-
    activeMenu = this;
 
-
  }
 
-
  return false;
 
-
}
 
-
function initMenu(){
+
</style>
-
  var menus, menu, text, a, i;
+
<!--[if lte IE 6]>
-
  menus = getChildrenByElement(document.getElementById("menu"));
+
<style type="text/css">
-
  for(i = 0; i < menus.length; i++){
+
li {
-
    menu = menus[i];
+
     height: 1px;
-
    text = getFirstChildByText(menu);
+
-
    a = document.createElement("a");
+
-
    menu.replaceChild(a, text);
+
-
    a.appendChild(text);
+
-
    a.href = "#";
+
-
    a.onclick = showMenu;
+
-
     a.onfocus = function(){this.blur()};
+
-
  }
+
}
}
 +
</style>
 +
<![endif]-->
-
if(document.createElement) window.onload = initMenu;
+
 
-
//-->
+
 
 +
   
 +
<script type="text/javascript" src="http://www.alsacreations.com/xmedia/tuto/exemples/accordeon/jquery-1.2.1.js"></script>
 +
    <script type="text/javascript">
 +
    <!--
 +
    $(document).ready( function () {
 +
        // Hide subMenu
 +
        // Exept the "open_at_load" :
 +
        $("ul.subMenu:not('.open_at_load')").hide();
 +
        // On selectionne tous les items de liste portant la classe "toggleSubMenu"
 +
   
 +
        // replace by span:
 +
        $("li.toggleSubMenu span").each( function () {
 +
            // On stocke le contenu du span :
 +
            var TexteSpan = $(this).text();
 +
            $(this).replaceWith('<a href="" title="Afficher le sous-menu">' + TexteSpan + '</a>') ;
 +
        } ) ;
 +
   
 +
        // modify "click" on link listed in class "toggleSubMenu" :
 +
        $("li.toggleSubMenu > a").click( function () {
 +
            // if subMenu is already open, we close it :
 +
            if ($(this).next("ul.subMenu:visible").length != 0) {
 +
                $(this).next("ul.subMenu").slideUp("normal", function () { $(this).parent().removeClass("open") } );
 +
            }
 +
            // if subMenu is hided, we close them :
 +
            else {
 +
                $("ul.subMenu").slideUp("normal", function () { $(this).parent().removeClass("open") } );
 +
                $(this).next("ul.subMenu").slideDown("normal", function () { $(this).parent().addClass("open") } );
 +
            }
 +
            return false;
 +
        });
 +
   
 +
    } ) ;
 +
// -->
</script>
</script>
</head>
</head>
<body>
<body>
-
<table>
+
<table cellspacing="0"><tr><td>
-
<ul id="menu">
+
    <ul id="navigation">
-
  <li class="menu_header">&nbsp;
+
        <li class="menu_header">&nbsp;
-
<hr>
+
    <hr>
-
  <li class="title">. Home .
+
    <hr>
-
    <ol class="none">
+
        <li class="toggleSubMenu"> <span> Home </span>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris#top">&nbsp;Synopsis</a></li>
+
            <ul class="subMenu">
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Brainstorm#top">&nbsp;Brainstorm</a></li>
+
                <li><a href="https://2009.igem.org/Team:Paris#top">Synopsis</a></li>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Project#top">&nbsp;OMV Project</a></li>
+
    <hr>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Conclusion#top">&nbsp;Conclusion</a></li>
+
                <li><a href="https://2009.igem.org/Team:Paris/Project#top">Project overview</a></li>
-
     </ol>
+
    <hr>
-
  </li>
+
                <li><a href="https://2009.igem.org/Team:Paris/DryLab#top">Modeling overview</a></li>
-
  <li class="title">. Production .
+
    <hr>
-
     <ol class="none">
+
                <li><a href="https://2009.igem.org/Team:Paris/Conclusion#top">Conclusion & Results</a></li>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Production_overview#top">&nbsp;Overview</a></li>
+
     <hr>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Production_modeling#top">&nbsp;Modeling</a></li>
+
    <hr>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Production_design#top">&nbsp;Parts design</a></li>
+
                <li><a href="https://2009.igem.org/Team:Paris/Brainstorm#top">Brainstorm</a></li>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Production_testing#top">&nbsp;Testing</a></li>
+
     <hr>
-
    </ol>
+
                <li><a href="https://2009.igem.org/Team:Paris/safety#top">Safety</a></li>
-
  </li>
+
            </ul>
-
  <li class="title">. Addressing .
+
        </li>
-
    <ol class="none">
+
    <hr>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Addressing_overview#top">&nbsp;Overview</a></li>
+
        <li class="menu_footer">&nbsp;</li>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Addressing_modeling#top">&nbsp;Modeling</a></li>
+
        <li class="menu_header">&nbsp;
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Addressing_design#top">&nbsp;Parts design</a></li>
+
    <hr>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Addressing_testing#top">&nbsp;Testing</a></li>
+
    <hr>
-
    </ol>
+
        <li class="toggleSubMenu"> <span> Addressing the message </span>
-
  </li>
+
            <ul class="subMenu">
-
  <li class="title">. Reception .
+
                      <li><a href="https://2009.igem.org/Team:Paris/Addressing_overview#top">To the periplasm</a></li>
-
    <ol class="none">
+
    <hr>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Transduction_overview#top">&nbsp;Overview</a></li>
+
                <li><a href="https://2009.igem.org/Team:Paris/Addressing_overview2#top">In the outer membrane</a></li>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Transduction_modeling#top">&nbsp;Modeling</a></li>
+
    <hr>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Transduction_design#top">&nbsp;Parts design</a></li>
+
                <li><a href="https://2009.igem.org/Team:Paris/Addressing_testing#top">WetLab</a></li>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Transduction_testing#top">&nbsp;Testing</a></li>
+
            </ul>
-
    </ol>
+
        </li>
-
  </li>
+
    <hr>
-
  <li class="title">. Ethics .
+
        <li class="toggleSubMenu"><span> Producing the messenger </span>
-
    <ol class="block">
+
            <ul class="subMenu">
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Ethics_ethicallabbook#top">&nbsp;Ethical Lab book</a></li>
+
                <li><a href="https://2009.igem.org/Team:Paris/Production_overview#top">Vesicle production system</a></li>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Ethics_Materials#top">&nbsp;Materials</a></li>
+
    <hr>
-
    </ol>
+
                <li><a href="https://2009.igem.org/Team:Paris/Production_modeling#top">Vesicle production model</a></li>
-
  </li>
+
    <hr>
-
  <li class="title">. Tool .
+
                <li><a href="https://2009.igem.org/Team:Paris/Production_modeling2#top">Vesicle biophysics model</a></li>
-
    <ol class="none">
+
    <hr>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Tool_introduction#top">&nbsp;Introduction</a></li>
+
                <li><a href="https://2009.igem.org/Team:Paris/Production_testing#top">WetLab</a></li>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Tool_DataBase#top ">&nbsp;Data Base</a></li>
+
            </ul>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Tool_OSXSoft#top">&nbsp;Software OSX</a></li>
+
        </li>
-
      <li class="sub"><a href="https://2009.igem.org/Team:Paris/Tool_iPhone#top">&nbsp;iPhone</a></li>
+
    <hr>
-
    </ol>
+
        <li class="toggleSubMenu"><span> Receiving the message </span>
-
<hr>
+
            <ul class="subMenu">
-
  <li class="menu_footer">&nbsp;</li>
+
                <li><a href="https://2009.igem.org/Team:Paris/Transduction_overview#top">Membrane fusion</a></li>
-
</ul>
+
    <hr>
 +
                <li><a href="https://2009.igem.org/Team:Paris/Transduction_overview2#top">Signal Transduction</a></li>
 +
    <hr>
 +
                <li><a href="https://2009.igem.org/Team:Paris/Transduction_modeling#top">Fec operon simulation</a></li>
 +
    <hr>
 +
                <li><a href="https://2009.igem.org/Team:Paris/Transduction_testing#top">WetLab</a></li>
 +
            </ul>
 +
        </li>
 +
    <hr>
 +
        <li class="menu_footer">&nbsp;</li>
 +
        <li class="menu_header">&nbsp;
 +
    <hr>
 +
    <hr>
 +
        <li class="toggleSubMenu2"> Ethics
 +
            <ul class="open_at_load">
 +
                <li><a href="https://2009.igem.org/Team:Paris/Ethics_overview#top">Overview</a></li>
 +
    <hr>
 +
                <li><a href="https://2009.igem.org/Team:Paris/Ethics_ethicallabbook#top">Lab book</a></li>
 +
    <hr>
 +
                <li><a href="https://2009.igem.org/Team:Paris/Ethics_ethicalreport#top">Report</a></li>
 +
    <hr>
 +
                <li><a href="https://2009.igem.org/Team:Paris/Ethics_Materials#top">Materials</a></li>
 +
            </ul>
 +
        </li>
 +
    <hr>
 +
        <li class="menu_footer">&nbsp;</li>
 +
        <li class="menu_header">&nbsp;
 +
    <hr>
 +
    <hr>
 +
        <li class="toggleSubMenu"><span> Tool, iPhone </span>
 +
            <ul class="subMenu">
 +
                <li><a href="https://2009.igem.org/Team:Paris/Tool_introduction#top">Introduction</a></li>
 +
    <hr>
 +
                <li><a href="https://2009.igem.org/Team:Paris/Tool_DataBase#top ">Databases</a></li>
 +
    <hr>
 +
                <li><a href="https://2009.igem.org/Team:Paris/Tool_OSXSoft#top">Mac Software</a></li>
 +
    <hr>
 +
                <li><a href="https://2009.igem.org/Team:Paris/Tool_iPhone#top">iPhone</a></li>
 +
            </ul>
 +
        </li>
 +
    <hr>
 +
        <li class="menu_footer">&nbsp;</li>
 +
  </ul
 +
</td></tr>
</table>
</table>
</body>
</body>
-
 
</html>
</html>
 +
</div>
 +
<!-- start content area -->
<div id="paris_content_wrapper">
<div id="paris_content_wrapper">
<div id=paris_content_boxtop></div>
<div id=paris_content_boxtop></div>
<div id="paris_content">
<div id="paris_content">

Latest revision as of 01:01, 22 October 2009