|
|
(194 intermediate revisions not shown) |
Line 1: |
Line 1: |
- | <html>
| |
| | | |
- | <!--=========================================CARGAS============================================= -->
| |
- | <!--Intentamos cargar la libreria jQuery de Google, si no va pues la BobString -->
| |
- | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
| |
- | <script>!window.jQuery && document.write('<script src="https://sites.google.com/site/bobstringfiles/arcanum/jquery-1.2.3.min.js"><\/script>')</script>
| |
- |
| |
- | <!--=========================================MENU ACORDEON============================================= -->
| |
- | <div id="menu">
| |
- | <h3>MENU</h3>
| |
- | <ul>
| |
- | <li><span <?php if($p == "posts"){echo 'class="current"';} ?>><a href="javascript:void(0);" id="link-posts">Inicio</a></span>
| |
- |
| |
- | </li>
| |
- | <li><span <?php if($p == "categorias"){echo 'class="current"';} ?>><a href="javascript:void(0);" id="link-categorias">iGem</a></span>
| |
- |
| |
- | </li>
| |
- | <li><span <?php if($p == "multimedia"){echo 'class="current"';} ?>><a href="javascript:void(0);" id="link-multimedia">El proyecto</a></span>
| |
- | <ul>
| |
- | <li><a href="?p=multimedia&sec=agregar-galeria-imagenes" class="add">Resuemn</a></li>
| |
- | <li><a href="?p=multimedia&sec=listar-galeria-imagenes" class="list">El estandar Ubbit</a></li>
| |
- | <li><a href="?p=multimedia&sec=agregar-galeria-video" class="add">Puertas lógicas</a></li>
| |
- | <li><a href="?p=multimedia&sec=listar-galeria-video" class="list">Quorum sensing</a></li>
| |
- | <li><a href="?p=multimedia&sec=listar-galeria-video" class="list">Sumador binario</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li><span <?php if($p == "usuarios"){echo 'class="current"';} ?>><a href="javascript:void(0);" id="link-usuarios">El equipo</a></span>
| |
- | <ul>
| |
- | <li><a href="?p=usuarios&sec=agregar-usuario" class="add">Agregar</a></li>
| |
- | <li><a href="?p=usuarios&sec=listar-usuarios" class="list">Listar</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li><span <?php if($p == "opciones"){echo 'class="current"';} ?>><a href="javascript:void(0);" id="link-opciones">Opciones</a></span>
| |
- | <ul>
| |
- | <li><a href="?p=opciones&sec=opcion-lectura" class="bullet">Lectura</a></li>
| |
- | <li><a href="?p=opciones&sec=opcion-escritura" class="bullet">Escritura</a></li>
| |
- | <li><a href="?p=opciones&sec=opcion-discusion" class="bullet">Discusión</a></li>
| |
- | <li><a href="?p=opciones&sec=opcion-permalinks" class="bullet">Permalinks</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | </ul>
| |
- | </div>
| |
- |
| |
- | <!--Efectos para desplegar el Menu acordeon -->
| |
- | <script type="text/javascript">
| |
- | $(document).ready(function(){
| |
- | $("#menu ul li ul").hide();
| |
- | $("#menu ul li span.current").addClass("open").next("ul").show();
| |
- | $("#menu ul li span").click(function(){
| |
- | $(this).next("ul").slideToggle("slow").parent("li").siblings("li").find("ul:visible").slideUp("slow");
| |
- | $(this).toggleClass("open");
| |
- | $(this).parent("li").siblings("li").find("span").removeClass("open");
| |
- | });
| |
- |
| |
- | });
| |
- | </script>
| |
- |
| |
- | <style>
| |
- | .open {
| |
- | position: relative;
| |
- | height: 20px;
| |
- | width: 400px;
| |
- | background-color: green;
| |
- |
| |
- | }
| |
- | #menu {
| |
- | position: relative;
| |
- | height: 20px;
| |
- | width: 400px;
| |
- | background-color: blue;
| |
- |
| |
- | }
| |
- | <style>
| |
- |
| |
- |
| |
- | </html>
| |