Foros del Web » Creando para Internet » CSS »

Problemas con menu acordeon Jquery y pie

Estas en el tema de Problemas con menu acordeon Jquery y pie en el foro de CSS en Foros del Web. Hola amigos, soy nuevo y busco ayuda... he revisado este foro en busca de solucionar mi problema pero no doy con ello, lo que pasa ...
  #1 (permalink)  
Antiguo 17/02/2011, 14:53
 
Fecha de Ingreso: febrero-2011
Mensajes: 7
Antigüedad: 13 años, 2 meses
Puntos: 0
Problemas con menu acordeon Jquery y pie

Hola amigos, soy nuevo y busco ayuda... he revisado este foro en busca de solucionar mi problema pero no doy con ello, lo que pasa es q no se como evitar q el pie se mueva cuando el usuario hace click en el menu acordeon hecho con Jquery, mi idea es q el pie se mantenga fijo al fondo independiente si se clickea o no el menu y obviamente q se desplaze este pie segun la cantidad de informacion que hay en el contenedor. Agradezco sus sugerencias!

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
link rel="short icon" type="image/x-icon" href="favicon.ico"/>
<
link rel="stylesheet" type="text/css" href="css/formulario.css"/>
<
script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.5.min.js"></script>
<!-- Validar formulario -->
<script type="text/javascript" src="js/vanadium_es.js"></script>
<link rel="stylesheet" type="text/css" href="css/vanadium.css"/> 
<!-- Calendario -->
<script language="JavaScript" src="calendario/calendar_eu.js"></script>
<link rel="stylesheet" href="calendario/calendar.css">
<!-- Menu acordeon -->
<script type="text/javascript">
$(function(){
    $('#menu li a').click(function(event){
        var elem = $(this).next();
        if(elem.is('ul')){
            event.preventDefault();
            $('#menu ul:visible').not(elem).slideUp();
            elem.slideToggle();
        }
    });
});
</script>
<style type="text/css">
/*#############################################################
Name: Transparentia
Date: 2006-08-20
Description: Simple, lightweight and slightly blue.
Author: Viktor Persson
URL: http://templates.arcsin.se

Feel free to use and modify but please provide credits.
#############################################################*/

/* standard elements */
* {
    margin: 0;
    padding: 0;
}
a {
    color: #36C;
}
a:hover {
    color: #06F;
}
body {
    background: #FFF;
    color: #444;
    font: normal 62.5% "Lucida Sans Unicode",sans-serif;
    margin: 0;
}
input {
    color: #555;
    font: normal 1.1em "Lucida Sans Unicode",sans-serif;
}
p,cite,code,ul {
    font-size: 1.2em;
    padding-bottom: 1.2em;
}
h1 {
    font-size: 1.4em;
    margin-bottom: 4px;
}
code {
    background: url(http://templates.arcsin.se/demo/transparentia-website-template/img/bgcode.gif);
    border: 1px solid #F0F0F0;
    border-left: 6px solid #39F;
    color: #555;
    display: block;
    font: normal 1.1em "Lucida Sans Unicode",serif;
    margin-bottom: 12px;
    padding: 8px 10px;
    white-space: pre;
}
cite {
    background: url(http://templates.arcsin.se/demo/transparentia-website-template/img/quote.gif) no-repeat;
    color: #666;
    display: block;
    font: normal 1.3em "Lucida Sans Unicode",serif;
    padding-left: 28px;
}
h1,h2,h3 {
    color: #367EA6;
    padding-top: 6px;
}

/* misc */
.clearer {
    clear: both;
}

/* structure */
.contenedor {
    background: white;
    margin: 0 auto;
    padding-bottom: 6px;
    width: 1067px;
}
.header {
    background: url(http://templates.arcsin.se/demo/transparentia-website-template/img/header.gif);
}

/* title */
.title h1 {
    margin-top: 5px;
    color: #FFF;
    font: normal 3em Verdana,sans-serif;
    height: 95px;
    line-height: 95px;
    margin-bottom: 8px;
    text-align: center;
}

/* navigation */
.navigation {
    margin-bottom: 4px;
}
.navigation a {
    background-color: #4A91C3;
    color: #FFF;
    float: left;
    font: bold 1.2em "Trebuchet MS",sans-serif;
    padding: 8px 0;
    width: 19%;
    border-right: 1px solid #FFF;
    text-align: center;
    text-decoration: none;
}
.navigation a:hover {
    background-color: #000;
    color: #FFF;
}

/* main */
.main {
    clear: both;
    padding: 8px 18px;
}

/* main left */
.sidenav h1,.sidenav ul {
    padding-left: 12px;
}
.sidenav {
    background: #EEE;
    border: 1px solid #E5E5E5;
    float: left;
    width: 140px;
}
.sidenav h1 {
    color: #666;
    font-size: 1em;
    height: 10px;
    margin-top: 0.1em;
}
.sidenav ul {
    border-top: 1px solid #FAFAFA;
    background: url(http://templates.arcsin.se/demo/transparentia-website-template/img/bgul.gif) repeat-x;
    margin: 0;
    padding: 0;
}
.sidenav li {
    border: 1px solid #FAFAFA;
    border-top: none;
    list-style: none;
    margin: 0;
}
.sidenav li a {
    color: #777;
    display: block;
    font-size: 0.9em;
    padding: 3px 6px 3px 14px;
    text-decoration: none;
}
.sidenav li a:hover {
    color: #111;
}

/* content */
.content {
    float: right;
    width: 880px;
}
.content .item {
    padding: 6px 12px;
    border: 1px solid #EEE;
    background: #FFF;
    margin-bottom: 8px;
}
.content .descr {
    color: #333;
    margin-bottom: 6px;
}
.content li {
    list-style: url(http://templates.arcsin.se/demo/transparentia-website-template/img/li.gif);
    margin-left: 4px;
}

/* search form */
form {
    padding: 0 0 6px 8px;
}
.styled {
    border: 1px solid #DDD;
    padding: 4px;
}
.button {
    background: url(http://templates.arcsin.se/demo/transparentia-website-template/img/search.gif) no-repeat left bottom;
    border: none;
    height: 27px;
    width: 27px;
}

/* footer */
.footer {
    background: #FFF;
    border: 1px solid #EEE;
    color: #666;
    font-size: 1.1em;
    margin: 0 auto;
    text-align: center;
    padding: 6px;
    width: 1020px;
    bottom:0;
}
.footer a {
    color: #36C;
    text-decoration: none;
}
.footer a:hover {
    color: #06F;
    text-decoration: underline;
}

/* CSS del MENU ACORDEON */
#menu{
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
    border: 1px solid #E5E5E5;
    float: left;
    -webkit-box-shadow:1px 1px 3px #888;
    -moz-box-shadow:1px 1px 3px #888;
}
#menu li{
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #FFF;
}
#menu ul li, #menu li:last-child{
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
}    
#menu a{
    /*Letra Menu/Submenu Nº sin destacar*/
    display:block;
    color:#FFF;
    text-decoration:none;
    font-family:'Helvetica', Arial, sans-serif;
    font-size:12px;
    text-decoration: none;
    /*padding:3px 6px 3px 14px;*/
    padding-top: 3px;
    padding-right: 5px;
    padding-bottom: 3px;
    padding-left: 5px;
}
#menu a:hover{
    /*Letra Menu Nº Destacado*/
    color:#F9B855;
    -webkit-transition: color 0.2s linear;
}
#menu ul a{
    /*Submenu Nº Sin Destacar*/
    background-color:#BBB;
}
#menu ul a:hover{
    /*Submenu Nº Destacado*/
    background-color:#DDD;
    color:#2961A9;
    text-shadow:none;
    -webkit-transition: color, background-color 0.2s linear;
}
ul{
    /*Menu Nº*/
    display:block;
    background-color:#AAA;
    margin:0;
    padding:0;
    width:130px;
    list-style:none;
}
#menu ul{
    background-color:#F63;
}
#menu li ul {display:none;}
</style>

