Ver Mensaje Individual
  #6 (permalink)  
Antiguo 15/02/2011, 20:34
Avatar de rw523252
rw523252
 
Fecha de Ingreso: julio-2009
Mensajes: 122
Antigüedad: 15 años, 4 meses
Puntos: 5
Respuesta: Problemas con IE, no se ven fondos y se cae el menú

Esta es la primera parte, hasta el slider, osea jquery y html, si sube, ya subo la segunda parte, gracias por darme una mano, saludos.

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>Víctor Raúl Brusa</title>
  5. <link href="estilos.css" rel="stylesheet" type="text/css" />
  6.  
  7. <script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
  8. <script type="text/javascript" src="js/jquery.scrollTo.js"></script>
  9.  
  10. $(document).ready(function() {
  11.  
  12.     //Speed of the slideshow
  13.     var speed = 5000;
  14.    
  15.     //You have to specify width and height in #slider CSS properties
  16.     //After that, the following script will set the width and height accordingly
  17.     $('#mask-gallery, #gallery li').width($('#slider').width());   
  18.     $('#gallery').width($('#slider').width() * $('#gallery li').length);
  19.     $('#mask-gallery, #gallery li, #mask-excerpt, #excerpt li').height($('#slider').height());
  20.    
  21.     //Assign a timer, so it will run periodically
  22.     var run = setInterval('newsscoller(0)', speed);
  23.    
  24.     $('#gallery li:first, #excerpt li:first').addClass('selected');
  25.  
  26.     //Pause the slidershow with clearInterval
  27.     $('#btn-pause').click(function () {
  28.         clearInterval(run);
  29.         return false;
  30.     });
  31.  
  32.     //Continue the slideshow with setInterval
  33.     $('#btn-play').click(function () {
  34.         run = setInterval('newsscoller(0)', speed);
  35.         return false;
  36.     });
  37.    
  38.     //Next Slide by calling the function
  39.     $('#btn-next').click(function () {
  40.         newsscoller(0);
  41.         return false;
  42.     });
  43.  
  44.     //Previous slide by passing prev=1
  45.     $('#btn-prev').click(function () {
  46.         newsscoller(1);
  47.         return false;
  48.     });
  49.    
  50.     //Mouse over, pause it, on mouse out, resume the slider show
  51.     $('#slider').hover(
  52.    
  53.         function() {
  54.             clearInterval(run);
  55.         },
  56.         function() {
  57.             run = setInterval('newsscoller(0)', speed);
  58.         }
  59.     );  
  60.    
  61. });
  62.  
  63.  
  64. function newsscoller(prev) {
  65.  
  66.     //Get the current selected item (with selected class), if none was found, get the first item
  67.     var current_image = $('#gallery li.selected').length ? $('#gallery li.selected') : $('#gallery li:first');
  68.     var current_excerpt = $('#excerpt li.selected').length ? $('#excerpt li.selected') : $('#excerpt li:first');
  69.  
  70.     //if prev is set to 1 (previous item)
  71.     if (prev) {
  72.        
  73.         //Get previous sibling
  74.         var next_image = (current_image.prev().length) ? current_image.prev() : $('#gallery li:last');
  75.         var next_excerpt = (current_excerpt.prev().length) ? current_excerpt.prev() : $('#excerpt li:last');
  76.    
  77.     //if prev is set to 0 (next item)
  78.     } else {
  79.        
  80.         //Get next sibling
  81.         var next_image = (current_image.next().length) ? current_image.next() : $('#gallery li:first');
  82.         var next_excerpt = (current_excerpt.next().length) ? current_excerpt.next() : $('#excerpt li:first');
  83.     }
  84.  
  85.     //clear the selected class
  86.     $('#excerpt li, #gallery li').removeClass('selected');
  87.    
  88.     //reassign the selected class to current items
  89.     next_image.addClass('selected');
  90.     next_excerpt.addClass('selected');
  91.  
  92.     //Scroll the items
  93.     $('#mask-gallery').scrollTo(next_image, 800);      
  94.     $('#mask-excerpt').scrollTo(next_excerpt, 800);                
  95.    
  96. }
  97. function MM_swapImgRestore() { //v3.0
  98.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  99. }
  100. function MM_preloadImages() { //v3.0
  101.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  102.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  103.    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  104. }
  105.  
  106. function MM_findObj(n, d) { //v4.01
  107.  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  108.    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  109.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  110.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  111.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  112. }
  113.  
  114. function MM_swapImage() { //v3.0
  115.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  116.   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  117. }
  118.  
  119.  
  120.  
  121.  
  122.  
  123. <link href="estilonewsslider.css" rel="stylesheet" type="text/css" />
  124.  
  125. <link href="css/jd.gallery.css" rel="stylesheet" type="text/css" />
  126.  
  127. <link href="css/ReMooz.css" rel="stylesheet" type="text/css" />
  128. </head>
  129.  
  130. <body onload="MM_preloadImages('imagenes/logo_lapaulina.jpg','imagenes/la_piamontesa_hover.jpg','imagenes/natura_hover.jpg','imagenes/aceitera_g_d_hover.jpg')">
  131.  
  132. <div id="contenedor">
  133.  
  134. <div id="blanco">
  135.  
  136. <div id="fotoizq">
  137. </div>
  138.  
  139. <div id="logo">
  140.   <img src="imagenes/logo_cabecera.jpg" width="245" height="81" alt="victor raúl brusa" /></div>
  141.  
  142.  
  143. <div id="espacio">
  144. <h3><em>...treinta años acercando calidad,<br />
  145.   servicio y experiencia...</em></h3>
  146. </div>
  147.  
  148. <div id="fotoder">
  149. </div>
  150.  
  151.  
  152. </div>
  153.  
  154. <div id="botonera">
  155. <ul>
  156. <li><a href="index.html" target="_self">Home</a></li>
  157. <li><a href="quienessomos.html" target="_self">Quienes Somos</a></li>
  158. <li><a href="servicios.html" target="_self">Servicios</a></li>
  159. <li><a href="productos.html" target="_self">Productos</a></li>
  160. <li><a href="formulario.html" target="_self">Contacto</a></li>
  161. <li><a href="http://misitio.vzpla.net/miblog/" target="_blank" class="ultimo" >Blog</a></li>
  162. </ul>
  163.  
  164. </div>
  165.  
  166. <div id="encabezado">
  167.  
  168.  
  169.  
  170. <div id="mijquery">
  171.  
  172. <div id="debug"></div>