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

Esta es la primera parte del código del index, el anterior me confundí y subi uno de una prueba del sitio, ya subo la segunda parte les pido disculpas, y realmente gracias. No lo pude editar, por que ya había subido la segunda parte.

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

Última edición por rw523252; 15/02/2011 a las 20:43 Razón: Me equivoqué de código