Visualizzazione dei risultati da 1 a 7 su 7
  1. #1

    mettere testo in un campo

    se io devo far si che quando clicco su un'immagine mi venga inserito del testo all'interno di un input text, come devo fare?
    Io ho usato questo metodo:
    codice:
    <script language="javascript">
     <!--
       function Smile(quale_faccina)
       {
          document.testo.messaggio.value += quale_faccina;
       }
     //-->
    </script>
    
    <textarea name="testo" cols="47" rows="5" wrap="VIRTUAL" class="box"></textarea>
    
    <td width="25" height="20">[img]../images/smiles/angel1.gif[/img]</td>
    Solo che non funziona...potete dirmi come fare?
    Il mio sito: CIONCO.ALTERVISTA.ORG
    Lloyd Bank$
    I roll with the gangstas don't get fly with your mouth
    The wrong punchline'll have niggas inside of your house

  2. #2
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    document.nomeform.nomecampo.value += quale_faccina;


    stai attento a questi!

    <textarea name="testo" cols="47" rows="5" wrap="VIRTUAL" class="box"></textarea>

    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  3. #3
    Utente bannato
    Registrato dal
    Jan 2002
    Messaggi
    852
    codice:
    //Inserisci smilies (faccina) nel messaggio
    function insert_smilie(form,code) {
    	form.message.value += code;
    	form.message.focus();
    }

  4. #4
    grazie ad entrambi, ora provo a vedere.
    Poi vi avviso com'è andata.
    grazie.
    Il mio sito: CIONCO.ALTERVISTA.ORG
    Lloyd Bank$
    I roll with the gangstas don't get fly with your mouth
    The wrong punchline'll have niggas inside of your house

  5. #5
    anche inserendo il nome del form e del campo giusti non mi funziona...sapete aiutarmi?
    Il mio sito: CIONCO.ALTERVISTA.ORG
    Lloyd Bank$
    I roll with the gangstas don't get fly with your mouth
    The wrong punchline'll have niggas inside of your house

  6. #6
    nessun aiuto?
    Il mio sito: CIONCO.ALTERVISTA.ORG
    Lloyd Bank$
    I roll with the gangstas don't get fly with your mouth
    The wrong punchline'll have niggas inside of your house

  7. #7
    bo lasciate stare, ho trovato il problema.
    Il mio sito: CIONCO.ALTERVISTA.ORG
    Lloyd Bank$
    I roll with the gangstas don't get fly with your mouth
    The wrong punchline'll have niggas inside of your house

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.