Ver Mensaje Individual
  #5 (permalink)  
Antiguo 27/03/2010, 08:22
manumar
 
Fecha de Ingreso: marzo-2009
Ubicación: yokze
Mensajes: 177
Antigüedad: 15 años, 1 mes
Puntos: 3
Respuesta: Error en validacion w3c (codigo html en var js)

...pues bueno ^^ aki os dejo casi todo el codigo...
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' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <meta name="robots" content="noindex, nofollow"/>
  5. <link href="<? echo $URLE;?>index.css" rel="stylesheet" type="text/css" />
  6. <title>xD</title>
  7. <script type="text/javascript" src="js/mootools-1.2.4-core-yc.js"></script>
  8. <script type="text/javascript">
  9. window.addEvent('domready',
  10.  function()
  11.     {
  12.     $$('.bandera').fade('0.2');
  13.     }
  14. );
  15. function terminos(x)
  16.     {
  17.     var TXTentrar=new Array();
  18.     TXTentrar['ES']="<a href='esp.html'>Entrar</a>";
  19.     TXTentrar['EN']="<a href='eng.html'>Enter</a>";
  20.     TXTentrar['FR']="<a href='fren.html'>Entrer</a>";
  21.     TXTentrar['DE']="<a href='de.html'>Hereingehen</a>";
  22.     if(typeof(terminosID)!="undefined")
  23.         {
  24.         var terminos=document.getElementById('term'+terminosID);
  25.         terminos.style.display="none";
  26.         }
  27.     var terminos=document.getElementById('term'+x);
  28.     terminos.style.display="block";
  29.     terminosID=x;
  30.     Entrarb=document.getElementById('entrar');
  31.     Entrarb.innerHTML=TXTentrar[x];
  32.     Entrarb.style.display="block";
  33.     }
  34. function mb()
  35.     {
  36.     document.getElementById('banderolas').style.display="block";
  37.     }
  38. setTimeout("mb()",700);
  39. <script type="text/javascript" src="terms.esp.js"></script>
  40. </head>
  41. <div id="titulo"></div>
  42. <? echo '
  43. <div id="banderolas"><img alt="Espa&ntilde;ol" src="'.$URLE.'base/espanol.jpg" onmouseover="this.fade(\'in\');" onmouseout="fade(\'0.3\');" onclick="terminos(\'ES\');" class="bandera"/><img alt="Ingles" src="'.$URLE.'base/ingles.jpg" onmouseover="this.fade(\'in\');" onmouseout="fade(\'0.3\');"  onclick="terminos(\'EN\');" class="bandera"/><img alt="Frances" src="'.$URLE.'base/frances.jpg" onmouseover="this.fade(\'in\');" onmouseout="fade(\'0.3\');"  onclick="terminos(\'FR\');" class="bandera"/><img alt="Aleman" src="'.$URLE.'base/aleman.jpg" onmouseover="this.fade(\'in\');" onmouseout="fade(\'0.3\');"  onclick="terminos(\'DE\');" class="bandera"/></div>
  44.  
  45. <div></div>
  46. <div id="termES">';
  47. include('terms.esp.php');
  48. echo '</div>
  49. <div id="termEN">';
  50. include('terms.en.php');
  51. echo '</div>
  52. <div id="termFR">';
  53. include('terms.fr.php');
  54. echo '</div>
  55. <div id="termDE">';
  56. include('terms.de.php');
  57. echo '</div>
  58. <div id="entrar"></div>
  59. </body>
  60. </html>';
  61. die();
  62. ?>
no esta entero pero vaya q lo q hay por arriba es mas php sin echos..^^
Ya que estamos...el codigo este está un poco cutre xq lo de los terminos queria incluirlos dinamicamente..pero sin ajax, simplemente como un include con javasciprt, peeeero nose como podia hacer para meter todo el html de cada include en una variable js..siempre me daba errores...por los saltos de lineas y eso..S: