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

    Inserire dati in una textarea

    Ola
    mi hanno dato sto script per far aprire delle finestrelle dove inserire il testo
    codice:
    <SCRIPT LANGUAGE="JavaScript">
    
    function img()
    {
        var FoundErrors = '';
        var enterURL   = prompt("Inserisci l'url dell'immagine:", "http://");
    
        if (!enterURL) {
            FoundErrors += " " + error_no_url;
        }
    
        if (FoundErrors) {
            alert("Error!"+FoundErrors);
            return;
        }
    
    	doInsert("[IMG]"+enterURL+"[/IMG]", "", false);
    }
    function url()
    {
        var FoundErrors = '';
        var enterURL   = prompt("Inserisci l'url:", "http://");
    
        if (!enterURL) {
            FoundErrors += " " + error_no_url;
        }
    
        if (FoundErrors) {
            alert("Error!"+FoundErrors);
            return;
        }
    
    	doInsert(""+enterURL+"", "", false);
    }
    
    function B()
    {
        var FoundErrors = '';
        var enterURL   = prompt("Inserisci il testo da formattare:", "http://");
    
        if (!enterURL) {
            FoundErrors += " " + error_no_url;
        }
    
        if (FoundErrors) {
            alert("Error!"+FoundErrors);
            return;
        }
    
    	doInsert(""+enterURL+"", "", false);
    }
    function U()
    {
        var FoundErrors = '';
        var enterURL   = prompt("Inserisci il testo da formattare:", "http://");
    
        if (!enterURL) {
            FoundErrors += " " + error_no_url;
        }
    
        if (FoundErrors) {
            alert("Error!"+FoundErrors);
            return;
        }
    
    	doInsert(""+enterURL+"", "", false);
    }
    function I()
    {
        var FoundErrors = '';
        var enterURL   = prompt("Inserisci il testo da formattare:", "http://");
    
        if (!enterURL) {
            FoundErrors += " " + error_no_url;
        }
    
        if (FoundErrors) {
            alert("Error!"+FoundErrors);
            return;
        }
    
    	doInsert(""+enterURL+"", "", false);
    }
    </SCRIPT>

    mi deve inserire i valori che recupera dal popup nel campo testo come devo fare???giacche mi revisionate il codice per
    vedere se va bene
    Modalità curioso ON...attendere riavvio del sistema in corso...

    Errore nessuna tastiera trovata premere un tasto per continuare...

  2. #2
    hai sbagliato forum. scrivi in "Scripting"

    ciao,
    jack.

  3. #3
    fatto ma li non c'è un'anima!
    Modalità curioso ON...attendere riavvio del sistema in corso...

    Errore nessuna tastiera trovata premere un tasto per continuare...

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 © 2025 vBulletin Solutions, Inc. All rights reserved.