Majuscule

Majuscule - HTML/CSS - Programmation

Marsh Posté le 30-09-2005 à 13:26:05    

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

Reply

Marsh Posté le 30-09-2005 à 13:26:05   

Reply

Marsh Posté le 30-09-2005 à 13:32:16    

[:google]


---------------
Si la vérité est découverte par quelqu'un d'autre,elle perd toujours un peu d'attrait
Reply

Marsh Posté le 30-09-2005 à 13:36:16    

c'est je que je fais, merci

Reply

Marsh Posté le 30-09-2005 à 13:51:31    

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
Reply

Marsh Posté le 30-09-2005 à 13:53:40    

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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 30-09-2005 à 13:54:26    

merde alors

Reply

Marsh Posté le 30-09-2005 à 14:02:17    

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


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
Reply

Marsh Posté le 30-09-2005 à 14:06:48    

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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 30-09-2005 à 14:12:00    

faut pas mettre les / / dans la regexp ?


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
Reply

Marsh Posté le 30-09-2005 à 14:12:36    

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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 30-09-2005 à 14:12:36   

Reply

Marsh Posté le 30-09-2005 à 14:13:52    

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


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
Reply

Marsh Posté le 30-09-2005 à 14:16:09    

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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 30-09-2005 à 14:17:55    

j'essaye mais cela ne fonctionne pas

Reply

Marsh Posté le 30-09-2005 à 14:19:16    

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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 30-09-2005 à 14:21:13    

Reply

Marsh Posté le 30-09-2005 à 14:30:12    

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.

Reply

Marsh Posté le 05-09-2009 à 16:49:33    

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
Reply

Marsh Posté le 06-09-2009 à 08:46:14    

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
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed