Foros del Web » Programando para Internet » Javascript » Frameworks JS »

problemas con una caja deslizante flotante

Estas en el tema de problemas con una caja deslizante flotante en el foro de Frameworks JS en Foros del Web. Hola amigos he hecho una caja deslizante que esta flotante al lado derecho y todo va bien hasta que le pongo el mouse encima, pues ...
  #1 (permalink)  
Antiguo 20/09/2012, 12:15
Avatar de ricky0123456  
Fecha de Ingreso: septiembre-2012
Ubicación: Caracas
Mensajes: 25
Antigüedad: 11 años, 7 meses
Puntos: 0
Pregunta problemas con una caja deslizante flotante

Hola amigos

he hecho una caja deslizante que esta flotante al lado derecho y todo va bien hasta que le pongo el mouse encima, pues en ese momento se abre bien pero una vez retiro el mouse, se desliza hacia la derecha y me desaparece totalmente del mismo margen derecho ..

les dejo el código por si son tan amables de ayudarme

Cita:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>

<script type="text/javascript" src="http://disemuchonet.blogcindario.com/ficheros/jquery-1-4-2-min.js">
</script>
<script src="jQuery/includes/jquery-1.4.2.js" type="text/javascript"></script>
<script src="jQuery/includes/jquery.ui.core.min.js" type="text/javascript"></script>
<script src="jQuery/includes/jquery.ui.widget.min.js" type="text/javascript"></script>
<script src="jQuery/includes/jquery.ui.tabs.min.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
var j = jQuery.noConflict();
j(function (){
j(".esthela").hover(function(){
j(".esthela").stop(true, false).animate({right:"0"},"medium");
},function(){
j(".esthela").stop(true, false).animate({right:"-400"},"medium");
},500);
return false;
});
//]]>
</script>

<style type="text/css">
/*<![CDATA[*/
.esthela {
float:right;
width:340px;
height:250px;
background: url(images/contacto_deslizante.png) no-repeat !important;
display:block;
right: -400px;
padding:0;
position:fixed;
top: 56px;
z-index:1002;
}
/*]]>*/
</style>
<link href="jQuery/css/jquery.ui.core.css" rel="stylesheet" type="text/css" />
<link href="jQuery/css/jquery.ui.tabs.css" rel="stylesheet" type="text/css" />
<link href="jQuery/css/jquery.ui.theme.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/* BeginOAWidget_Instance_2140022: #jQueryTabs */

#jQueryTabs.ui-tabs .ui-tabs-panel {
display: block;
border: 0px solid #aaaaaa;
padding: 1ex 1.4em;
background: #ffffff;
font-family: inherit;
font-size: 0.8em/*{fsDefault}*/;
}

/* Component containers
----------------------------------*/
#jQueryTabs .ui-widget {

}
#jQueryTabs .ui-widget-content {
border: 1px solid #aaaaaa/*{borderColorContent}*/;
background: #ffffff/*{bgColorContent}*/ url(jQuery/css/images/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/;
color: #222222/*{fcContent}*/;
}
#jQueryTabs .ui-widget-content a {
color: #0000ff/*{fcContent}*/;
}
#jQueryTabs .ui-widget-header {
border: 1px solid #aaaaaa/*{borderColorHeader}*/;
background: #cccccc/*{bgColorHeader}*/ url(jQuery/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png)/*{bgImgUrlHeader}*/ 50%/*{bgHeaderXPos}*/ 50%/*{bgHeaderYPos}*/ repeat-x/*{bgHeaderRepeat}*/;
color: #222222/*{fcHeader}*/;
font-weight: bold;
font-family: inherit;
font-size: 0.8em/*{fsDefault}*/;
}

/* Interaction states
----------------------------------*/
#jQueryTabs .ui-state-default, .ui-widget-content .ui-state-default {
border: 1px solid #d3d3d3/*{borderColorDefault}*/;
background: #e6e6e6/*{bgColorDefault}*/ url(jQuery/css/images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/;
font-weight: normal/*{fwDefault}*/;
color: #555555 /*{fcDefault}*/;

}
#jQueryTabs .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited {
color: #555555/*{fcDefault}*/;
text-decoration: none;
}
#jQueryTabs .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus {
border: 1px solid #999999/*{borderColorHover}*/;
background: #dadada/*{bgColorHover}*/ url(jQuery/css/images/ui-bg_glass_75_dadada_1x400.png)/*{bgImgUrlHover}*/ 50%/*{bgHoverXPos}*/ 50%/*{bgHoverYPos}*/ repeat-x/*{bgHoverRepeat}*/;
font-weight: normal/*{fwDefault}*/;
color: #212121 /*{fcHover} #212121*/;
font-family: inherit;
font-size: inherit/*{fsHover}*/;
}
#jQueryTabs .ui-state-hover a, .ui-state-hover a:hover {
color: #212121/*{fcHover}*/;
text-decoration: none;
}
#jQueryTabs .ui-state-active, .ui-widget-content .ui-state-active {
border: 1px solid #aaaaaa/*{borderColorActive}*/;
background: #ffffff/*{bgColorActive}*/ url(jQuery/css/images/ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/;
font-weight: normal/*{fwDefault}*/;
color: #212121/*{fcActive}*/;
font-family: inherit;
font-size: inherit/*{fsSelected}*/;
}
#jQueryTabs .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
color: #212121/*{fcActive}*/;
text-decoration: none;
}


