begin process at 2012 02 14 05:33:23
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Divers

 > UN CODE POUR COPIER LE CONTENU D'UN TEXTAREA AVEC UN SIMPLE CLICK

UN CODE POUR COPIER LE CONTENU D'UN TEXTAREA AVEC UN SIMPLE CLICK


 Information sur la source

Note :
2 / 10 - par 4 personnes
2,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Divers Niveau :Débutant Date de création :25/03/2004 Vu :27 925

Auteur : semetic

Ecrire un message privé
Commentaire sur cette source (5)
Ajouter un commentaire et/ou une note

 Description

Tout les commentaires sont dans le code

Source

  • <HTML>
  • <HEAD>
  • <TITLE>moveToPoint Example</TITLE>
  • <meta name="generator" content="Namo WebEditor v4.0">
  • </HEAD>
  • <BODY>
  • <p align="center">
  • <textarea id="texte" readonly rows="15" cols="45">Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici vvvvVotre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici Votre code ou texte très long ici </textarea>
  • <p align="center">
  • <button OnClick="bouger()">
  • Copier le code dans le Presse-papier</p>
  • <p align="center">En anglais: copy into clipboard </button></p>
  • <p align="center"><font face="Verdana"><span style="font-size:9pt;"><b>Ctrl </b>+ <b>V </b>pour
  • <b>coller</b></span></font></p>
  • <SCRIPT LANGUAGE="VBScript">
  • <!--
  • Sub bouger()
  • set selectionner=document.all("texte").createTextRange()
  • selectionner.select()
  • selectionner.execCommand "Copy"
  • End sub
  • -->
  • </SCRIPT>
  • </BODY>
  • </HTML>
<HTML>
<HEAD>
<TITLE>moveToPoint Example</TITLE>
<meta name="generator" content="Namo WebEditor v4.0">
</HEAD>
<BODY>
<p align="center">
<textarea  id="texte" readonly rows="15" cols="45">Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici vvvvVotre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici Votre code ou texte  très long ici </textarea>
<p align="center">
<button  OnClick="bouger()">
Copier le code dans le Presse-papier</p>  
<p align="center">En anglais: copy into clipboard </button></p>
<p align="center"><font face="Verdana"><span style="font-size:9pt;"><b>Ctrl </b>+ <b>V </b>pour 
<b>coller</b></span></font></p>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub bouger()
set selectionner=document.all("texte").createTextRange()
selectionner.select()
selectionner.execCommand "Copy" 
End sub
-->
</SCRIPT>
</BODY>
</HTML>


 Conclusion

sidoummoudz@yahoo.fr


 Sources du même auteur

COMPTEUR À REBOURS SECONDES, MINUTES ET HEURES DHTML(JAVASCR...
CHANGEMENT DU STYLE DES ZONES DE TEXTE PENDANT LA FOCALISATI...
UN SEUL ALERT POUR TOUTES LES ERREURS DE VALIDATION D'UN FOR...
UN SEUL ALERT POUR TOUTES LES ERREURS DE VALIDATION D'UN FOR...
ENCHAINEMENT DE MESSAGES EN BOUCLE FASCINANT

 Sources de la même categorie

COLONNES ADAPTABLES EN HAUTEUR par dronoide
Source avec Zip VECTEURS ET MATRICES: OUTILS GRAPHIQUES UTILES par william voirol
Source avec Zip Source avec une capture HTML5 PLAYER par kazma
Source avec Zip Source avec une capture SCROLLBAR PERSONNALISABLE par kazma
Source avec Zip INFO BULLE par RudiRatlos

Commentaires et avis

Commentaire de bultez le 26/03/2004 07:49:28

c'est JAVASCRPIT ici,
pas vbscript.
donc ça ne marche pas

Commentaire de roro06 le 26/03/2004 09:09:09

En plus, même si c'était du javascript, ça ne serait reconnu que par IE (document.all ...). A proscrire, donc.

Commentaire de iguypouf le 01/12/2006 18:50:29

bah, il suffit de remplacer le all par le getElementById, et ça marche très bien !
Par contre, sous firefox, ça marhce pas top.

Commentaire de moun00 le 27/12/2008 14:32:06

salut tout le monde
j'ai bien trouver le nouveau code du satelite thor pour recepteur samsat.
merci bien d'avance
mes meilleures salutation
mounir

Commentaire de moun00 le 27/12/2008 14:36:09

salut
j'ai bien trouver le nouveau code du satelite thor pour recepteur samsat.
merci bien d'avance, avec mes meilleures salutations
mounir

 Ajouter un commentaire




Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,562 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales