Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/06/2012, 13:12
furoya
(Desactivado)
 
Fecha de Ingreso: noviembre-2002
Ubicación: Ciudad Autónoma de Buenos Aires
Mensajes: 2.367
Antigüedad: 21 años, 6 meses
Puntos: 317
Respuesta: Cambiar texto alternativamente de un <span>

Sólo porque no escribiste "librería"

Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<title></title>
<script type="text/javascript">
function cambiaretiqueta1(T){
  if (T.innerHTML=='ver más [...]') {  
	T.innerHTML='ocultar [...]';  
  }
  else{
	T.innerHTML='ver más [...]'; 
  }
 }
 
</script>
<style type="text/css">

</style>
</head>
<body>
<span onclick="cambiaretiqueta1(this)" 
style="cursor:pointer; background:yellow">ver más [...]</span>
</body>
</html>