/* EndOAWidget_Instance_2140022 */
</style>
<script type="text/xml">
<!--
<oa:widgets>
<oa:widget wid="2140022" binding="#jQueryTabs" />
</oa:widgets>
-->
</script>
</head>
<div class="esthela" style="right: -300px;">
<div style="color: rgb(255, 255, 255); padding: 8px 5px 0pt 50px;">
<div class="disemucho.jimdo.com"> /* inseta texto cabecera */ </div>
</div>
</div>
gracias de antemano
saludos cordiales
  #2 (permalink)  
Antiguo 20/09/2012, 12:35
Avatar de NSD
NSD
Colaborador
 
Fecha de Ingreso: mayo-2012
Ubicación: Somewhere
Mensajes: 1.332
Antigüedad: 12 años
Puntos: 320
Respuesta: problemas con una caja deslizante flotante

1 - Esto no tiene NADA que ver con php.
2 - Revisa de donde sacaste el codigo.
3 - ¿No usas la etiqueta body nunca?
4 - No uses hotlink, es una mala practica.
5 - Prueba esto:

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Documento sin titulo</title>
  5. <script type="text/javascript" src="http://disemuchonet.blogcindario.com/ficheros/jquery-1-4-2-min.js">
  6.  
  7. <script type="text/javascript">
  8. //<![CDATA[
  9. var j = jQuery.noConflict();
  10. j(function (){
  11. j(".esthela").hover(function(){
  12. j(".esthela").stop(true, false).animate({right:"0"},"medium");
  13. },function(){
  14. j(".esthela").stop(true, false).animate({right:"-400"},"medium");
  15. },500);
  16. return false;
  17. });
  18. //]]>
  19.  
  20. <style type="text/css">
  21. /*<![CDATA[*/
  22. .esthela {
  23. float:right;
  24. width:450px;
  25. height:350px;
  26. background: url(http://u.jimdo.com/www21/o/s4e9df44a0ad8ccd8/img/i89f1a63f61ac63da/1340075377/std/image.png) no-repeat !important;
  27. display:block;
  28. right: -400px;
  29. padding:0;
  30. position:fixed;
  31. top: 56px;
  32. z-index:1002;
  33. }
  34. /*]]>*/
  35. </head>
  36. <div class="esthela" style="right: -400px;">
  37.     <div style="color: rgb(255, 255, 255); padding: 8px 5px 0pt 50px;">
  38.             Aqui el contenido
  39.     </div>
  40. </div>
  41. </body>
  42. </html>

Saludos.

PD: la proxima intenta postear en el foro correcto ;)
__________________
Maratón de desafíos PHP Junio - Agosto 2015 en FDW | Reglamento - Desafios
  #3 (permalink)  
Antiguo 20/09/2012, 12:51
Avatar de ricky0123456  
Fecha de Ingreso: septiembre-2012
Ubicación: Caracas
Mensajes: 25
Antigüedad: 11 años, 7 meses
Puntos: 0
Respuesta: problemas con una caja deslizante flotante

ok muchas gracias y disculpa mi torpeza..

lo que pasa es que realmente el que me has enviado es el que yo he modificado con mi imagen y mis medidas..

lo que no se es como puedo arreglar lo de que no se vaya para atras del todo..

me puedes ayudar por favor

gracias ;)
  #4 (permalink)  
Antiguo 20/09/2012, 13:04
Avatar de NSD
NSD
Colaborador
 
Fecha de Ingreso: mayo-2012
Ubicación: Somewhere
Mensajes: 1.332
Antigüedad: 12 años
Puntos: 320
Respuesta: problemas con una caja deslizante flotante

ahora mismo estoy saliendo para la universidad, cuando regrese a la noche le hecho un ojo. si logras resolverlo antes avisa comentando aqui saludos.
__________________
Maratón de desafíos PHP Junio - Agosto 2015 en FDW | Reglamento - Desafios
  #5 (permalink)  
Antiguo 20/09/2012, 13:43
Avatar de ricky0123456  
Fecha de Ingreso: septiembre-2012
Ubicación: Caracas
Mensajes: 25
Antigüedad: 11 años, 7 meses
Puntos: 0
Pregunta Respuesta: problemas con una caja deslizante flotante

Cita:
Iniciado por NSD Ver Mensaje
ahora mismo estoy saliendo para la universidad, cuando regrese a la noche le hecho un ojo. si logras resolverlo antes avisa comentando aqui saludos.
muchas gracias estare en ello

Saludos
  #6 (permalink)  
Antiguo 20/09/2012, 14:00
Avatar de ricky0123456  
Fecha de Ingreso: septiembre-2012
Ubicación: Caracas
Mensajes: 25
Antigüedad: 11 años, 7 meses
Puntos: 0
De acuerdo Respuesta: problemas con una caja deslizante flotante

Cita:
Iniciado por ricky0123456 Ver Mensaje
muchas gracias estare en ello

Saludos

Cita:
Amigo lo saque, estaba aquí

j(".esthela").stop(true, false).animate({right:"-300"},"medium");

en {right:"-300"} estaba 400.. y como ahora es mas pequeño el modelo que yo he hecho solo había que bajarle el tamaño...

Mil gracias y disculpa las molestias..

Pd. ; si necesitas algo de diseño yo soy diseñador gráfico, como puedes ver en webs ni pajotera.. jejej

Etiquetas: caja, deslizante, flotante, html
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 11:45.