</head>
<body>
<div class="contenedor">
<div class="main">
      <div class="header">
      <div class="title">
        <h1>Hola</h1>
      </div>
    </div>
    <div class="content">
    HELP
    </div>
<ul id="menu">
<li><a href="#">Menu1</a>
    <ul>
        <li><a href="#">Submenu 1</a></li>
        <li><a href="#">Submenu 2</a></li>
        <li><a href="#">Submenu 3</a></li>
        <li><a href="#">Submenu 4</a></li>
    </ul>
</li>
<li><a href="#">Menu2</a>
    <ul>
        <li><a href="#">Submenu 1</a></li>
        <li><a href="#">Submenu 2</a></li>
        <li><a href="#">Submenu 3</a></li>
        <li><a href="#">Submenu 4</a></li>
    </ul>
</li>
<li><a href="#">Menu3</a>
    <ul>
        <li><a href="#">Submenu 1</a></li>
        <li><a href="#">Submenu 2</a></li>
        <li><a href="#">Submenu 3</a></li>
        <li><a href="#">Submenu 4</a></li>
    </ul>
</li>
<li><a href="#">Menu4</a>
    <ul>
        <li><a href="#">Submenu 1</a></li>
        <li><a href="#">Submenu 2</a></li>
        <li><a href="#">Submenu 3</a></li>
        <li><a href="#">Submenu 4</a></li>
    </ul>
</li>
</ul>
    <div class="clearer"><span></span></div>
  </div>
  <div class="footer">Derechos reservados</div>
</div>
</body>
</html> 
  #2 (permalink)  
Antiguo 17/02/2011, 15:49
Avatar de sanxuan  
Fecha de Ingreso: enero-2011
Ubicación: Gijón
Mensajes: 671
Antigüedad: 13 años, 3 meses
Puntos: 36
Respuesta: Problemas con menu acordeon Jquery y pie

Yo he encontrado información alguna vez buscando "pie siempre abajo" en este mismo foro.
Suerte.
  #3 (permalink)  
Antiguo 17/02/2011, 16:33
 
Fecha de Ingreso: febrero-2011
Mensajes: 7
Antigüedad: 13 años, 2 meses
Puntos: 0
Respuesta: Problemas con menu acordeon Jquery y pie

lo intente pero no me resulto

Etiquetas: acordeon, foot, jquery, pie
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 04:17.