Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
4786 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Majuscule

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Majuscule

n°1211584
malibuprod
Posté le 30-09-2005 à 13:26:05  profilanswer
 

salut,
la focntion value.toUpperCase met tout en majuscule
laquelle ne met que la premiere lettre en majuscule  
 
merci

mood
Publicité
Posté le 30-09-2005 à 13:26:05  profilanswer
 

n°1211590
esox_ch
Posté le 30-09-2005 à 13:32:16  profilanswer
 

[:google]


---------------
Si la vérité est découverte par quelqu'un d'autre,elle perd toujours un peu d'attrait
n°1211593
malibuprod
Posté le 30-09-2005 à 13:36:16  profilanswer
 

c'est je que je fais, merci

n°1211618
esox_ch
Posté le 30-09-2005 à 13:51:31  profilanswer
 

Ok ... quand t'auras trouvé viens mettre la réponse ici stp :D  
 
Comme ça quand qqn fera la recherche il tombera dessus


---------------
Si la vérité est découverte par quelqu'un d'autre,elle perd toujours un peu d'attrait
n°1211622
masklinn
í dag viðrar vel til loftárása
Posté le 30-09-2005 à 13:53:40  profilanswer
 

malibuprod a écrit :

salut,
la focntion value.toUpperCase met tout en majuscule
laquelle ne met que la premiere lettre en majuscule  
 
merci


Yen a pas :)


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1211627
malibuprod
Posté le 30-09-2005 à 13:54:26  profilanswer
 

merde alors

n°1211642
0x90
Posté le 30-09-2005 à 14:02:17  profilanswer
 

value.subtring(kkchose).toUpperCase + value.substring(autrechose) ?


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°1211654
masklinn
í dag viðrar vel til loftárása
Posté le 30-09-2005 à 14:06:48  profilanswer
 

value = value.replace(value[0], value[0].toUpperCase())
[:aloy]
 
On pourrait même aller jusqu'à
 
value = value.toLowerCase().replace(value[0], value[0].toUpperCase())


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1211667
0x90
Posté le 30-09-2005 à 14:12:00  profilanswer
 

faut pas mettre les / / dans la regexp ?


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°1211669
masklinn
í dag viðrar vel til loftárása
Posté le 30-09-2005 à 14:12:36  profilanswer
 

Ouskeséketavudesregexptoi [:petrus dei]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
mood
Publicité
Posté le 30-09-2005 à 14:12:36  profilanswer
 

n°1211671
0x90
Posté le 30-09-2005 à 14:13:52  profilanswer
 

bha c'est pas value.replace(regexp,replacement) la fct replace ?


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°1211678
masklinn
í dag viðrar vel til loftárása
Posté le 30-09-2005 à 14:16:09  profilanswer
 

0x90 a écrit :

bha c'est pas value.replace(regexp,replacement) la fct replace ?


[:mlc]
 
et pourquoi ça serait pas string.replace(a_remplacer, remplacement) hein [:petrus dei]
 
Parce qu'en l'occurence, t'vois, ça fait les deux [:petrus75]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1211681
malibuprod
Posté le 30-09-2005 à 14:17:55  profilanswer
 

j'essaye mais cela ne fonctionne pas

n°1211685
masklinn
í dag viðrar vel til loftárása
Posté le 30-09-2005 à 14:19:16  profilanswer
 

value = "glqrbLKGBFElkgfbs"
glqrbLKGBFElkgfbs
value = value.toLowerCase().replace(value[0], value[0].toUpperCase())
Glqrblkgbfelkgfbs


http://www.chezmoicamarche.com


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1211690
gatsusat
Posté le 30-09-2005 à 14:21:13  profilanswer
 
n°1211715
gatsusat
Posté le 30-09-2005 à 14:30:12  profilanswer
 

Code :
  1. value = "glqrbLKGBFElkgfbs";
  2. value = value.charAt(0).toUpperCase() + value.substring(1).toLowerCase();
  3. alert(value);


 
value[0] ca marche pas sous IE (sale pute IE)
mais sous FF ca marche nickel, donc il faut passer par des trucs bidons et à la con.

n°1921542
thony64
Programmeur.
Posté le 05-09-2009 à 16:49:33  profilanswer
 

Bonjour,
 
Avant de partir sur du javascript n'oubliez pas de fouillez dans l'immensité des propriété CSS.  :)  :)  :)  
En effet vous y trouverez une propriété assez méconnu et pourtant, TEXT-TRANSFORM.
Avec ces 4 Tag possible :
capitalize = 1er lettre en majuscule
uppercase = text en majuscules.
lowercase = text en minuscules.
none = Affiche sans modification.

 
ex:

  • Je m'appel <span style="text-transform : capitalize;">thony64</span>


Donnera:

  • Je m'appel Thony64


Compatible Tout navigateur, alors n'hesité pas !


Message édité par thony64 le 05-09-2009 à 16:49:59
n°1921592
gatsu35
Blablaté par Harko
Posté le 06-09-2009 à 08:46:14  profilanswer
 

en fait le but était un traitement de chaine de caractère, et non pas un affichage au niveau HTML, donc ton poste, ne sert à rien
et au passage, tu fais un déterrage de topic vieuw de 4 ans


---------------
Blablaté par Harko

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Majuscule

 

Sujets relatifs
Premiere lettre en majuscule.Convertir une variable en majuscule.
majusculede minuscule à majuscule
[resolu] Transformer un caractere majuscule en minuscule...processus, pipes, et chaîne en majuscule
Sous SQL 2000 Server : différence entre le majuscule et le minuscule?[srv MySQL 4.0.20d] pb de table et de majuscule
mettre un chaine en majusculestd::string et majuscule/minuscule
Plus de sujets relatifs à : Majuscule


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)