Insérer zone de texte modulable

Il s'agit d'une zone comme celle ci:


1. Modèle classique:
Code:
<textarea cols="60" name="textarea" onfocus="this.select();" readonly="" rows="3" style="background-attachment: initial; background-clip: initial; background-color: infobackground; background-image: initial; background-origin: initial; font-family: georgia; font-weight: normal; height: 100px; margin-bottom: 2px; margin-left: 2px; margin-right: 2px; margin-top: 2px; width: 600px;" title="Code iframe"> --- VOTRE TEXTE --- </textarea>

2. Modèle avec option de sélection du texte:


Code:
<form name="copy"><div align="center"><input onclick="javascript:this.form.txt.focus();this.form.txt.select();" type="button" value="Highlight All"></div><p align="center"><textarea style="WIDTH: 600px; HEIGHT: 100px" name="txt" rows="3" wrap="VIRTUAL" cols="60">--- VOTRE TEXTE ---</textarea></p></form>
Paramètres:
Hauteur et Largeur
Texte


Rmq: Si vous rencontrez des problèmes suivant:
- Balises <BR> dans votre texte
- Et que votre texte est entièrement collé sans espace.


e blogger blogspot

1 commentaire:

Enregistrer un commentaire