Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/11/2005, 07:56
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años, 8 meses
Puntos: 5
Hola el_caNela.... aquí esta:

Código HTML:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<script language="javascript">
function Titulo() {
var obj = document.getElementById("titulo").value;
var obj_s = obj.split(" ");
 
for (i=0; i < obj_s.length; i++) {
primera_letra = obj_s[i].substring(0, 1).toUpperCase();
obj_s[i] = primera_letra + obj_s[i].substring(1, obj_s[i].length);
}
 
var nom = obj_s.join(" ");
alert(nom);
}
</script>
<input type="text" name="titulo" id="titulo" value="">
<input type="button" value="Cambiar Nombre" onClick="Titulo()">
</body>
</html> 
saludos
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.