Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/10/2010, 15:20
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 13 años, 10 meses
Puntos: 310
Respuesta: Por favor necesito ayuda

Esque cerraste dos veces el div, y además tienes que encerrarlo entre etiquetas script
Cita:
Iniciado por ricky010
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script type='text/javascript'>

function div(txt){
document.getElementById('capa').innerHTML = txt;
}
</script>
</head>

<body onclick="div('');'>
<a href='#' onmouseover='div("Descripción 1");'>Enlace 1</a>
<a href='#' onmouseover='div("Descripción 2");'>Enlace 2</a>
<a href='#' onmouseover='div("Descripción 3");'>Enlace 3</a>
<div id='capa'></div></div>
</body>


</html>
Saludos (:
__________________
" Getting older’s not been on my plans
but it’s never late, it’s never late enough for me to stay. "
Cigarettes - Russian Red