Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/05/2013, 12:23
alejduin
 
Fecha de Ingreso: mayo-2013
Ubicación: Lara - Venezuela
Mensajes: 4
Antigüedad: 11 años
Puntos: 0
Respuesta: Eventos JavaScript no actuan sin recargar pagina antes

No, no es eso, ahora estoy pensando que es otra cuestión, es posible que sea porque estoy usando JQueryMobile. y el slider esta dentro de la pagina en JQM, porque cuando coloco el slider en paginas HTML5 no me da problema .
Cita:
<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>..:: Creaciones Y & Y ::..</title>

<script type="text/javascript" language="javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
<script type="text/javascript" language="javascript" src="jquery.carouFredSel-6.2.1.js"></script>
<!--<script type="text/javascript" language="javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>-->
<!--<script type="text/javascript" language="javascript" src="jquery-1.8.2.min.js"></script>-->
<script type="text/javascript" language="javascript" src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
<script type="text/javascript" language="javascript">
$(function($) {
// Basic carousel + timer, using CSS-transitions
$('#foo1').carouFredSel({
auto: {
pauseOnHover: 'resume',
progress: '#timer1'
}
}, {
transition: true
});
});
</script>
<style type="text/css" media="all">
.image_carousel {
padding: 15px 0 15px 40px;
}
.image_carousel img {
border: 1px solid #ccc;
background-color: white;
padding: 9px;
margin: 7px;
display: block;
float: left;
}
.clearfix {
float: none;
clear: both;
}
</style>
</head>
<body>
<section data-role="page">
<header data-role="header">
<h1>Page header</h1>
<nav data-role="navbar">
<ul>
<li><a href="index.php">item1</a></li>
<li><a href="sintaxisa.html">item2</a></li>
<li><a href="#">item3</a></li>
</ul>
</nav>
</header><!-- /header -->
<article data-role="content">
<div class="image_carousel">
<div id="foo1">
<img src="imagenes/productos/01.jpg" width="140" height="140" />
<img src="imagenes/productos/02.jpg" width="140" height="140" />
<img src="imagenes/productos/02.jpg" width="140" height="140" />
<img src="imagenes/productos/03.jpg" width="140" height="140" />
<img src="imagenes/productos/04.jpg" width="140" height="140" />
<img src="imagenes/productos/05.jpg" width="140" height="140" />
<img src="imagenes/productos/06.jpg" width="140" height="140" />
<img src="imagenes/productos/07.jpg" width="140" height="140" />
<img src="imagenes/productos/08.jpg" width="140" height="140" />
<img src="imagenes/productos/09.jpg" width="140" height="140" />
<img src="imagenes/productos/10.jpg" width="140" height="140" />
<img src="imagenes/productos/02.jpg" width="140" height="140" />
<img src="imagenes/productos/02.jpg" width="140" height="140" />
<img src="imagenes/productos/03.jpg" width="140" height="140" />
<img src="imagenes/productos/04.jpg" width="140" height="140" />
<img src="imagenes/productos/05.jpg" width="140" height="140" />
<img src="imagenes/productos/06.jpg" width="140" height="140" />
<img src="imagenes/productos/07.jpg" width="140" height="140" />
<img src="imagenes/productos/08.jpg" width="140" height="140" />
<img src="imagenes/productos/09.jpg" width="140" height="140" />
<img src="imagenes/productos/10.jpg" width="140" height="140" />
</div>
<div class="clearfix"></div>
</div>
</article><!-- /content -->
<footer data-role="footer">
<h4>Page footer</h4>
</footer><!-- /footer -->
</section><!-- /page -->
</body>
</html>
</body>
</html>
Ahora no se que hacer.