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

Problema carga carrusel: imágenes apiladas

Estas en el tema de Problema carga carrusel: imágenes apiladas en el foro de Frameworks JS en Foros del Web. Hola a todos, Resulta que en la página donde quiero poner un carrusel de jquery, éste se carga mal: no funciona y las imágenes aparecen ...
  #1 (permalink)  
Antiguo 10/01/2012, 18:54
 
Fecha de Ingreso: enero-2012
Mensajes: 3
Antigüedad: 12 años, 3 meses
Puntos: 0
Pregunta Problema carga carrusel: imágenes apiladas

Hola a todos,
Resulta que en la página donde quiero poner un carrusel de jquery, éste se carga mal: no funciona y las imágenes aparecen apiladas. No sé si se trata de algún conflicto o no, pero esto ya no lo sé solucionar sólo. Gracias por la ayuda que me podáis prestar.
Aquí está el código html:

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Fixed Header &amp; Footer: Cross Browser</title>
  5. <link href="css/estilo.css" rel="stylesheet" type="text/css" />
  6.  
  7.  
  8. <script type="text/javascript" src="js/jquery.js"></script> >
  9.     jQuery.noConflict();
  10.  
  11.     jQuery.fn.infiniteCarousel = function () {
  12.  
  13.     function repeat(str, num) {
  14.         return new Array( num + 1 ).join( str );
  15.     }
  16.  
  17.     return this.each(function () {
  18.         var jQuery.wrapper = jQuery('> div', this).css('overflow', 'hidden'),
  19.             jQuery.slider = jQuery.wrapper.find('> ul'),
  20.             jQuery.items = jQuery.slider.find('> li'),
  21.             jQuery.single = jQuery.items.filter(':first'),
  22.            
  23.             singleWidth = jQuery.single.outerWidth(),
  24.             visible = Math.ceil(jQuery.wrapper.innerWidth() / singleWidth), // note: doesn't include padding or border
  25.             currentPage = 1,
  26.             pages = Math.ceil(jQuery.items.length / visible);            
  27.  
  28.  
  29.         // 1. Pad so that 'visible' number will always be seen, otherwise create empty items
  30.         if ((jQuery.items.length % visible) != 0) {
  31.             jQuery.slider.append(repeat('<li class="empty" />', visible - (jQuery.items.length % visible)));
  32.             jQuery.items = jQuery.slider.find('> li');
  33.         }
  34.  
  35.         // 2. Top and tail the list with 'visible' number of items, top has the last section, and tail has the first
  36.         jQuery.items.filter(':first').before(jQuery.items.slice(- visible).clone().addClass('cloned'));
  37.         jQuery.items.filter(':last').after(jQuery.items.slice(0, visible).clone().addClass('cloned'));
  38.         jQuery.items = jQuery.slider.find('> li'); // reselect
  39.        
  40.         // 3. Set the left position to the first 'real' item
  41.         jQuery.wrapper.scrollLeft(singleWidth * visible);
  42.        
  43.         // 4. paging function
  44.         function gotoPage(page) {
  45.             var dir = page < currentPage ? -1 : 1,
  46.                n = Math.abs(currentPage - page),
  47.                left = singleWidth * dir * visible * n;
  48.            
  49.            jQuery.wrapper.filter(':not(:animated)').animate({
  50.                scrollLeft : '+=' + left
  51.            }, 500, function () {
  52.                if (page == 0) {
  53.                    jQuery.wrapper.scrollLeft(singleWidth * visible * pages);
  54.                    page = pages;
  55.                } else if (page > pages) {
  56.                     jQuery.wrapper.scrollLeft(singleWidth * visible);
  57.                     // reset back to start position
  58.                     page = 1;
  59.                 }
  60.  
  61.                 currentPage = page;
  62.             });                
  63.            
  64.             return false;
  65.         }
  66.        
  67.         jQuery.wrapper.after('<a class="arrow back">&lt;</a><a class="arrow forward">&gt;</a>');
  68.        
  69.         // 5. Bind to the forward and back buttons
  70.         jQuery('a.back', this).click(function () {
  71.             return gotoPage(currentPage - 1);                
  72.         });
  73.        
  74.         jQuery('a.forward', this).click(function () {
  75.             return gotoPage(currentPage + 1);
  76.         });
  77.        
  78.         // create a public interface to move to a specific page
  79.         jQuery(this).bind('goto', function (event, page) {
  80.             gotoPage(page);
  81.         });
  82.     });  
  83. };
  84.  
  85. jQuery(document).ready(function () {
  86.   jQuery('.infiniteCarousel').infiniteCarousel();
  87. });
  88. <link href="css/estil.css" rel="stylesheet" type="text/css" />
  89. <!--[if IE 6]>
  90. <link href="css/ie6.css" rel="stylesheet" type="text/css" />
  91. <![endif]-->
  92. <script language="JavaScript" type="text/JavaScript">
  93. <!--
  94. function MM_preloadImages() { //v3.0
  95.  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  96.    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  97.    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  98. }
  99.  
  100. function MM_findObj(n, d) { //v4.01
  101.  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  102.    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  103.  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  104.  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  105.  if(!x && d.getElementById) x=d.getElementById(n); return x;
  106. }
  107.  
  108. function MM_nbGroup(event, grpName) { //v6.0
  109.  var i,img,nbArr,args=MM_nbGroup.arguments;
  110.  if (event == "init" && args.length > 2) {
  111.    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
  112.      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
  113.      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
  114.      nbArr[nbArr.length] = img;
  115.      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
  116.        if (!img.MM_up) img.MM_up = img.src;
  117.        img.src = img.MM_dn = args[i+1];
  118.        nbArr[nbArr.length] = img;
  119.    } }
  120.  } else if (event == "over") {
  121.    document.MM_nbOver = nbArr = new Array();
  122.    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
  123.      if (!img.MM_up) img.MM_up = img.src;
  124.      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
  125.      nbArr[nbArr.length] = img;
  126.    }
  127.  } else if (event == "out" ) {
  128.    for (i=0; i < document.MM_nbOver.length; i++) {
  129.      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  130.  } else if (event == "down") {
  131.    nbArr = document[grpName];
  132.    if (nbArr)
  133.      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
  134.    document[grpName] = nbArr = new Array();
  135.    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
  136.      if (!img.MM_up) img.MM_up = img.src;
  137.      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
  138.      nbArr[nbArr.length] = img;
  139.  } }
  140. }
  141.  
  142. function MM_goToURL() { //v3.0
  143.  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  144.  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
  145. }
  146. //-->
  147. </head>
  148. <body onload="MM_preloadImages('imatges/barranaveg/inici2.jpg','imatges/barranaveg/serveis2.jpg','imatges/barranaveg/tarifa2.jpg','imatges/barranaveg/clients2.jpg','imatges/barranaveg/contacte2.jpg','Image1')">
  149. <body onLoad="MM_preloadImages('imatges/barranaveg/clients2.jpg','imatges/barranaveg/contacte2.jpg')">
  150.     <div id="page-background"><img src="imatges/logobo.jpg" alt="Smile" name="Image1" width="100%" height="100%">
  151.       <table id="content"; border="0" align="center" cellpadding="0" cellspacing="0">      
  152.           <td><a href="blanc.htm" target="_top" onclick="MM_goToURL('parent','blanc.htm');return document.MM_returnValue;MM_nbGroup('down','group1','inici1','',1)" onMouseOver="MM_nbGroup('over','inici1','imatges/barranaveg/inici2.jpg','Image1',1)" onMouseOut="MM_nbGroup('out')"><img src="imatges/barranaveg/inici1.jpg" alt="" name="inici1" width="100%" height="34" border="0"></a></td>
  153.           <td><a href="javascript:;" onMouseOver="MM_nbGroup('over','serveis1','imatges/barranaveg/serveis2.jpg','Image1','imatges/barranaveg/serveis2.jpg',1)" onMouseOut="MM_nbGroup('out')"><img src="imatges/barranaveg/serveis1.jpg" alt="" name="serveis1" width="100%" height="34" border="0" onload=""></a></td>
  154.           <td><a href="javascript:;" onMouseOver="MM_nbGroup('over','tarifa1','imatges/barranaveg/tarifa2.jpg','Image1','imatges/barranaveg/tarifa2.jpg',1)" onMouseOut="MM_nbGroup('out')"><img src="imatges/barranaveg/tarifa1.jpg" alt="" name="tarifa1" width="100%" height="34" border="0" onload=""></a></td>
  155.           <td><a href="javascript:;" onMouseOver="MM_nbGroup('over','clients1','imatges/barranaveg/clients2.jpg','Image1','imatges/barranaveg/clients2.jpg',1)" onMouseOut="MM_nbGroup('out')"><img src="imatges/barranaveg/clients1.jpg" alt="" name="clients1" width="100%" height="34" border="0" onload=""></a></td>
  156.           <td><a href="javascript:;" onMouseOver="MM_nbGroup('over','contacte1','imatges/barranaveg/contacte2.jpg','Image1','imatges/barranaveg/contacte2.jpg',1)" onMouseOut="MM_nbGroup('out')"><img src="imatges/barranaveg/contacte1.jpg" alt="" name="contacte1" width="100%" height="34" border="0" onload=""></a></td>
  157.     </table>
  158. </div>
  159. <!-- <div id="ie6pagewrap"> -->
  160. <div id="ie6pagecontainer">
  161.     <div id="page-background2"><img src="imatges/fonsbo.jpg" width="100%" height="100%" alt="Smile" /> </div>  
  162.     <div id="content2" align="center">
  163.                 <h1>Sed ut perspiciatis unde</h1>
  164.         <div class="carouselc" id="carouselc">
  165.         <h1>Infinite Carousel</h1>
  166.          
  167.         <div class="Carousel Infinito">
  168.           <div style="overflow: hidden;" class="wrapper">
  169.             <ul>
  170.               <li class="cloned"><a href="http://www.tutorialesenlaweb.com" title="Tutoriales en la Web"><img src="imagenes/1.jpg" alt="Tutoriales en la web" width="85" height="85"></a></li>
  171.          
  172.                   <li class="cloned"><a href="http://www.tutorialesenlaweb.com" title="Tutoriales en la Web"><img src="imagenes/2.jpg" alt="Tutoriales en la web" width="85" height="85"></a></li>
  173.          
  174.  
  175.             </ul>
  176.               </div><a class="arrow back">&lt;</a><a class="arrow forward">&gt;</a>
  177.         </div>
  178.         </div>
  179.                
  180.                 <h1>Lorem ipsum dolor sit amet</h1>
  181.                
  182.  
  183.     </div>
  184.      <!--END CONTENT2-->                
  185. </div>
  186.  
  187. <!-- </div> -->
  188. </body>
  189. </html>
  #2 (permalink)  
