Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/07/2002, 18:24
Avatar de mikel_gomez
mikel_gomez
 
Fecha de Ingreso: febrero-2001
Mensajes: 482
Antigüedad: 23 años, 3 meses
Puntos: 3
Re: DHTML para IE 6.0 y Netscape Navigator 6.2

Es que no vale cualquier código.
Si utilizamos DOM (Document Object Model) recomendado por la W3C como en el ejemplo que te adjunto, no deberíamos tener problemas:

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//ES" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Ejemplo</title>
    <script type="text/javascript">
    <!--
      function col_divs() {
        if (document.getElementById) {
          capa = document.getElementById('XF');
          capa.style.left = '100px' ;
          capa.style.top  = '100px' ;
        }
      }
    //-->
    </script>
  </head>
  <body>
    <div id="XF" onclick="col_divs();" style="position: absolute;">
      Pulsa sobre el texto para resituarlo.
    </div>
  </body>
</html>
Pruébalo y cuéntame.
Saludos.

<style>.t{font: 8pt verdana; text-decoration: none; color: black;}</style><hr><span class="t"><a href="mailto:[email protected]" class="t" style="font: 10pt;">Mikel Gómez</a><br>Hay que aprender mucho para saber poco.</span>