Antiguo 10/01/2012, 22:02
 
Fecha de Ingreso: enero-2011
Mensajes: 13
Antigüedad: 13 años, 3 meses
Puntos: 0
Respuesta: Problema carga carrusel: imágenes apiladas

Hola!

Si este es tu código original, hay algunos errores html que deben ser los que no permiten el normal funcionamiento. Los que vi yo fueron:
- En la línea 9 tienes un '>' suelto y luego no abres la etiqueta <script> para el código entre las líneas 10 y 89
- Abres dos veces la etiqueta <body>

Yo probaría arreglando eso, porque si no es ahí el error, podría estar en javascript (que no los miré mucho) o en la declaración de las imágenes para el carrusel. Eso se me ocurre a mi.

Ojalá puedas solucionarlo,

Saludos!!
  #3 (permalink)  
Antiguo 11/01/2012, 06:26
 
Fecha de Ingreso: enero-2012
Mensajes: 3
Antigüedad: 12 años, 3 meses
Puntos: 0
Pregunta Respuesta: Problema carga carrusel: imágenes apiladas

Hola, dubafek,
Gracias por responder tan deprisa y ya he hecho lo me me has dicho, pero no lo he solucionado. Se me olvidó decir que no entiendo mucho de programación.

Lo que me pasa es que el diseño de página que tengo me funciona perfectamente si trabajo con 2 marcos, superior e inferior. El problema que tenía con los marcos es que se me descentraban los contenidos cuando hacia zoom y en el marco inferior aparecía la barra de desplazamiento. Eso lo solucioné integrándolo todo en una sola página con una cabecera fija (antiguo marco superior), pero ahora lo que no funciona es el carrusel (que iba en el marco inferior), en el que solo me salen la imágenes apiladas.

He buscado mucho por internet y no parece que nadie haya tenido este problema.
Gracias por la ayuda que me podáis prestar y saludos a todos.
  #4 (permalink)  
Antiguo 16/01/2012, 10:39
 
Fecha de Ingreso: enero-2012
Mensajes: 3
Antigüedad: 12 años, 3 meses
Puntos: 0
Solucionado. Problema carga carrusel: imágenes apiladas

Hola a todos,
Solucioné el problema copiando y pegando el código que me funcionaba en el contexto de los marcos, que comenté en mi mensaje anterior.
Aquí está mi código, por si tenéis curiosidad:

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Docs. del LLano</title>
  5. <link rel="shortcut icon" href="imatges/favicon.ico">
  6. <link href="css/estilo.css" rel="stylesheet" type="text/css" />
  7. <script src="js/jquery.js"></script>
  8.  
  9.  
  10. <script type="text/javascript">
  11.  
  12. $.fn.infiniteCarousel = function () {
  13.  
  14.     function repeat(str, num) {
  15.         return new Array( num + 1 ).join( str );
  16.     }
  17.  
  18.     return this.each(function () {
  19.         var $wrapper = $('> div', this).css('overflow', 'hidden'),
  20.             $slider = $wrapper.find('> ul'),
  21.             $items = $slider.find('> li'),
  22.             $single = $items.filter(':first'),
  23.            
  24.             singleWidth = $single.outerWidth(),
  25.             visible = Math.ceil($wrapper.innerWidth() / singleWidth), // note: doesn't include padding or border
  26.             currentPage = 1,
  27.             pages = Math.ceil($items.length / visible);            
  28.  
  29.  
  30.         // 1. Pad so that 'visible' number will always be seen, otherwise create empty items
  31.         if (($items.length % visible) != 0) {
  32.             $slider.append(repeat('<li class="empty" />', visible - ($items.length % visible)));
  33.             $items = $slider.find('> li');
  34.         }
  35.  
  36.         // 2. Top and tail the list with 'visible' number of items, top has the last section, and tail has the first
  37.         $items.filter(':first').before($items.slice(- visible).clone().addClass('cloned'));
  38.         $items.filter(':last').after($items.slice(0, visible).clone().addClass('cloned'));
  39.         $items = $slider.find('> li'); // reselect
  40.        
  41.         // 3. Set the left position to the first 'real' item
  42.         $wrapper.scrollLeft(singleWidth * visible);
  43.        
  44.         // 4. paging function
  45.         function gotoPage(page) {
  46.             var dir = page < currentPage ? -1 : 1,
  47.                n = Math.abs(currentPage - page),
  48.                left = singleWidth * dir * visible * n;
  49.            
  50.            $wrapper.filter(':not(:animated)').animate({
  51.                scrollLeft : '+=' + left
  52.            }, 500, function () {
  53.                if (page == 0) {
  54.                    $wrapper.scrollLeft(singleWidth * visible * pages);
  55.                    page = pages;
  56.                } else if (page > pages) {
  57.                     $wrapper.scrollLeft(singleWidth * visible);
  58.                     // reset back to start position
  59.                     page = 1;
  60.                 }
  61.  
  62.                 currentPage = page;
  63.             });                
  64.            
  65.             return false;
  66.         }
  67.        
  68.         $wrapper.after('<a class="arrow back">&lt;</a><a class="arrow forward">&gt;</a>');
  69.        
  70.         // 5. Bind to the forward and back buttons
  71.         $('a.back', this).click(function () {
  72.             return gotoPage(currentPage - 1);                
  73.         });
  74.        
  75.         $('a.forward', this).click(function () {
  76.             return gotoPage(currentPage + 1);
  77.         });
  78.        
  79.         // create a public interface to move to a specific page
  80.         $(this).bind('goto', function (event, page) {
  81.             gotoPage(page);
  82.         });
  83.     });  
  84. };
  85.  
  86. $(document).ready(function () {
  87.   $('.infiniteCarousel').infiniteCarousel();
  88. });
  89. <link href="css/estil.css" rel="stylesheet" type="text/css" />
  90. <!--[if IE 6]>
  91. <link href="css/ie6.css" rel="stylesheet" type="text/css" />
  92. <![endif]-->
  93. <script language="JavaScript" type="text/JavaScript">
  94. <!--
  95.  
  96. function MM_preloadImages() { //v3.0
  97.  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  98.    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  99.    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  100. }
  101.  
  102. function MM_findObj(n, d) { //v4.01
  103.  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  104.    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  105.  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  106.  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  107.  if(!x && d.getElementById) x=d.getElementById(n); return x;
  108. }
  109.  
  110. function MM_nbGroup(event, grpName) { //v6.0
  111.  var i,img,nbArr,args=MM_nbGroup.arguments;
  112.  if (event == "init" && args.length > 2) {
  113.    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
  114.      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
  115.      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
  116.      nbArr[nbArr.length] = img;
  117.      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
  118.        if (!img.MM_up) img.MM_up = img.src;
  119.        img.src = img.MM_dn = args[i+1];
  120.        nbArr[nbArr.length] = img;
  121.    } }
  122.  } else if (event == "over") {
  123.    document.MM_nbOver = nbArr = new Array();
  124.    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
  125.      if (!img.MM_up) img.MM_up = img.src;
  126.      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
  127.      nbArr[nbArr.length] = img;
  128.    }
  129.  } else if (event == "out" ) {
  130.    for (i=0; i < document.MM_nbOver.length; i++) {
  131.      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  132.  } else if (event == "down") {
  133.    nbArr = document[grpName];
  134.    if (nbArr)
  135.      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
  136.    document[grpName] = nbArr = new Array();
  137.    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
  138.      if (!img.MM_up) img.MM_up = img.src;
  139.      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
  140.      nbArr[nbArr.length] = img;
  141.  } }
  142. }
  143. //-->
  144. </head>
  145. <body onload="MM_preloadImages('imatges/barranaveg/tarifa2.jpg','imatges/barranaveg/clients2.jpg','imatges/barranaveg/contacte2.jpg','Image1','imatges/barranaveg/inici2.jpg')">
  146. <body onLoad="MM_preloadImages('imatges/barranaveg/clients2.jpg','imatges/barranaveg/contacte2.jpg')">
  147.     <div id="page-background"><img src="imatges/logobo.jpg" alt="Smile" name="Image1" width="100%" height="100%">
  148.       <table border="0" align="center" cellpadding="0" cellspacing="0" id="content"; name="content">       
  149.           <td><a href="scrollunic.htm" target="_top" onclick="MM_nbGroup('down','group1','inici1','',1)" onMouseOver="MM_nbGroup('over','inici1','imatges/barranaveg/inici2.jpg','Image1',1)" onMouseOut="MM_nbGroup('out')"><img src="imatges/barranaveg/inici1.jpg" alt="" name="inici1" width="100%" height="34" border="0" onload=""></a></td>
  150.           <td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','serveis1','',1)" onMouseOver="MM_nbGroup('over','serveis1','','Image1',1)" onMouseOut="MM_nbGroup('out')"><img src="imatges/barranaveg/serveis3.jpg" alt="" name="serveis1" width="100%" height="34" border="0" onload=""></a></td>
  151.           <td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','tarifa1','',1)" onMouseOver="MM_nbGroup('over','tarifa1','imatges/barranaveg/tarifa2.jpg','Image1',1)" onMouseOut="MM_nbGroup('out')"><img src="imatges/barranaveg/tarifa1.jpg" alt="" name="tarifa1" width="100%" height="34" border="0" onload=""></a></td>
  152.           <td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','clients1','',1)" onMouseOver="MM_nbGroup('over','clients1','imatges/barranaveg/clients2.jpg','Image1',1)" onMouseOut="MM_nbGroup('out')"><img src="imatges/barranaveg/clients1.jpg" alt="" name="clients1" width="100%" height="34" border="0" onload=""></a></td>
  153.           <td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','contacte1','',1)" onMouseOver="MM_nbGroup('over','contacte1','imatges/barranaveg/contacte2.jpg','Image1',1)" onMouseOut="MM_nbGroup('out')"><img src="imatges/barranaveg/contacte1.jpg" alt="" name="contacte1" width="100%" height="34" border="0" onload=""></a></td>
  154.     </table>
  155. </div>
  156. <!-- <div id="ie6pagewrap"> -->
  157. <div id="ie6pagecontainer">
  158.     <div id="page-background2"><img src="imatges/fonsbo.jpg" width="100%" height="100%" alt="Smile" /> </div>  
  159.     <div id="content2" align="center">
  160.                 <h1>Sed ut perspiciatis unde</h1>
  161.  
  162.                 <p>Sed ut perspiciatis unde </p>
  163.                 <h1>Lorem ipsum dolor sit amet</h1>
  164.                
  165. <p>Go on, try it - resize your browser!</p>
  166. <div class="carouselc" id="carouselc">
  167. <h1 align="center">Carousel Infinito</h1>
  168.    
  169. <div class="infiniteCarousel">
  170.   <div style="overflow: hidden;" class="wrapper">
  171.     <ul>
  172.       <li class="cloned"><a href="http://www.tutorialesenlaweb.com" title="Tutoriales en la Web"><img src="imagenes/1.jpg" alt="Tutoriales en la web" width="85" height="85"></a></li>
  173.          
  174.           <li class="cloned"><a href="http://www.tutorialesenlaweb.com" title="Tutoriales en la Web"><img src="imagenes/2.jpg" alt="Tutoriales en la web" width="85" height="85"></a></li>
  175.        
  176.         <li class="cloned"><a href="http://www.tutorialesenlaweb.com" title="Tutoriales en la Web"><img src="imagenes/13.jpg" alt="Tutoriales en la web" width="85" height="85"></a></li>
  177.     </ul>        
  178.     </div><a class="arrow back">&lt;</a><a class="arrow forward">&gt;</a>
  179. </div>
  180. <p>ee</p>
  181. <p>&nbsp;</p>
  182.  
  183. <p>kljkj</p>
  184. <p>&nbsp;</p>
  185.     </div>
  186.      <!--END CONTENT2-->                
  187. </div>
  188.  
  189. <!-- </div> -->
  190. </body>
  191. </html>

Etiquetas: funcion, html, js, carrousel
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 20:36.